MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/gxm3af/its_the_law/ft38cgh/
r/ProgrammerHumor • u/siraajgudu • Jun 06 '20
1.1k comments sorted by
View all comments
Show parent comment
375
i stands for iteration, j stands for jiteration
198 u/kakakaan Jun 06 '20 I think “i” stands for index. 73 u/Soren11112 Jun 06 '20 It does in an array → More replies (2) 12 u/finger_milk Jun 06 '20 edited Jun 06 '20 Then people would dofoos.forEach((foo, i) => {});If anyone did that, I would throw them off a cliff.Edit: I meant if people did this on a production site, because it has very little semantic context with the rest of the app 23 u/Axe-actly Jun 06 '20 It would be funny to make a program entirely in foo bar. Like, you're retiring the next month and you want to mess with your successors.All variables can only be one letter or foo bar. If you declare a string, you call it "arr" of course. And an integer could be called "foo_str".All your functions are one letter too by the way. So "i" is a char but i() is a function.Edit: Switch upper case and lower case too! So you can have:I=I==i?i(I):I(i); 7 u/death_of_gnats Jun 06 '20 I can fix this with regex. 8 u/MangoCats Jun 06 '20 My editor can fix this with "refactor" - if you speak regex, I'm happy for you, but won't willingly speak it with you. 3 u/Snarklord Jun 06 '20 "Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper" → More replies (1) 6 u/NoPossibility Jun 06 '20 Going even further, use the same variables names across functions, and overwrite/reuse variable names within functions once their logic is completed.Example:$i = 12;$j = $i + 3;$i = 2;$j = $j + $i;Just to fuck with them and make them think really hard. 7 u/Mindfulgaming Jun 06 '20 Then people would dofoos.forEach((foo, i) => {});If anyone did that, I would throw them off a cliff.I usually go foos.forEach((foo,fighters) => {}) but I guess that's just me being a (flying from a cliff) fan boy. :( 3 u/MangoCats Jun 06 '20 No, no, no.... it's:baz.forEach( foo in bar ) {} 2 u/FerretWithASpork Jun 06 '20 I, too, would throw people off a cliff for choosing Javascript. → More replies (1) → More replies (1) 2 u/Rellac_ Jun 06 '20 I always thought it was just integer → More replies (5) 49 u/rookie_butt_slapper Jun 06 '20 Let's not forget k for kiteration. 12 u/Neverbethesky Jun 06 '20 literation 14 u/trixter21992251 Jun 06 '20 when you reach n it's time to rethink your code 6 u/MangoCats Jun 06 '20 otteration. → More replies (1) 2 u/Servious Jun 06 '20 Only for the most fire of code. → More replies (1) 4 u/vaakezu Jun 06 '20 with electricity there is a naming convention for three phases witch is i-j-k. → More replies (3) 29 u/the_last_n00b Jun 06 '20 It's pronounced giteration, not jiteration 23 u/trixter21992251 Jun 06 '20 yeah, jithub says so, too 4 u/fsr1967 Jun 06 '20 > git -erationunknown command 'eration'> 6 u/baseball2020 Jun 06 '20 Wait what we’re iterating?!?! Ok do it now! Just in time iteration - jiteration 5 u/[deleted] Jun 06 '20 After a couple of coffees debugging that shit code (that I wrote) late into the night, it's a jitteration alright. → More replies (4)
198
I think “i” stands for index.
73 u/Soren11112 Jun 06 '20 It does in an array → More replies (2) 12 u/finger_milk Jun 06 '20 edited Jun 06 '20 Then people would dofoos.forEach((foo, i) => {});If anyone did that, I would throw them off a cliff.Edit: I meant if people did this on a production site, because it has very little semantic context with the rest of the app 23 u/Axe-actly Jun 06 '20 It would be funny to make a program entirely in foo bar. Like, you're retiring the next month and you want to mess with your successors.All variables can only be one letter or foo bar. If you declare a string, you call it "arr" of course. And an integer could be called "foo_str".All your functions are one letter too by the way. So "i" is a char but i() is a function.Edit: Switch upper case and lower case too! So you can have:I=I==i?i(I):I(i); 7 u/death_of_gnats Jun 06 '20 I can fix this with regex. 8 u/MangoCats Jun 06 '20 My editor can fix this with "refactor" - if you speak regex, I'm happy for you, but won't willingly speak it with you. 3 u/Snarklord Jun 06 '20 "Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper" → More replies (1) 6 u/NoPossibility Jun 06 '20 Going even further, use the same variables names across functions, and overwrite/reuse variable names within functions once their logic is completed.Example:$i = 12;$j = $i + 3;$i = 2;$j = $j + $i;Just to fuck with them and make them think really hard. 7 u/Mindfulgaming Jun 06 '20 Then people would dofoos.forEach((foo, i) => {});If anyone did that, I would throw them off a cliff.I usually go foos.forEach((foo,fighters) => {}) but I guess that's just me being a (flying from a cliff) fan boy. :( 3 u/MangoCats Jun 06 '20 No, no, no.... it's:baz.forEach( foo in bar ) {} 2 u/FerretWithASpork Jun 06 '20 I, too, would throw people off a cliff for choosing Javascript. → More replies (1) → More replies (1) 2 u/Rellac_ Jun 06 '20 I always thought it was just integer → More replies (5)
73
It does in an array
→ More replies (2)
12
Then people would dofoos.forEach((foo, i) => {});
If anyone did that, I would throw them off a cliff.
Edit: I meant if people did this on a production site, because it has very little semantic context with the rest of the app
23 u/Axe-actly Jun 06 '20 It would be funny to make a program entirely in foo bar. Like, you're retiring the next month and you want to mess with your successors.All variables can only be one letter or foo bar. If you declare a string, you call it "arr" of course. And an integer could be called "foo_str".All your functions are one letter too by the way. So "i" is a char but i() is a function.Edit: Switch upper case and lower case too! So you can have:I=I==i?i(I):I(i); 7 u/death_of_gnats Jun 06 '20 I can fix this with regex. 8 u/MangoCats Jun 06 '20 My editor can fix this with "refactor" - if you speak regex, I'm happy for you, but won't willingly speak it with you. 3 u/Snarklord Jun 06 '20 "Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper" → More replies (1) 6 u/NoPossibility Jun 06 '20 Going even further, use the same variables names across functions, and overwrite/reuse variable names within functions once their logic is completed.Example:$i = 12;$j = $i + 3;$i = 2;$j = $j + $i;Just to fuck with them and make them think really hard. 7 u/Mindfulgaming Jun 06 '20 Then people would dofoos.forEach((foo, i) => {});If anyone did that, I would throw them off a cliff.I usually go foos.forEach((foo,fighters) => {}) but I guess that's just me being a (flying from a cliff) fan boy. :( 3 u/MangoCats Jun 06 '20 No, no, no.... it's:baz.forEach( foo in bar ) {} 2 u/FerretWithASpork Jun 06 '20 I, too, would throw people off a cliff for choosing Javascript. → More replies (1) → More replies (1)
23
It would be funny to make a program entirely in foo bar. Like, you're retiring the next month and you want to mess with your successors.
All variables can only be one letter or foo bar. If you declare a string, you call it "arr" of course. And an integer could be called "foo_str".
All your functions are one letter too by the way. So "i" is a char but i() is a function.
Edit: Switch upper case and lower case too! So you can have:
I=I==i?i(I):I(i);
7 u/death_of_gnats Jun 06 '20 I can fix this with regex. 8 u/MangoCats Jun 06 '20 My editor can fix this with "refactor" - if you speak regex, I'm happy for you, but won't willingly speak it with you. 3 u/Snarklord Jun 06 '20 "Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper" → More replies (1) 6 u/NoPossibility Jun 06 '20 Going even further, use the same variables names across functions, and overwrite/reuse variable names within functions once their logic is completed.Example:$i = 12;$j = $i + 3;$i = 2;$j = $j + $i;Just to fuck with them and make them think really hard.
7
I can fix this with regex.
8 u/MangoCats Jun 06 '20 My editor can fix this with "refactor" - if you speak regex, I'm happy for you, but won't willingly speak it with you. 3 u/Snarklord Jun 06 '20 "Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper" → More replies (1)
8
My editor can fix this with "refactor" - if you speak regex, I'm happy for you, but won't willingly speak it with you.
3 u/Snarklord Jun 06 '20 "Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper" → More replies (1)
3
"Yeah so we're going to need regex" Me: sigh. "I'll Google a regex helper"
→ More replies (1)
6
Going even further, use the same variables names across functions, and overwrite/reuse variable names within functions once their logic is completed.
Example:
$i = 12;
$j = $i + 3;
$i = 2;
$j = $j + $i;
Just to fuck with them and make them think really hard.
I usually go foos.forEach((foo,fighters) => {}) but I guess that's just me being a (flying from a cliff) fan boy. :(
No, no, no.... it's:
baz.forEach( foo in bar ) {}
2
I, too, would throw people off a cliff for choosing Javascript.
I always thought it was just integer
49
Let's not forget k for kiteration.
12 u/Neverbethesky Jun 06 '20 literation 14 u/trixter21992251 Jun 06 '20 when you reach n it's time to rethink your code 6 u/MangoCats Jun 06 '20 otteration. → More replies (1) 2 u/Servious Jun 06 '20 Only for the most fire of code. → More replies (1) 4 u/vaakezu Jun 06 '20 with electricity there is a naming convention for three phases witch is i-j-k. → More replies (3)
literation
14 u/trixter21992251 Jun 06 '20 when you reach n it's time to rethink your code 6 u/MangoCats Jun 06 '20 otteration. → More replies (1) 2 u/Servious Jun 06 '20 Only for the most fire of code. → More replies (1)
14
when you reach n it's time to rethink your code
6 u/MangoCats Jun 06 '20 otteration. → More replies (1)
otteration.
Only for the most fire of code.
4
with electricity there is a naming convention for three phases witch is i-j-k.
29
It's pronounced giteration, not jiteration
23 u/trixter21992251 Jun 06 '20 yeah, jithub says so, too 4 u/fsr1967 Jun 06 '20 > git -erationunknown command 'eration'>
yeah, jithub says so, too
> git -erationunknown command 'eration'>
> git -eration
unknown command 'eration'
>
Wait what we’re iterating?!?! Ok do it now! Just in time iteration - jiteration
5
After a couple of coffees debugging that shit code (that I wrote) late into the night, it's a jitteration alright.
View all comments
Show parent comment
375
u/RedMantisValerian Jun 06 '20
i stands for iteration, j stands for jiteration