r/ProgrammerHumor • • Jun 06 '20

It's the law!

Post image
38k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

375

u/RedMantisValerian Jun 06 '20

i stands for iteration, j stands for jiteration

198

u/kakakaan Jun 06 '20

I think “i” stands for index.

12

u/finger_milk Jun 06 '20 edited Jun 06 '20

Then people would do
foos.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 do
foos.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

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 -eration
unknown 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)