I typically do too, or userIndex or something for nested loops, but I will accept i and j for the first two levels of nesting when reviewing a PR because they’re such a convention. I wouldn’t accept variable names like that anywhere else though and try and avoid them myself.
- 1 Post
- 918 Comments
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.
masterspace@lemmy.cato
Buy Canadian@lemmy.ca•Awendio Solaris plans multi-gigawatt solar manufacturing hub in CanadaEnglish
0·3 months agoThe ports / shipping access make sense as an inherent geographic factor, but what is leading to the cheaper cost of living for workers? Is it just that Quebec hasn’t seen the same kind of explosive population growth? A more rural population? Specific government policies?
masterspace@lemmy.cato
Buy Canadian@lemmy.ca•Awendio Solaris plans multi-gigawatt solar manufacturing hub in CanadaEnglish
0·3 months agoReal talk, why does it seem like everything is made in Quebec?
What is the Quebec government doing that’s different that encourages so much manufacturing? I ask as an Ontario resident… I feel like as I’ve tried to buy Canadian it’s made me realize that like 80% of the Canadian options for manufactured goods seem to be Quebec made.
No there aren’t. Not at the scale that humanity currently exists. We would literally die even if we just couldn’t make fertilizer. There would be no way to produce enough food for this many people.
masterspace@lemmy.cato
Android@lemdro.id•The Syncthing Android drama is explodingEnglish
0·3 months agoBruh 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.
Fair, but fishing still requires a lot of work.
Lol without agriculture you would literally end up eating shit and dying.
masterspace@lemmy.catoPolitical Memes@lemmy.world•A good rule of thumb at this point, honestlyEnglish
3·10 months agoNo man, I mean for the rich too.
It is depressing to travel around the US and see crumbling infrastructure, poverty, crime etc. and that makes you feel much less safe overall.
Cool beans, guess what you’re responsible for then?
What percentage of responsibility for that genocide goes to Microsoft? What percentage goes to Ford or GM or whoever sells them cars? What percentage goes to AWS? What percentage goes the people who make the roads they use?
masterspace@lemmy.catoPolitical Memes@lemmy.world•A good rule of thumb at this point, honestlyEnglish
77·10 months agoLol this has been a good rule of thumb for a while. There’s not a richer nation on earth that feels poorer than the US.
Alright man, do you, but it sounds like you’re just defeatist and making up excuses to avoid taking direct action that might improve your circumstances.
… 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.
masterspace@lemmy.cato
Science Memes@mander.xyz•memes from my biology class #6English
21·10 months agoWell maybe you live in a hellscape dystopia, but in most places landlords are beholden to laws and are not just each individually Judge Dredd.
masterspace@lemmy.cato
Science Memes@mander.xyz•memes from my biology class #6English
11·10 months agoLol you can’t lose your security deposit for improving your residence by painting and sealing it properly. Caulking is literally sold in bulk boxes for painters because it’s also how you make a paint job look professional.
masterspace@lemmy.catoTrains@midwest.social•Railroads want feds to scrap 2-person train crew ruleEnglish
13·10 months agoI don’t wish violence on many people, but I do for people who blatantly advocate for creating unsafe working conditions.
Those executives should be locked up and thrown in prison.
masterspace@lemmy.cato
Science Memes@mander.xyz•memes from my biology class #6English
32·10 months agoYou don’t have to own a home to use caulking, you just need to own caulking and a caulking gun.
masterspace@lemmy.cato
Science Memes@mander.xyz•memes from my biology class #6English
71·10 months agoThe real trick to managing pests in your home is to use caulking to seal the entry points between the interior and the walls, and ideally also between the walls and the exterior.




This post should be removed for not being humor.
Adobe didn’t really lose millions, but that’s not really funny, just incorrect.