News for hackers. Stuff that matters.
Re:Why Java Now Rocks More Than Ever: Part 1 – The Java Comp... by specialist on Monday October 07, 2013 @10:41AM (#6508520)
Honest question: Are their refactoring IDEs for Ruby, Python, or other dynamically typed languages?

Agree 100% about Java's verboseness. I really want type inference, lightweight objects, properties (vs JavaBean accessor convention), switch for 'instanceof', etc.

However. Java's verbosity is nothing compared to the verbosity of the common APIs and frameworks. All that DI, IoC, configuration via markup, etc. are terrible efforts to make Java more like a dynamic programming language. Even the built in APIs have design pattern-itis, with types, hooks, hierarchies aplenty.

Re:Why Java Now Rocks More Than Ever: Part 1 – The Java Comp... by saryant on Monday October 07, 2013 @11:18AM (#6508747)
> I really want type inference, lightweight objects, properties (vs JavaBean accessor convention), switch for 'instanceof', etc.

I believe you're asking for Scala. For example, switching on types:

  trait Foo
  class Bar extends Foo
  class Baz extends Foo

  val thing = // could be either bar or baz, don't know  

  thing match {
    case f: Foo => println("Got foo")
    case b: Bar => println("Got bar")
  }
Re:Why Java Now Rocks More Than Ever: Part 1 – The Java Comp... by specialist on Monday October 07, 2013 @11:47AM (#6508985)
:)

Our study group has done two Scala tracks (and currently studying Akka and reactive programming).

Ruby and Scala make my head hurt. I don't have a mental model for what's happening under the hood. Unlike LISP, Forth, Java, etc.

I really do want a refined, simplified Java. My wishlist of features are gleened from Boo (minus the duck typing), Nice, and Kava (lightweight objects).

http://boo.codehaus.org

http://nice.sourceforge.net

http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.19.3...

Honorable mention for Frink (preserves units).

http://en.wikipedia.org/wiki/Frink

Re:Why Java Now Rocks More Than Ever: Part 1 – The Java Comp... by pron on Monday October 07, 2013 @12:00PM (#6509103)
You're not alone. Scala has the features you're looking for, but it's also a mashup of Haskell and Lisp and C++ and a few other mismatched languages. As I said in another comment, Scala is for people who find Haskell too simple, and want to add mutability, inheritance and macros on top of it.

I think that what you're really looking for is Kotlin: http://kotlin.jetbrains.org/

Re:Why Java Now Rocks More Than Ever: Part 1 – The Java Comp... by MrBra on Monday October 07, 2013 @06:32PM (#6511760)
Can you give an example of something in Ruby that makes your head hurt because you don't know what's going on under the hood?
Re:Why Java Now Rocks More Than Ever: Part 1 – The Java Comp... by yareally on Monday October 07, 2013 @10:55AM (#6508610)
> Honest question: Are their refactoring IDEs for Ruby, Python, or other dynamically typed languages?

Yep, Intellij IDEA does it pretty well, or one can get their language of choice individually as WebStorm (JavaScript/NodeJS), PHPStorm (Webstorm + PHP), PyCharm (Python + Webstorm) or RubyMine (Ruby + Webstorm).

The refactoring and type inferring abilities for dynamic languages in each are pretty amazing. Types can also be inferred by docblocks and return types as well in each IDE for code analysis to avoid silly mistakes. That, along with refactoring has saved me tons of time and a reason to use a full IDE over a more lightweight editor. They also have an open source version of the Python IDE if you want to try it out.