4 ms·
JavaScript, PHP, Python, and Ruby are all in the top 5 spots on GitHub. Java is the only STL that made the cut. There are certainly types of work that seem to f
by bpicolo 11y ago
JavaScript, PHP, Python, and Ruby are all in the top 5 spots on GitHub. Java is the only STL that made the cut. There are certainly types of work that seem to favor dynamic languages, because they have the ability to do some interesting things. ORMs, for example, far more powerful in dynamic languages as far as I've encountered
- nerdy 11y agoEven PHP has trajectory toward static types. Some examples are Hack[1] and PHP7[2]. Check out the talk Rasmus gave at Etsy[3] for more about PHP7 changes but it looks like at least limited support for static or "strict" types (whatever subtle distinction that might be) has enough merit for PHP to implement after all this time. 1. http://hacklang.org/ http://hacklang.org/ 2. http://www.php.net/manual/en/migration70.new-features.php http://www.php.net/manual/en/migration70.new-features.php 3. https://www.youtube.com/watch?v=MT4rRWKygq0 https://www.youtube.com/watch?v=MT4rRWKygq0
- captn3m0 11y agoPHP is still a dynamic language. PHP 7 gets us scalar typehinting support, which lets us check types at run-time. There are similar annotation based solutions for Ruby as well, which ultimately rely on a lot of Ruby's metaprogramming features. The idea behind these solutions is to have proper type support where you need it. You will have to pry duck-typing from my cold dead hands if you try to remove it from PHP/Ruby completely.
- jinst8gmi 11y ago> JavaScript, PHP, Python, and Ruby are all in the top 5 spots on GitHub. All of which are established languages created in the 90's. It takes time for languages which are rapidly gaining mindshare to gain marketshare on GitHub.
- danmaz74 11y ago> It takes time for languages which are rapidly gaining mindshare Honestly curious: which new languages are those?
- jinst8gmi 11y agoGo, Swift and Rust come to mind. Some alternative JVM languages aren't doing too badly either.
- Veedrac 11y agoSwift is very much an Apple language, replacing Objective-C. You won't see it replacing JavaScript, PHP, Python, or Ruby. Same for Rust, which mostly replaces C++ and a bit of C. Maybe some Java, too, for people using Java for the safety despite really wanting something lower level. IMHO Go isn't much competition to most popular dynamic languages, but some people disagree.
- ldrndll 11y agoIt's anecdotal, but in the absence of anything more concrete... I think every blog post I've read about Go (bar one) that has mentioned the author's previous language mentioned a dynamically typed language. That may just indicate that switching to Go from a dynamically typed language makes you more zealous and likely to blog about it something. Or it could be that lots of Go users were previously writing Python/Ruby/etc.
- Shorel 11y agoI would say go and rust.
- Thiz 11y ago> Java is the only STL that made the cut. Because of Android.