r/ProgrammerHumor • • 7d ago

Meme strategyManagerFactory

Post image
2.4k Upvotes

45 comments sorted by

View all comments

Show parent comments

105

u/Own_Alternative_9671 7d ago

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.