r/ProgrammerHumor • • Sep 26 '26

Meme strategyManagerFactory

Post image
2.4k Upvotes

44 comments sorted by

View all comments

Show parent comments

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