by djhworld · 14y ago · 0 comments
The problem with it for me is, it's totally unusable for writing quick command line scripts/applications because you need to either
a) Run java -cp <classpath> <class-with-main>
b) Write a shell/batch script to do the above.
Then there's the lack of good stuff found in modern languages like first class functions.
It's not all bad though, recently I've been learning Go and the lack of generics makes me pine again for Java like a long lost love.
The core Twitter service is still a Rails app though. There is nothing inherit to a language that makes it scale better than another, but different languages are better suited to different problems. As a result, Twitter does make use of Java in some capacity, but they also use a plethora of other languages where they make the most sense.
If you are using Rails, the database is the problem 99% of the time, not Ruby. MySQL can easily* be scaled / denormalised / sharded then if you need to you can just horizontally scale your app servers.
(*As easy as MySQL can. It isn't a black magic though, there is plenty of documentation, e.g. http://www.mysqlperformanceblog.com/)