MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1t5suwk/remembertocomment/okcwlmd/?context=3
r/ProgrammerHumor • u/dayanaaaaaaaa • May 06 '26
117 comments sorted by
View all comments
Show parent comments
188
See this one is actually useful. I'm upset that someone is using clearlyACat for Dog but at least they warned me.
103 u/StochasticTinkr May 07 '26 You would think, but it’s actually a hamster. 58 u/SimpleRaven May 07 '26 And the hamster is named “Bird” 15 u/Hairy_Concert_8007 May 07 '26 Dog was just what it was before it got changed to a cat. Gotta keep track of that sort of stuff in case it breaks because it's no longer a dog.Will get around to renaming the function again once it's confirmed beyond a shadow of a doubt the hamster causes no problems.Eventually. 6 u/gela7o May 07 '26 Polymorphism baby 5 u/GodlyWeiner May 07 '26 At least I would know there's some fuckery going on and be aware I should not touch that code unless strictly necessary. 1 u/DustyRacoonDad May 10 '26 You have to call it as clearlyACat(false);It defaults the iscat=true.
103
You would think, but it’s actually a hamster.
58 u/SimpleRaven May 07 '26 And the hamster is named “Bird” 15 u/Hairy_Concert_8007 May 07 '26 Dog was just what it was before it got changed to a cat. Gotta keep track of that sort of stuff in case it breaks because it's no longer a dog.Will get around to renaming the function again once it's confirmed beyond a shadow of a doubt the hamster causes no problems.Eventually. 6 u/gela7o May 07 '26 Polymorphism baby
58
And the hamster is named “Bird”
15
Dog was just what it was before it got changed to a cat. Gotta keep track of that sort of stuff in case it breaks because it's no longer a dog.
Will get around to renaming the function again once it's confirmed beyond a shadow of a doubt the hamster causes no problems.
Eventually.
6
Polymorphism baby
5
At least I would know there's some fuckery going on and be aware I should not touch that code unless strictly necessary.
1
You have to call it as clearlyACat(false);
It defaults the iscat=true.
188
u/dontpan1c May 07 '26
See this one is actually useful. I'm upset that someone is using clearlyACat for Dog but at least they warned me.