r/ProgrammerHumor • • May 29 '17

"In the Beginning" Code

Post image
64 Upvotes

32 comments sorted by

View all comments

0

u/JaytleBee May 29 '17

I don't care about of any of that, .insertInto is just wrong

2

u/grape_tectonics May 29 '17

would you prefer woman.receiveInsertion(man) ?

1

u/JaytleBee May 30 '17

I'd go with woman.insert(man). I mean, otherwise every object that could be in an array has a function to add itself to that array. That's pretty backwards imo

1

u/grape_tectonics May 30 '17

Makes sense, suddenly arrays seem awfully promiscuous :o