396
codeStyle (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Deckweiss@lemmy.world 16 points 1 year ago
[-] RustyNova@lemmy.world 36 points 1 year ago

Classes often have camelCase or PascalCase. Snake cases often are for variables or functions.

I don't remember the java standards, but it's enough to get it

[-] bassomitron@lemmy.world 6 points 1 year ago* (last edited 1 year ago)

In college and workplace, all java projects I ever worked with used camelCase. Whether that's the official stance of Java or not, I don't recall.

[-] BautAufWasEuchAufbaut 8 points 1 year ago* (last edited 1 year ago)

But also classes? In Java, I normally see camelcase (objects, variables, functions, ...) except for class definitions, which are PascalCase.
The package itself often is snakecase though iirc?

[-] ObsidianNebula@sh.itjust.works 2 points 1 year ago

That's exactly how I was taught Java styling in college. Idk if it was official styling or just professor preference though.

[-] OR3X@lemm.ee 1 points 1 year ago

Same I was taught. Think it's official. Professor was a stickler for following official rules so I doubt he would deviate.

load more comments (1 replies)
load more comments (5 replies)
load more comments (10 replies)
this post was submitted on 01 Mar 2024
396 points (100.0% liked)

Programmer Humor

35443 readers
58 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS