logoalt Hacker News

conartist6today at 1:32 AM3 repliesview on HN

You don't need a strong type system or even really ANY compile-time type system for this strategy to work! I use all these techniques in plain JS and I can still get the benefits of correct-by-construction code style just by freezing objects and failing fast.


Replies

keyletoday at 4:21 AM

You're about a decade too late with that argument. The best argument for dynamic types systems, is enjoying debugging in production.

In dynamic languages, you are the type system.

show 1 reply
agumonkeytoday at 1:58 AM

Is this a methodology you use at work or only for personal projects ? I'm curious how common this culture is among companies/teams.

show 1 reply
bdangubictoday at 1:56 AM

godspeed with that :)