3 ms·
Didn't happen, but they became more popular. The fact is, that dynamic languages are great for small personal projects, or modular scripts, but if your project
by ardit33 5y ago
Didn't happen, but they became more popular. The fact is, that dynamic languages are great for small personal projects, or modular scripts, but if your projects grow more than 10k Loc, and you have 2+ devs working on it, dynamic typing becomes a major liability.
The raise of unit testing in the early 2003-2006, coincided with the raise of popularity of the Python web frameworks and Ruby on Rails. Suddenly Unit testing became a necessity, while previously it was a 'nice to have', as static typing covered a lot of the errors that dynamic languages introduced. Before 2005, in most places, 'integration testing' was the norm, but not unit testing.
In the other hand, Objective-C took a very interesting turn, where it is a static typed language, but it is message oriented, and you can use it in a semi dynamic typing way. You can send a message (method call) to any object, which allows for interesting compositions (eg. [(id)myObject anyMethod] ). Calling a method on a nil object, doesn't raise exceptions, etc...
I thought it made an awesome compromise. Unfortunately, Swift went the opposite way, which I didn't think was the right call. (as Java already covered that area well). Hence Swift hasn't taken off, appart from iOS as it didn't really introduce anything new, just little soup of paradigms that don't fundamentally make things much better. It was a missed opportunity.
- socialdemocrat 5y agoSize isn’t really a problem for dynamic languages. There has been extensive tests of this. Huge Erlang projects of 1.5 million lines of code have been developed faster and with fewer bugs than comparable systems using statically typed languages like C++. I think size becomes a problem when you don’t properly modularize and test. Also I think often it is more about the specific language in use rather than dynamic vs static typing. I would rather use Go than JavaScript. But I would use Julia over almost anything else when possible.
- arcturus17 5y agoYoutube, Github, Shopify or PornHub are all written in dynamic languages, but here is an anonymous expert telling us how they’re a liability in projects with 10k LOC and 2 devs. The theory that unit tests started happening around the rise of Python and Ruby is vague, unsubstantiated and intellectually lazy. I actually remember the rise of TDD being intimately related to the enterprise world and Java but I’m certainly not going to pass that as scientific fact.