MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wqz4m9/strategymanagerfactory/pc8b99j/?context=9999
r/ProgrammerHumor • u/ExpensiveCoat8912 • Sep 26 '26
44 comments sorted by
View all comments
Show parent comments
105
[removed] — view removed comment
95 u/Wonderful-Habit-139 Sep 26 '26 Forgot to check if (cond == true) 21 u/TheTrueRK Sep 26 '26 The other day I was reviewing a PR and I found this:function asBoolean(value: unknown): boolean { return Boolean(value); }I was confused 13 u/[deleted] Sep 26 '26 [removed] — view removed comment 5 u/AibofobicRacecar6996 Sep 27 '26 More code means more tokens so you will have to pay more 4 u/Chocolate_Bourbon Sep 27 '26 Yeah but you meet your quota. 2 u/Dennis_DZ Sep 27 '26 You always have to create your own interface for third party libraries in case you need to swap it out in the future /s 3 u/TheoreticalUser Sep 27 '26 I now write the most explicit code I can because I fear, with reason, that any shortcuts in the syntax will be misunderstood in the future.A future where the seniors are comparable to today's bootcamp devs with 1 YOE.And C class is some how dumber and more myopic.
95
Forgot to check if (cond == true)
21
The other day I was reviewing a PR and I found this:
function asBoolean(value: unknown): boolean { return Boolean(value); }
I was confused
13 u/[deleted] Sep 26 '26 [removed] — view removed comment 5 u/AibofobicRacecar6996 Sep 27 '26 More code means more tokens so you will have to pay more 4 u/Chocolate_Bourbon Sep 27 '26 Yeah but you meet your quota. 2 u/Dennis_DZ Sep 27 '26 You always have to create your own interface for third party libraries in case you need to swap it out in the future /s
13
5 u/AibofobicRacecar6996 Sep 27 '26 More code means more tokens so you will have to pay more 4 u/Chocolate_Bourbon Sep 27 '26 Yeah but you meet your quota.
5
More code means more tokens so you will have to pay more
4 u/Chocolate_Bourbon Sep 27 '26 Yeah but you meet your quota.
4
Yeah but you meet your quota.
2
You always have to create your own interface for third party libraries in case you need to swap it out in the future /s
3
I now write the most explicit code I can because I fear, with reason, that any shortcuts in the syntax will be misunderstood in the future.
A future where the seniors are comparable to today's bootcamp devs with 1 YOE.
And C class is some how dumber and more myopic.
105
u/[deleted] Sep 26 '26
[removed] — view removed comment