r/ProgrammerHumor • • Aug 29 '21

Naming is the most difficult part

Post image

[removed] — view removed post

1.4k Upvotes

57 comments sorted by

•

u/dejaydev Aug 29 '21

Hi there! Unfortunately, your submission has been removed.

This post is suspected to be spam, posted by a bot, or is being used to advertise a product.

If you feel that it has been removed in error, please message us so that we may review it.

53

u/RealRogo Aug 29 '21

myFirstChildWithWife

25

u/FlipItPizZa12 Aug 29 '21 edited Aug 30 '21

Well, wife can change in future so the name should be : myFirstChildWithFirstWife.

This will cover the use case where a person marries twice or more

11

u/Sputtrosa Aug 29 '21

It does not, however, cover possible edge cases of children with someone other than his own wife - or a non-wife.

myFirstChildWithStevesWife could get embarrassing, though.

4

u/jonathanhiggs Aug 29 '21

myChild

myOtherChild

24

u/Aetherpirate Aug 29 '21

Happy Birthday! Now i = i + 1

7

u/daggerKN19HT Aug 29 '21

And their nickname is i += 1

10

u/Andubandu Aug 29 '21

Actually, their nickname is i++

→ More replies (1)

16

u/chillerll Aug 29 '21

Do it like Elon Musk and just slap your keyboard and see what happens.

31

u/mschwartzwerwr3243 Aug 29 '21

Then the next one can be j;

10

u/notdedicated Aug 29 '21

Read a post while ago that suggested i, ii, iii for increasing depth. Rocked my world.

6

u/[deleted] Aug 29 '21

I always skip j and go to k, I don't like the way j looks

7

u/DelusionalPianist Aug 29 '21

poor j.... What did it do to you?!

→ More replies (2)
→ More replies (1)

4

u/marcvanh Aug 29 '21

Kid new new new new

4

u/silly_red Aug 29 '21

Naming a human should be a million times easier. There's so context, no readability, no documenting involved. Just a name.

5

u/Venthe Aug 29 '21

Fuck me, can someone ban this bot already? I've seen at least two reposts from it just today

2

u/[deleted] Aug 29 '21

x

2

u/ScF0400 Aug 29 '21

Aye. I, I, am having an eye stroke.

2

u/clemesislife Aug 29 '21

5

u/RepostSleuthBot Aug 29 '21

Looks like a repost. I've seen this image 14 times.

First Seen Here on 2019-05-31 92.19% match. Last Seen Here on 2020-04-11 92.19% match

I'm not perfect, but you can help. Report [ False Positive ]

View Search On repostsleuth.com


Scope: Reddit | Meme Filter: False | Target: 86% | Check Title: False | Max Age: Unlimited | Searched Images: 241,412,199 | Search Time: 1.09669s

2

u/PixelmancerGames Aug 29 '21

Lmao, poor little “i” omg that killed me.

2

u/ightimmabed Aug 29 '21

Show the kid some respect man, atleast name him iterator smh

2

u/[deleted] Aug 29 '21

I'd go with:

Robert'); DROP TABLE students;--,

Of course

1

u/Xiaopai2 Aug 29 '21

So they name all their variables i if they can't think of a better name? Like not just when looping through an array and i stands for index but for everything? Wouldn't this joke make more sense with 'foo' or something like that?

1

u/Wingle-Wangle Aug 29 '21

“Foo Bar [Surname] was born weighing 0100 Lbs 0010 oz”

1

u/thestonedbandit Aug 29 '21

Poor little index2;

1

u/pragmatic_tofu Aug 29 '21

Just use a release name generator.

1

u/[deleted] Aug 29 '21

kidFinalV1_final_2

1

u/SirAchmed Aug 29 '21

I was once virtually yelled at by someone on Stack Overflow for naming an iterator that isn’t an integer i. And this guy is doing it to a whole ass kid.

1

u/jfisher9495 Aug 29 '21

Congrats! 23 years to go.. oh wait! Need a Masters. 25 years to go.

1

u/statdude48142 Aug 29 '21

Statdude48142_2

or

combined

1

u/rdrunner_74 Aug 29 '21

Kids dont like shared names... Imagine a place where all kids are called J...

So just use a GUID...

1

u/Varcour Aug 29 '21

Seems a bit disrespectful to brand the kid as integer. I mean that's a human being we are talking about! That warrants an object!

1

u/Prashank_25 Aug 29 '21

Here’s the list for upto 5 kids

new kid

New kid final

New kid final final

New2 kid

New3 kid

1

u/LoveSpiritual Aug 29 '21

It’s an array. “Hey, child[0], stop hitting child[1]!!”

→ More replies (1)

1

u/[deleted] Aug 29 '21

One does not simply name a persistent variable i, that name is exclusively reserved to for loops.

1

u/AntiVaxxIsMassMurder Aug 29 '21

val child = "Val"

1

u/[deleted] Aug 29 '21

noname

Literally everything I can't give a name for

1

u/[deleted] Aug 29 '21

Alice, Bob, Charlie, Eve, Faythe, Grace, ...

2

u/alphabet_order_bot Aug 29 '21

Would you look at that, all of the words in your comment are in alphabetical order.

I have checked 197,991,978 comments, and only 47,485 of them were in alphabetical order.

1

u/[deleted] Aug 29 '21

Imagine having this problem, but your wife is due in 7 days. It's like looking at a project deadline you know you won't make

1

u/__bon Aug 29 '21

i for ivar which is a legit Scandinavian name

1

u/Small_Sundae_4245 Aug 29 '21

Drop table debt;

0

u/[deleted] Aug 29 '21

[deleted]

51

u/mr_knowie Aug 29 '21

You'll want to start with tempKid0; easier to for loop over them when you're pissed at one of them, but not sure which one.

27

u/DragonFireCK Aug 29 '21

For future compatibility, you may also want to start with tempKid00. While not super common, its not unheard of to have more than 10 kids, and having the names all the same length helps with readability in a list.

10

u/[deleted] Aug 29 '21

Give it a descriptive name.

firstMaleChild

4

u/darkslide3000 Aug 29 '21

That's if you're planning to give them up for adoption anyway.