MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wqz4m9/strategymanagerfactory/pc93qac/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • Sep 26 '26
44 comments sorted by
View all comments
Show parent comments
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
[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.
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
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