News for hackers. Stuff that matters.
Re:Better Java – Resources for Writing Modern Java by ryanseys on Saturday September 19, 2015 @06:57PM (#10245833)
The only way it seems you can be effective with Java is with an IDE to do most of the heavy lifting. What would be better is if Java shipped with more focused command-line tools and better defaults that allow me to productive immediately without the need to learn something as hefty as IntelliJ / Eclipse. This could lessen the barrier of entry to Java and widen community adoption.
Re:Better Java – Resources for Writing Modern Java by lmm on Sunday September 20, 2015 @03:42AM (#10246859)
The command-line tools are fine. And Java is the most adopted language in existence.

The problem with writing Java without an IDE isn't one of tooling, it's that the language is so very verbose. They're working on that with lambdas and generics inference, but there's a limit to what you can do and remain backwards compatible.

Re:Better Java – Resources for Writing Modern Java by yogthos on Saturday September 19, 2015 @07:11PM (#10245869)
Or you could just use modern JVM languages like Clojure.
Re:Better Java – Resources for Writing Modern Java by EdwardDiego on Saturday September 19, 2015 @11:00PM (#10246431)
I like Clojure, but anyway to make it start faster in a scripting context? I wrote the same script in Clojure and Kotlin, and the Kotlin one loads so much faster.
Re:Better Java – Resources for Writing Modern Java by yogthos on Sunday September 20, 2015 @06:41PM (#10249479)
There's Planck for OS X https://github.com/mfikes/planck

It uses JavaScriptCore and starts practically instantly. There's some work being done to port it to Linux/Windows as well.

Here's an example:

cat foo.cljs

#!/usr/local/bin/planck

(println "hello world: clojurescript -> planck -> as shell script")

./foo.cljs

hello world: clojurescript -> planck -> as shell script

Planck can be installed using homebrew now as well.

Another promising option is Pixie https://github.com/pixie-lang/pixie

Re:Better Java – Resources for Writing Modern Java by EdwardDiego on Tuesday September 22, 2015 @07:49AM (#10257943)
Cheers mate :)
Re:Better Java – Resources for Writing Modern Java by codarama on Saturday September 19, 2015 @07:33PM (#10245938)
Lisp? Lisp syntax makes less sense than lambda and stream which have ruined Java.
Re:Better Java – Resources for Writing Modern Java by EdwardDiego on Saturday September 19, 2015 @10:56PM (#10246416)
What would you use instead of an IDE? Learning Intellij is a lot easier than learning Vim or Emacs.