News for hackers. Stuff that matters.
Re:Nim programming language by gigatexal on Tuesday April 18, 2017 @11:29PM (#14145247)
+1 to the usefulness of a REPL. Anyone know of a good one for the vanilla Java language?
Re:Nim programming language by moomin on Wednesday April 19, 2017 @02:31AM (#14145913)
I don't, but I'll point out you can do a lot of exploration in the Clojure repl, and with leiningen it's really easy to set up anything in maven.
Re:Nim programming language by gigatexal on Wednesday April 19, 2017 @02:52AM (#14145991)
I must have a really low I.Q. Or something because maven is all but broken in intellij for me. The Apache quickstart template defaults to jdk 5?!? And the pom file seems like it could get out of control fast.
Re:Nim programming language by moomin on Wednesday April 19, 2017 @03:29AM (#14146101)
Sorry, by "in maven" I meant "in a maven repository". Using Maven itself is a nightmare, I know, but if what you need is to download some jars and stick them on the classpath, leiningen is perfect (it even compiles regular Java and has control over JDK versions if you want that)

And it generates the pom files so you don't have to...

Re:Nim programming language by gigatexal on Wednesday April 19, 2017 @05:23AM (#14146507)
I guess I just need to read up on how to actually use maven the right way. Thanks.
Re:Nim programming language by moomin on Wednesday April 19, 2017 @10:59AM (#14148162)
I wouldn't use Maven, but there are multiple tools that can use Maven repositories that aren't Maven, and I'd recommend one of those. :)
Re:Nim programming language by gigatexal on Wednesday April 19, 2017 @11:47AM (#14148553)
I was only trying to learn it because a take home coding assignment for an interview asked to use maven for its build process. I found the whole experience (using maven) disheartening while I was able to code up the assignment using maven and my inexperience with it cost me going to the second round. I have only myself to blame though.
Re:Nim programming language by moomin on Wednesday April 19, 2017 @05:13PM (#14151829)
That sucks :(. But I can tell you there are plenty of organisations (e.g. Thoughtworks) where Maven is regarded as a bad tool that should be avoided. That doesn't help you much if it's part of a job you want, though. :(
Re:Nim programming language by quadrupleslap on Wednesday April 19, 2017 @05:01AM (#14146413)
If you don't mind something online, I hear repl.it is pretty good.
Re:Nim programming language by Solarsail on Wednesday April 19, 2017 @08:07AM (#14147114)
Well, I've used an unmaintained almost-vanilla-Java REPL: https://github.com/jacktasia/java-repl
Re:Nim programming language by kazagistar on Wednesday April 19, 2017 @02:49AM (#14145983)
There is an official one coming out in Java 9 soon.
Re:Nim programming language by gigatexal on Wednesday April 19, 2017 @02:52AM (#14145993)
Looking forward to it!