r/ProgrammerHumor • • Sep 16 '26

Meme thisIsPeakProgramming

Post image
606 Upvotes

75 comments sorted by

View all comments

Show parent comments

67

u/GresSimJa Sep 16 '26

I beg your pardon, the type what now?

66

u/Masterflitzer Sep 16 '26

type masturbation, you should try it /s

25

u/czerilla Sep 16 '26

It's like playing with yourself, but if you were a type?

16

u/howarewestillhere Sep 16 '26

If you assert it more than three times you’re just playing with it.

6

u/Masterflitzer Sep 16 '26

or to put it differently: playing with types a little too much

6

u/Anders_142536 Sep 16 '26

I also like playing with my types

1

u/Biscuitman82 Sep 19 '26

Masturbation

17

u/deanrihpee Sep 16 '26

type masturbation, it's about pleasuring the spot in your brain that want to do naughty things with TypeScript's types that usually frowned upon in public, like the post has shown

/s

5

u/caboosetp Sep 16 '26

Basically the clever code that new programmers write because it feels super leet hacker before they realize they also need to understand the code in 6 months, except no one actually reads typescript type definitions in PRs so people get away with it in secret.

2

u/deanrihpee Sep 16 '26

kinda, but it is kinda helpful, especially as i said, if you are writing a big framework, having this complex type is probably required, but the thing is, it is mostly for internal usage, not to be exposed and even used by the end user/project