nixCraft, (edited )
@nixCraft@mastodon.social avatar

Poll: My code follows the naming convention (please boost for reach, TIA):

words_number,

@nixCraft This just shows the popularity of JS over sane languages.

nazokiyoubinbou,
@nazokiyoubinbou@mastodon.social avatar

@nixCraft I always sort of hated it, but what little I do along these lines tends to follow "camelCase" because so many other things start with caps, so I need to do that just to differentiate. I sort of wish it was the other way around and I could use PascalCase or something.

crankyshihtzu,
@crankyshihtzu@mastodon.social avatar

@nixCraft @nixCraft it depends on the language, I try to match the language standards.
C#/C++ I use PascelCase for classes and methods, camelCase for variables, mostly use this for Java and Groovy too.
Python, I use snake_case.
Bash (and Batch), I typically use snake_case for throwaway variables or locals in functions and the all caps snake_case for "global" variables.
YAML, tends to be kebal-case.
That is most of them I write frequently.

HatsuSixty,
@HatsuSixty@mastodon.social avatar

@nixCraft If I'm writing C, Rust, or python, I use snake_case, in C++ and other languages, I mostly use camelCase (and PascalCase for types).

heschy,
@heschy@mastodon.social avatar

@nixCraft I used camelCase but since I use PyCharm I use the whatever the PEP 8 thing wants me to use 🤣

PerlPlayer,
@PerlPlayer@mastodon.social avatar

@nixCraft Hungarian notation 😊 and I'm not even sorry 😁

Tavian_C_Lirette,
@Tavian_C_Lirette@mastodon.social avatar

@nixCraft If the code in question can mean "LittleBigPlanet Tags & Microchips", then MultipleWordsGluedLikeThis is how I would often name them when making games in it.
On the topic, CamelCase can actually mean the first letter is capitalized OR in lowercase. I thought Pascal Case meant that the words were spaced apart While Also Being Capitalized. A Disturbing Amount Of People Talk Like This Online For Some Reason.

retiolus,
@retiolus@mamot.fr avatar

@nixCraft all. 😂😭

eickot,
@eickot@mastodon.social avatar

@nixCraft depending on the project, in godot, is snake_case + PascalCase, in javascript camelCase + PascalCase....

clot27,
@clot27@mastodon.social avatar

@nixCraft depends on PL

bitblitter,

@nixCraft all of the above:

camelCase for variables
PascalCase for classes
SNAKE_CASE for constants
kebab-case for file names (best for git OS interop)

sibrosan,
@sibrosan@mastodon.social avatar

Different naming style for functions, variables, constants

ainmosni, (edited )
@ainmosni@berlin.social avatar

@nixCraft

Mine follows whatever the convention of the language or project is.

weaselx86,
@weaselx86@mastodon.social avatar

@nixCraft
Depends on whether I'm writing in C or Go.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • rosin
  • Backrooms
  • modclub
  • magazineikmin
  • hgfsjryuu7
  • Youngstown
  • slotface
  • Durango
  • everett
  • osvaldo12
  • mdbf
  • kavyap
  • thenastyranch
  • DreamBathrooms
  • Leos
  • cisconetworking
  • anitta
  • ethstaker
  • tacticalgear
  • GTA5RPClips
  • khanakhh
  • InstantRegret
  • tester
  • provamag3
  • normalnudes
  • cubers
  • JUstTest
  • lostlight
  • All magazines