News for hackers. Stuff that matters.
Re:Jshell: The Java Shell (REPL) by spacemanmatt on Sunday July 05, 2015 @06:46AM (#9833135)
Too late. Learned Clojure.
Re:Jshell: The Java Shell (REPL) by pjmlp on Sunday July 05, 2015 @08:07AM (#9833271)
Great if are allowed to use it at work. Many of us are not.
Re:Jshell: The Java Shell (REPL) by escherize on Sunday July 05, 2015 @12:06PM (#9833931)
Sorry to have to ask, but why choose to work at a place that doesn't use tools that you like, or does not give you the autonomy to use your best skills?
Re:Jshell: The Java Shell (REPL) by rwallace on Sunday July 05, 2015 @01:45PM (#9834247)
Because life is about tradeoffs. Optimising for criterion A mean sacrificing the opportunity to optimise for criterion B. And there are far more important criteria than programming languages for which to optimise choice of employer.
Re:Jshell: The Java Shell (REPL) by pjmlp on Sunday July 05, 2015 @02:09PM (#9834327)
I chose to work in jobs that allow me to be close to family and friends.

I will never relocate just to change programming language.

Re:Jshell: The Java Shell (REPL) by harryjo on Sunday July 05, 2015 @01:37PM (#9834228)
Why would your work allow you to use a not-yet-existent Java shell, but not Clojure?
Re:Jshell: The Java Shell (REPL) by pjmlp on Sunday July 05, 2015 @02:10PM (#9834334)
Because Java shell will be part of any compliant JDK, hence allowed by customers IT teams.
Re:Jshell: The Java Shell (REPL) by spacemanmatt on Sunday July 05, 2015 @01:07PM (#9834128)
I didn't learn it so I could work like the many.
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.