r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

5

u/thirdegree Violet security clearance Mar 21 '24

"1" + 1 in ts -> 11

"1" + 1 in py -> type error (as God intended)

Dynamic vs static and weak vs strong typing are very different things.

Dynamic and weak: JavaScript

Dynamic and strong: python

Static and weak: C

Static and strong: rust

My personal preference: for quick, easy scripts and apps -- python. For complex or sensitive applications -- rust. I do not approve of weak typing for any application. It's too easy to fuck up and too hard to figure out where you fucked up.

2

u/intotheirishole Mar 21 '24

Thank god {}+1 is error in ts .

2

u/thirdegree Violet security clearance Mar 21 '24

Ya ts is nice. I still don't like most frameworks that involve it, but that's for entirely different and mostly personal reasons