• 1 Post
  • 918 Comments
Joined 3 years ago
cake
Cake day: June 22nd, 2023

help-circle


  • masterspace@lemmy.catoProgrammer Humor@programming.devChoose your path!
    link
    fedilink
    English
    arrow-up
    15
    ·
    edit-2
    2 months ago

    Outside of the for loop counters i and j, short variable names are awful. Coming back to old code written with abr var nams is like talking to someone in the military who just constantly throws out jargon and acronyms that they know you don’t know.

    But so are Java style ObserverFactoryManagerTemplateMachinistTemplater names.

    There’s a sweet middle ground of short, but actually descriptive name. Sometimes it’s not possible but that’s usually a code organization / language / framework smell.

    Too short variable names is usually a sign that you need to use a proper ide, with auto complete, or that you need to use a proper build process that will minify your code after the fact.

    Too long names are usually a sign that your module of code (function, class, namespace, etc) is too large, or that your language/framework naming conventions are too strict, or the language doesn’t encapsulate scope properly.





  • Bruh what the fuck are you talking about?

    You think that a user being upset when they give an app full filesystem access to their phone, and then having that app be handed over to some shady new owner is entitlement?

    Congratulations man, ‘skill issue’ people like you are why open source software rarely takes off. No one will use or trust any open source software if this happens. This just pushes people to use tech giants like Google and Microsoft because they’re big and stable and not about to change owners.

    Don’t fucking publish your software for people to download if you’re going to pull the rug out from under them. Keep it on your local machine and jerk off to it if you don’t care about others using it.









  • … I want to hear this story of ‘that one time I got chased by a massive iguana.’

    It was the first time I was in the dominican, and it was a resort, and I was 18 and hungover and thought I was super cool, and then I only barely held in high pitched squeals as I got chased across half the resort by a giant man killing dinosaur, and everyone praised me for how brave and strong I was… iirc.