devilish666@lemmy.world to Programmer Humor@lemmy.ml · 7 months agocodeStylelemmy.worldimagemessage-square41fedilinkarrow-up1377arrow-down129
arrow-up1348arrow-down1imagecodeStylelemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 7 months agomessage-square41fedilink
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up34·7 months agoClasses 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
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up9·7 months agoThe Java standard is ClassName, variableName, FINAL_VALUE_NAME. It’s derived from a popular C++ standard. (But C++ has many for you to pick.) Python is the one that likes snake_case, but it’s for variables, as you said. Classes are still PascalCase.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up2·7 months agoRust is like Python, but actually tell you the rules instead of you doing whatever you want
minus-squarebassomitron@lemmy.worldlinkfedilinkEnglisharrow-up6arrow-down1·edit-27 months agoIn 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.
minus-squareCosmic Cleric@lemmy.worldlinkfedilinkarrow-up3·7 months agoWhen you’re telling a joke to a bunch of computer programmer nerds, you got to tell them what programming language the joke is in, or else it just falls flat.
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up1·7 months agoAlways type the name of the language after opening your joke block. If your language is known enough, you may have syntax highlighting as well!
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
The Java standard is ClassName, variableName, FINAL_VALUE_NAME.
It’s derived from a popular C++ standard. (But C++ has many for you to pick.)
Python is the one that likes snake_case, but it’s for variables, as you said. Classes are still PascalCase.
Rust is like Python, but actually tell you the rules instead of you doing whatever you want
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.
When you’re telling a joke to a bunch of computer programmer nerds, you got to tell them what programming language the joke is in, or else it just falls flat.
Always type the name of the language after opening your joke block. If your language is known enough, you may have syntax highlighting as well!