Link Details

Why Scala is better than older languages like Java Another related post to look at: http://www.dzone.com/links/r/scala_the_static_language_that_feels_dynamic.html

Posted by Xin_Boston  |   Jun 17 2011 / 02:47

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Comments

User 442108 avatar

foudres replied ago:

What you gain from scala expressiveness, you lose it from lack of good support from IDE, tools and slow compilation times.

In pratice you can write java code quite fast, maybe even faster than scala code. You know that backward compatibility is good (new scala collections broke old scala programs). and that new language feature when available will be supported by the full echosystem.

Where the car analogy is interresting is that:
- full eletric car are impratical. Low autonomy, no way to refuel outside of your house and... need to make lot of nuclear/fuel power plant to provide all this energy to electric car owners.
- dispite what being said, most old cars (at least in europe) consume less fuel than new car. Simply because they are smaller and lighter.

In conclusion I would say that if language expressiveness was key, we would all use lisp as our primary language. And honestly I would find more fun to use clojure than scala... Problem is... It is impratical.

Reply -1 votes
User 393686 avatar

RawThinkTank replied ago:

i know all that misinformation has been spread by my Uncle through mass media he owns.


now, think, what if we put a billion floating solar powered steam engine on seas a mile away from shores all over the world, the answer is simple, we will get a trillions volts everyday.

Reply 0 votes
User 442108 avatar

foudres replied ago:

@RawThinkTank

The point is not what in theorically possible or not. The point is what is available and possible today as a single actor. I don't care what could be possible if we had millions sola powered steam engines or perfect Scala tooling.

None are available today, we have to live with it. Period.

Reply 0 votes
User 393686 avatar

RawThinkTank replied ago:

LOL

See this is why my Uncle is so powerful and so will i become one day. His ability to make you believe things exist and dont is just amazing.


My Uncle forgot that i can sell a billion such solar steam engine powered electricity generators and before that i will buy all those beaches all over the world.

:-p

Reply 0 votes
User 209172 avatar

mcnaz replied ago:

I could be wrong here but isn't Scala well supported in InteliJ and Eclipse?

Reply 1 votes
User 442108 avatar

foudres replied ago:

@mcnaz and IDE support.

Yes and No. I'am a full time JAVA developper and I'am really interrested in Scala. And I have tried both Eclipse and InteliJ plugin. This is really improving, but it is not on par with JAVA support.

JAVA IDE support is perfect. Scala IDE support is "so so". Hopefully support will improve. But for me it is a real problem, what you gain in expressivity, you loose in tooling.

Reply -1 votes
User 393686 avatar

RawThinkTank replied ago:

Its all about gaining advantage over existing developers in terms of productivity / speed

Reply 0 votes
User 906889 avatar

fastformations replied ago:

Reply -5 votes [show comment]

Recommended Links

Scala
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone