this post was submitted on 01 Mar 2024
371 points (93.4% liked)

Programmer Humor

31349 readers
1251 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] bassomitron 5 points 4 months ago* (last edited 4 months ago) (1 children)

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.

[–] [email protected] 8 points 4 months ago* (last edited 4 months ago) (1 children)

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?

[–] [email protected] 2 points 4 months ago (1 children)

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

[–] [email protected] 1 points 4 months ago

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