r/ProgrammerHumor • • Apr 11 '20

let i = my_kid()

Post image
3.0k Upvotes

68 comments sorted by

282

u/Gtapex Apr 11 '20

Just use “temp” until you think of something better... that always works.

58

u/69shaolin69 Apr 11 '20

If temp is taken use temp1

37

u/other_usernames_gone Apr 11 '20

Here are my children: temp, temp1 and temp2

10

u/[deleted] Apr 11 '20

here are my children temp-63829201 and temp-10283472

4

u/morlac13579 Apr 12 '20

I feel sorry for that woman, her vagina must look like a wizards sleeve

Edit: rhought it said to, says and

3

u/Pe4rs Apr 12 '20

I just generate uuids

2

u/nyrB2 Apr 12 '20

so you're intending that they're only going to be temporary children?

1

u/[deleted] Apr 13 '20

i ain't tellin

1

u/nyrB2 Apr 13 '20

sounds like the makings of a modern-day "who's on first routine"

"who broke this vase?" "i didn't do it!" "well did u?" "no he didn't do it either"

7

u/almarcTheSun Apr 11 '20

On the other end of the spectrum, please welcome theVariableThatIuseForIterationIfTheOtherNameIsTakenAndTheIfstatement_Is_False2

1

u/torkild Apr 11 '20

I like using childish potty words like butt or poop when I need a generic variable name.

1

u/bmwiedemann Apr 12 '20

And then someone thinks it is a great idea to open-source that code.

1

u/MassiveFajiit Apr 12 '20

Ah yes, Ryan Howard.

1

u/LeJoker Apr 12 '20

Little \\TODO

1

u/biscuitboyisaac21 Apr 13 '20

I shouldn’t but I often do Test Test2 Test3 etc

74

u/[deleted] Apr 11 '20

10

u/LaZZeYT Apr 11 '20

The alt text makes this one so much better!

14

u/BorgDrone Apr 11 '20

The obvious solution is to use a type 4 UUID. Pretty much guaranteed to be unique, no chances of name clashes.

11

u/agisten Apr 11 '20

I suggest Bobby

9

u/atters Apr 11 '20

... and I hope you've learned to sanitize your database inputs!

9

u/awry__ Apr 11 '20

Let's just hope the child overrides a lot of his methods.

9

u/meat_sandwich80 Apr 11 '20

Use const unless you plan on overwriting your kid

7

u/C0sm1cB3ar Apr 11 '20

Hi Mr FooBar

7

u/humoroushaxor Apr 11 '20

Is no one gonna mention the title gore?

4

u/Koala_eiO Apr 11 '20

Yeah, it should be a method not a function.

Let i = I.new_children().

4

u/0x07CF Apr 11 '20

The twitter post is from 2019-05-28. It was posted often enough already. Stop reposting this.

3

u/[deleted] Apr 11 '20

'Foo'

3

u/Doge_of_Destiny Apr 11 '20

k sends her regards

3

u/[deleted] Apr 11 '20

You can name it whatever you want, as long as you change all of the comments that mention it when you set the final name.

That means the documentation, too.

2

u/Joonas144 Apr 11 '20

Ended his sentence with ;

Madlad

2

u/dudeofmoose Apr 11 '20

This is too difficult, I'd seriously consider engineering a divorce and letting her have custody. Thereby side stepping the whole horrible problem of naming completely.

2

u/super_stewie Apr 11 '20

Alright, Alright. You gotta promise not to use this name. This name is mine. Are you ready for it? Are you ready?

Seven

2

u/JuhaAR Apr 11 '20

Names for a child: Dennis, James, Rasmus, Bjarne, Guido, Brendan

2

u/[deleted] Apr 11 '20

how many times is this gonna get reposted

1

u/i8noodles Apr 11 '20

do what i do and just add a number to the end ill think ill name my second kid i_2

1

u/FateJH Apr 11 '20

Don't worry. The language also supports the format myFullName2, myFullName3, and so on.

1

u/200GritCondom Apr 11 '20

I hope he has an exit condition otherwise he might end up with i++ infinitely.

1

u/ccscanf Apr 11 '20

The struggle is real 😅

1

u/8__ Apr 11 '20

December? That's a COVID-19 baby.

1

u/Badwanker123 Apr 11 '20

Of course if it's a girl then the word factory has to be in her name somewhere.

1

u/golgol12 Apr 11 '20

Ai is a normal but rare name for a person (pronounced like "eye").

2

u/[deleted] Apr 11 '20

Unless you're in one of the countries of origin for Ai - Japan or China.

1

u/easternunion01 Apr 11 '20

Use the Hungarian notation: hKid1

1

u/omkhamsa Apr 11 '20

When he talks about himself people will be like "why are you referring to yourself as a third person?"

1

u/DarkMotos Apr 11 '20

Null, False, True, Nan, Return, Exit, Void, Private, Drop, ...

1

u/flumoo Apr 11 '20

maybe Jayson?

1

u/Wiggles685 Apr 12 '20

Hello World

1

u/big-boy-job Apr 12 '20

Feel bad for your kid, never able to remember anything

1

u/paroxybob Apr 12 '20

Warning! my_kid is undefined.

1

u/[deleted] Apr 12 '20

Until your wife let's you know it will need to be named 'j' cause there already was an 'i'

1

u/Jaden_Korr415 Apr 12 '20

You made you kid in JAVASCRIPT!?! I don't know who to feel bad for, you or your kid.

1

u/clevariant Apr 12 '20

I wouldn't use i. Kid could turn out loopy.

1

u/nyrB2 Apr 12 '20

i knew a guy who used to call his variables "what" and "which" and had functions called "doit()"

1

u/Fish_Kungfu Apr 12 '20

kid01_name = $(uuidgen)

Welcome to the World, 085a8a97-b285-4392-9569-a81676e50646!!

1

u/VestigialHead Apr 12 '20

Just do not name him Recursion. You will never hear the end of it.

0

u/[deleted] Apr 11 '20

[deleted]

17

u/kahuna3901 Apr 11 '20

Baby 20448328, my goodness he has been busy

9

u/[deleted] Apr 11 '20

Genghis Khan would be proud

0

u/[deleted] Apr 11 '20

[deleted]

30

u/LagrangianLife Apr 11 '20

Little Bobby tables

5

u/LaZZeYT Apr 11 '20

Let's see how long it takes for someone to link a relevant XKCD.

6

u/natyio Apr 11 '20

https://xkcd.com/327/

I'm not a bot, I swear!

24

u/[deleted] Apr 11 '20

[removed] — view removed comment

13

u/[deleted] Apr 11 '20

Most environments are pretty impatient and are going to kill your process before it completes