Hacker News new | ask | show | jobs
by aswerty 685 days ago
Static types are sanity when the people and years keep increasing. It isn't at all important in small one man projects since most of your defined types are in your head in any case.

There is nothing wrong with JavaScript as a language beyond it's, originally questionable, foundations that have since been iterated upon (much like PHP).

As a massive fan of static typed languages. There is no denying that dynamic typed languages are more fun to develop with in smaller project. It just they often hit a tipping point when they become a horror to deal with. I can still remember my first legacy Python code based where everything was thrice nested dictionaries.

3 comments

"It isn't at all important in small one man projects since most of your defined types are in your head in any case."

Yes, today. Not in 7 days, let alone 3 months.

And if you are working on multiple projects as a freelancer, the brain capacity it occupies seriously hampers productivity.

We are creating software to make people more productive, but when it comes to our own productivity many of us interestingly shy away from using software (types, in this case) to enhance our own.

I did this mistake for years. Cost me dearly.

I often hear people say this, but in my opinion, static types save a ton of trial and error and help you out even for a 20 LoC script.
And have great discoverability when fully integrated into an IDE.
Type safety is important but 80% of the infra is built on bash :rolleyes: