Hacker News new | ask | show | jobs
by thefaux 810 days ago
I think this is both right and wrong. Granting Sturgeon's law, most code is bad and hard to read and type annotations will usually help. On the other hand, in code that is very well written, type annotations are largely redundant visual clutter that do not improve the readability.

I'd say that for most people, use annotations most of the time is good advice, but there are exceptions and people should refrain from casting judgment on other's work due to a dogmatic instance on others using their preferred style.

1 comments

I agree completely, well said. It's probably 1 in 10 (in line with Sturgeon's Law) but there are some devs out there for whom their code is like poetry, and reading it is a genuine pleasure. For those, types and annotations and such really do add clutter and make it worse.