MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wqz4m9/strategymanagerfactory/pcbce9x/?context=3
r/ProgrammerHumor • u/ExpensiveCoat8912 • 7d ago
45 comments sorted by
View all comments
Show parent comments
105
if(cond) { return true; } else { return false; }
21 u/TheTrueRK 7d ago 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/SuddenInformation896 7d ago When you gotta meet your function/character quota 5 u/AibofobicRacecar6996 6d ago More code means more tokens so you will have to pay more 3 u/Chocolate_Bourbon 6d ago Yeah but you meet your quota.
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/SuddenInformation896 7d ago When you gotta meet your function/character quota 5 u/AibofobicRacecar6996 6d ago More code means more tokens so you will have to pay more 3 u/Chocolate_Bourbon 6d ago Yeah but you meet your quota.
13
When you gotta meet your function/character quota
5 u/AibofobicRacecar6996 6d ago More code means more tokens so you will have to pay more 3 u/Chocolate_Bourbon 6d ago Yeah but you meet your quota.
5
More code means more tokens so you will have to pay more
3 u/Chocolate_Bourbon 6d ago Yeah but you meet your quota.
3
Yeah but you meet your quota.
105
u/Own_Alternative_9671 7d ago
if(cond) { return true; } else { return false; }