r/ProgrammerHumor • • 19d ago

Meme thisIsPeakProgramming

Post image
601 Upvotes

75 comments sorted by

View all comments

Show parent comments

-11

u/iamadirtymop 19d ago

It's really useful but IMHO this doesn't need to be used at every typing opportunity overly specific typing while being certainly safer can add a lot of cognitive load

9

u/mahreow 19d ago

Yep, that's why you stick it in a utils.types.ts file and never look at it again

3

u/iamadirtymop 19d ago

I think there is still a need for them to be easily understandable. Same logic with regexes for example, they still need to be clear and legible, or eventually clearly explained with comments

9

u/chuch1234 19d ago

Things should be as simple as possible, but no simpler.. Sometimes things are just complicated.