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.
I work on a proprietary language that translates everything to uppercase before compiling. So having a specific case is useless. The standard functions all have wacky cases. Some from the same module may use CamelCase, while it’s brother use snake_case.
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
Posts must be relevant to programming, programmers, or computer science.
No NSFW content.
Jokes must be in good taste. No hate speech, bigotry, etc.
Don’t look at rust code
Why? It’s fine?
It IS fine, I though the comic was referring snake_case as disgusting. I was uncomfortable too at first but I got used to it
I don’t get it
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
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.
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
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!
I work on a proprietary language that translates everything to uppercase before compiling. So having a specific case is useless. The standard functions all have wacky cases. Some from the same module may use CamelCase, while it’s brother use snake_case.
… I just use Rust’s style. Simple, easy.