Re:38% of bugs at Airbnb could have been prevented by using ...
by colordrops on Sunday February 10, 2019 @10:28PM
(#19131834)
Are you implying that dynamically typed programming languages are a mistake?
[ Parent
| on HN ]
Re:38% of bugs at Airbnb could have been prevented by using ...
by int_19h on Sunday February 10, 2019 @11:42PM
(#19132118)
IMO, dynamically typed languages made more sense when type systems in mainstream statically language languages were much more primitive, and that limited what you could do - and it was often verbose when you could.
But the kind of type systems your average dev has to deal with improved a lot in their expressiveness since 90s. Type inference is basically mainstream, too. There are still things that cannot be described nicely, but they tend to be a lot more "magic" - the kind of stuff that lets you write code faster, but not necessarily write more readable and understandable code.
Re:38% of bugs at Airbnb could have been prevented by using ...
by fosk on Sunday February 10, 2019 @11:38PM
(#19132108)
Like everything else, there are pros and cons. It’s not like dynamic languages are worse or better per-se, but they surely make it harder to scale a team or a codebase 10x the original size without introducing what effectively is some sort of typed system (or strict “typed” conventions that the team agrees upon) in place. Which may be done right, or disastrously wrong. A typed language generally doesn’t leave this step up for interpretation later on, since everybody agrees on it since day one.
Re:38% of bugs at Airbnb could have been prevented by using ...
by cellularmitosis on Monday February 11, 2019 @06:03AM
(#19133553)
As a newbie to clojure, I’m very curious to see what a large codebase looks and feels like. The clojure attitude seems to be that types come at the cost of reduced code reuse, which I tend to agree with. After a decade spent in strongly-typed OO, it is starting to feel like a bunch of sound and fury which seems to end up eventually just getting in my way. I’m definitely open to new ideas in this area, and am looking forward to taking a deeper dive into clojure this year.
Re:38% of bugs at Airbnb could have been prevented by using ...
by jondubois on Monday February 11, 2019 @03:27PM
(#19137961)
Alternatively, you can break the project up into modules; each of which are maintained my smaller teams. I think that is a cleaner approach.
Re:38% of bugs at Airbnb could have been prevented by using ...
by ajxs on Monday February 11, 2019 @12:51AM
(#19132357)
Absolutely not, but horses for courses.
I use all of these dynamically typed languages regularly and I enjoy programming in them too, but choosing the right tool for the job should take precedence over personal preferences.
Re:38% of bugs at Airbnb could have been prevented by using ...
by colordrops on Monday February 11, 2019 @07:16PM
(#19139830)
So then you are saying every single use case which node.js currently fulfills should use statically typed languages? This does not match my experience of node.js being used in many of the same cases as other dynamically typed languages. What cases specifically are dynamically typed languages suited for?