this post was submitted on 09 Sep 2023
1053 points (97.2% liked)

Programmer Humor

32588 readers
1227 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] palordrolap@kbin.social 83 points 1 year ago (4 children)

U nd to rembr tht mny snr devs grw up prgrmng on old hrdwr tht ddn't hv mch mmry & oftn th lang ony allwd shrt var nms anywy. Also thy wr th gen of txtspk fr smlr rsns.

Yngr snr devs pckd up bd hbts frm tht gen.

And here's a sentence that's not squashed to cleanse your palettes / give a sigh of relief because I figure if I need a break from typing like that, you need a break from reading it.

Nmng thngs s hrd.

[–] markstos@lemmy.world 49 points 1 year ago (3 children)

I’ve been at this for 25 years and a restriction on variable name length hasn’t been a problem since then.

A good senior dev shouldn’t just be older, they should have continued to learn and evolve.

I do remember texting abbreviations because we texted on a number pad with no autocomplete.

Everyone I know was happy to switch to better keyboards and autocomplete as soon as they were available.

[–] _Sc00ter@lemmy.ml 10 points 1 year ago (1 children)

Speak for yourself. My company only stopped using Fortran this decade.

[–] Hoimo@ani.social 1 points 1 year ago

And with "this decade" you mean within the last 10 years or since 2020? Either way, I'm scared... Just kidding, if this is a bank we're talking about, they're actually ahead of the curve.

[–] palordrolap@kbin.social 5 points 1 year ago

I was mostly poking (heh) fun at myself, (also) a member of the generation I spoke about. Very much not a professional, but I do code a little, and know about the non-triviality of naming things.

Also also, for reasons I won't go into, my phone is still a flip phone.

[–] _cnt0@feddit.de 1 points 1 year ago

Fck ff wth yr rbtrr lngth vrbl nms.

[–] ChickenLadyLovesLife@lemmy.world 9 points 1 year ago (1 children)

oftn th lang ony allwd shrt var nms

I started coding with TurboBasic which allowed variable names of any length but the compiler only looked at the first two letters (and case-insensitive at that), so DOUGHNUT_COUNT and DoobieCounter were actually the same variable. Good times debugging that kind of shit.

[–] palordrolap@kbin.social 3 points 1 year ago

Yeah, I was thinking of old 8-bit computers that did the same ignore-after-second-char thing. Most people didn't bother typing the extra characters though because 1) those characters took up valuable memory and 2) if you accidentally put a keyword in the middle of your longer name, the tokeniser would see it and assume it was a keyword.

e.g. Calling your variable FORGET seemed like a good idea until you got a syntax error because FOR and GET are both keywords. FO it is, then. Or just F.

COLOR was cursed too; OR is usually a keyword, even if COLOR itself isn't. British English COLOUR might save you here, but you're still losing those four extra bytes.

[–] WildeGreen@lemmy.blahaj.zone 3 points 1 year ago

Jks on u I invntd my own lphbt onc, whr vwls r a mrk n th nxt lttr nstd of seprt lttrs. I gt vry gd at rdng cnsnnts.

[–] fsr1967@lemmy.world 3 points 1 year ago

U nd to rembr tht mny snr devs grw up prgrmng on old hrdwr tht ddn't hv mch mmry & oftn th lang ony allwd shrt var nms anywy.

My generation. Many of us learned and adapted over time, and use perfectly decent variable names now.

Also thy wr th gen of txtspk fr smlr rsns.

Nope. Got my first cell phone 8 years into my professional life, and 18-20 years after I started programming. Txtspkrs r th nxt gnrtn. Whippersnappers!

Now get the hell off my lawn!