News for hackers. Stuff that matters.
Re:Jshell: The Java Shell (REPL) by mateuszf on Sunday July 05, 2015 @10:11AM (#9833607)
It's just a jar.
Re:Jshell: The Java Shell (REPL) by _asummers on Sunday July 05, 2015 @10:15AM (#9833627)
Do your coworkers never have to go in and maintain your code? What about after you leave? Do you not have to pull request the code before it's merged in? At the end of the day it IS just a jar, but that ignores all the non-runtime aspects of coding.
Re:Jshell: The Java Shell (REPL) by spacemanmatt on Sunday July 05, 2015 @01:24PM (#9834188)
I'll try to hit those one by one...

> Do your coworkers never have to go in and maintain your code? What about after you leave?

I wrote an extension to our core app that is needed by 2 customers. Someone might need to touch it again one day, but it's more likely that a new spec will demand new engineering for a new solution in the future, at which point the most favorable technology will be used. That goes for me or the next person.

> Do you not have to pull request the code before it's merged in?

No. I'm a full-time employee and a core committer. We already have extensions in Java, Groovy, (very limited, nearly dead experiment) Jython, and now Clojure. Technically my extension is Java and it is a thin wrapper to a Clojure library.

> At the end of the day it IS just a jar, but that ignores all the non-runtime aspects of coding.

They are de minimis in this case. It survived review with nominal eyebrows raised. It's a Java shop but they're familiar with the family of other JVM languages.

HTH.

Re:Jshell: The Java Shell (REPL) by dblarons on Sunday July 05, 2015 @11:59AM (#9833910)
Even if you don't write Clojure code in your project, the Clojure REPL can be used to experiment with Java code in the same way the Groovy or Scala REPLs can.
Re:Jshell: The Java Shell (REPL) by MrBuddyCasino on Sunday July 05, 2015 @12:16PM (#9833967)
Also, it is possible to attach to a running Java process with a Clojure REPL. You won't leave behind any evidence, or introduce technical debt.