r/ProgrammerHumor • • Mar 20 '24

Meme areJSDevsActuallySane

Post image
14k Upvotes

554 comments sorted by

View all comments

Show parent comment

4

u/[deleted] Mar 21 '24

Python is better, but only slightly.

In order to actually see the error you would need to execute the code (and record the error)

This is fine if all code paths are always executed every time. But pretty much every program has branches.

The nice thing is the compilers check all code paths. Tests usually don’t. Getting 100% test coverage takes a few thousand hours in any non trivial project.