There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Whats your go-to naming conventions?

As far as I know there are these;

  • Camel case = coolFileName
  • Snake case = cool_file_name
  • Kebab case = cool-file-name
  • Pascal case = CoolFileName
  • Dot notation = cool.file.name
  • Flat case = coolfilename
  • Screaming case = COOLFILENAME

Personally I prefer the kebab/dot conventions simply because they allow for easy “navigation” with (ctrl+arrow keys) between each part. What are your preferences when it comes to this? Did I miss any schemes?

No1 ,
@No1@aussie.zone avatar

IT’S

COOLFILE.NAM

THERE IS ONLY 8.3 AND THERE IS ONLY UPPERCASE

erwan ,

FILEID.DIZ

unknowing8343 ,

I am a fan of Python’s or Rust’s official conventions.

For package names, tho, I don’t get why this-is-used over this_clearly_better_system, as I would expect a double click to select_the_whole_thing, whereas it does-not-happen-here.

Sunny OP ,

While i do agree, snake looks a lot better too. I just wish it was possible to navigate through each parts of the word more easily with ctrl+arrow. That would make it the superiour choice imo.

ouch ,

Does alt+arrow work in your terminal?

Sunny OP ,

yeah

MyNameIsRichard ,
@MyNameIsRichard@lemmy.ml avatar

Kebab case with Pascal case in the usual places. I’d change to all kebab case but the muscle memory of typing Documents would nearly kill me.

Hupf ,
@Hupf@feddit.org avatar

COOLFI~1.AME

TimeSquirrel ,
@TimeSquirrel@kbin.melroy.org avatar

10 PRINT "FARTS"
20 GOTO 10

harsh3466 ,

Man I miss basic.

TimeSquirrel ,
@TimeSquirrel@kbin.melroy.org avatar

https://www.freebasic.net/

It's more like QBasic dialect, but it's still actively maintained. It can generate binaries and everything for modern machines.

UnbalancedFox ,

Im dead! MS-DOS vibes

Fizz ,
@Fizz@lemmy.nz avatar

25% Camel case, 25% Pascal and 50% of the time flatcase. It drives me insane when I try and autocomplete a folder only to realise it was Downloads instead of downloads. I keep telling myself i will go through and make it all flatcase but I put it off because i tell myself i will rebuild my computer next week every week.

imecth , (edited )

Never thought about making the home folders flatcase, thanks, takes all of 2 minutes btw.
If anybody else wants to do it, remember to edit ~/.config/user-dirs.dirs with your new flatcase folders.

possiblylinux127 ,

My file

Landless2029 ,

Rfc3389 plus kebab case for many things

2024-09-01_lname-fname-resume.pdf

quantenzitrone ,
@quantenzitrone@lemmings.world avatar

How about “cool file name”?

All my systems use modern file systems that are case sensitive and can contain any character except / and `

boredsquirrel ,
@boredsquirrel@slrpnk.net avatar

True. Linux, Android, Windows all have no problems

Using dots in a file though…

Monstera ,

Using commands on that is still more annoying, so no way

quantenzitrone ,
@quantenzitrone@lemmings.world avatar

not really

You can easily escape spaces with `` and my modern shell (fish) suggests and completes filenames for me anyway, so i don’t have to type more than the first word in more than 90% of cases.

ouch ,

Typing in those cases instead of _ is super annoying.

In my keyboard layout backspace is behind altgr.

jjjalljs ,

Snake case, usually. Some perhaps unfounded fear that something will blow up on a dash in a file name kicking around. Or I’ll do a weird typo/premature enter and part of the file name will be treated like a -flag of some sort.

that_leaflet ,
@that_leaflet@lemmy.world avatar

Snake case.

  • Starts with a lowercase, good for shell autocompletion
  • No spaces, so no worrying about spaces in shell commands
  • ’_’ is better than ‘-’ because it shows the spaces between words more clearly
cygnus ,
@cygnus@lemmy.ca avatar

Counterpoint: you have to use Shift a lot

corsicanguppy ,

He probably uses vi. A few hundred more shift-key presses won’t stand out.

ouch ,

kdd

k4j8 ,

For this reason, I use kebab case for directories. But because I agree underscores show spaces better, I use snake case for files.

eruchitanda ,
@eruchitanda@lemmy.world avatar

Unless I can’t, Kebab.

No need to hold Shift.

data1701d ,
@data1701d@startrek.website avatar

I do kebab with underscores.

MutilationWave ,

Wouldn’t that be snake?

whoisearth ,
@whoisearth@lemmy.ca avatar

Snake if writing in python

Camel if writing in PowerShell

I tend to stick with what the language wants me to use.

captain_aggravated ,
@captain_aggravated@sh.itjust.works avatar

I’ve got a personal convention that file names get snake case, directory names get Pascal case.

harsh3466 ,

Depending on the file it’s either dot notation or flat case.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • lifeLocal
  • random
  • goranko
  • All magazines