my high school teacher says it's "coding norm" so I always do it. Everything else I try to use meaningful variables. I'm glad I did, but I'm now just experiencing the pain of coworkers using bad variables ( all variables are H, h, x, dd, a, etc)
Yeah but that one time you actually want to do that, it'll warn you, you'll "correct" it, creating a bug, which you will find & fix later. Infinite loop with no exit condition other than you realizing what you've done.
Hey /u/CommonMisspellingBot, just a quick heads up: Your spelling hints are really shitty because they're all essentially "remember the fucking spelling of the fucking word".
And your fucking delete function doesn't work. You're useless.
Hey BooCMB, just a quick heads up: I learnt quite a lot from the bot. Though it's mnemonics are useless, and 'one lot' is it's most useful one, it's just here to help. This is like screaming at someone for trying to rescue kittens, because they annoyed you while doing that. (But really CMB get some quiality mnemonics)
I do agree with your idea of holding reddit for hostage by spambots though, while it might be a bit ineffective.
My most frequent reason behind this kind of errors is when I copy-paste lines and forget to rename a particular variable at all the instances (especially when they are too complex to type again).
Whenever I insert the 'for' snippet, the type of the index variable is selected, instead of the name. Why?? Do people really use non-int iterators more often than they use something not named 'i'?
took me a bit to parse this out...are you using an IDE? you are using a program to put in a for statement? it's a fucking for statement, you should be able to write that shit from muscle memory.
I'm using VSCode. It's not a big issue, it's just kind of annoying. I use it because it's just faster to type for-TAB than to type out the whole thing. I meant that I use autocomplete
83
u/obvioustransthowaway May 03 '19
Title gave me a double take and a chuckle. Well done.
67
u/layll May 03 '19
the amount of thimes i've had for in for loops like
is immesurable
13
u/[deleted] May 03 '19
Stuff like this is literally the bane of my existence. Backtracing a segfault for half an hour only to find out that I mixed up
/and%again...5
u/AuthorTomFrost May 19 '19
Programming is long stretches of frustration followed by Eureka moments followed by long stretches of frustration.
3
u/Alemismun May 24 '19
Oh hey, I added the comma and now the (something) works but everything after it is broken.
Fuck.
2
u/Olioliooo May 14 '19
This is why I don’t use j as a control variable. If I need to use a nested loop, I use i and k instead of i and j.
2
u/[deleted] Jun 03 '19
one hour ?
it's been 5 hours now , and i still didn't find it !
(btw i'm a newbie in c#)
2
u/Inukinator Jun 25 '19
for item in arraytho (or whatever your preffered syntax is)2
u/Spatial_Piano Jun 26 '19
As an R user all I can say is
1
u/The_Bic_Pen May 03 '19
Whenever I insert the 'for' snippet, the type of the index variable is selected, instead of the name. Why?? Do people really use non-int iterators more often than they use something not named 'i'?