Acronyms/intialism use capital letters to encode information about words. Losing that information is a mistake. SᴍᴀʟʟCᴀᴘCᴀsᴇ is now considered a best practice.

…Or consider snake_case or kebab-case 🤷

  • toastal@lemmy.mlOP
    link
    fedilink
    arrow-up
    17
    ·
    edit-2
    19 days ago

    Acronyms/intialism use capital letters to encode information about words. Losing that information is a mistake. SᴍᴀʟʟCᴀᴘCᴀsᴇ is now considered a best practice.

    …Or I dunno try snake_case or kebab-case 🤷

  • JoYo@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    19 days ago

    id throw away all of these if they aren’t struct definitions, which they aren’t.

  • Boomkop3@reddthat.com
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    19 days ago

    I don’t like to sticking to generalized naming conventions when autofill or intellisense is a thing. Make your names clear in whatever way you think works best, and developers still using vim can set up autocomplete using an extension or something

    • Kraiden@kbin.run
      link
      fedilink
      arrow-up
      1
      ·
      19 days ago

      Dear god please no. This way madness lies. Your idea of “whatever you think works best” is not going to line up with whatever the next person that comes along thinks, and your codebase is about to get all kinds of fucked up.

      Thinking code complete is going to save you is naive. Even in languages like C and Java, where it works best, you still need to be able to read and understand the code in context. There’s no hope in a language like Ruby with all it’s meta programming stuff