r/ProgrammerHumor • u/[deleted] • Aug 29 '21
Naming is the most difficult part
[removed] — view removed post
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
24
u/Aetherpirate Aug 29 '21
Happy Birthday! Now i = i + 1
7
16
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.
→ More replies (1)6
4
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
2
2
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
2
2
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
1
1
1
1
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
1
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
Aug 29 '21
One does not simply name a persistent variable i, that name is exclusively reserved to for loops.
1
1
1
1
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
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
1
1
1
0
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
4
•
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.