News for hackers. Stuff that matters.
Re:Why Java? Tales from a Python Convert by golergka on Tuesday December 08, 2015 @04:16PM (#10699595)
These examples look like C# 2.5 with a little bit of LINQ.
Re:Why Java? Tales from a Python Convert by tracker1 on Tuesday December 08, 2015 @04:27PM (#10699658)
IMHO, C#'s tooling and is definitely ahead. Java is starting to get there, and I can see why the JVM is still popular. But given the actions of Oracle and MS as of late, I think I'd take MS. VS starter projects are easy to setup and run... Every Java application I've worked on has been an exercise in frustration just getting the environment setup.
Re:Why Java? Tales from a Python Convert by soofaloofa on Tuesday December 08, 2015 @04:29PM (#10699673)
I'm also a fan of C# but deploying .NET has been a sticking point. I'm hopeful that Microsoft's open source efforts fix this.
Re:Why Java? Tales from a Python Convert by mstromb on Tuesday December 08, 2015 @04:43PM (#10699791)
It's not completely free, and not completely open source, but we've been very happy with Octopus Deploy https://octopus.com/

That and Topshelf https://github.com/Topshelf/Topshelf have made deploying Windows services very easy. Topshelf is slowly adding some Linux/mono support, and OctopusDeploy supports SSH as a deployment option, but unsurprisingly things aren't as nice if Windows isn't your target.

Re:Why Java? Tales from a Python Convert by chris_overseas on Tuesday December 08, 2015 @05:22PM (#10700124)
I've found the opposite. For me, C# as a language is nicer than Java. The libraries themselves are a bit of hit and miss - personally I've found Java's concurrency APIs to be much better than C#'s, however I've found the async and LINQ support in C# to be far nicer than the Java equivalent (including Java 8 streams etc). But tooling... wow... Visual Studio feels like such a huge dinosaur compared to IntelliJ IDEA. Not to say it's that bad, but IDEA is so far ahead of any other dev environment I've ever worked with it's not even funny. Even adding Resharper to VS doesn't feel much more than scratching the surface. As always, YMMV.
Re:Why Java? Tales from a Python Convert by LoneWolf on Tuesday December 08, 2015 @04:34PM (#10699724)
Could you elaborate? Java has maven archetypes that allow that, create a base project with no effort and the right dependencies in place. From there on compiling is just a command away, and running it usually too.
Re:Why Java? Tales from a Python Convert by rezistik on Tuesday December 08, 2015 @04:53PM (#10699853)
My experience with Java has been frustrating, I think it has a lot to do with what you need to know to get started. If you want to play with a language, check out how to build a quick API, you need to know a lot more than Ruby, Python or NodeJS. You need to know at least a little about Maven, a little about the build process, and for me it was more than I really wanted to do.

I pushed through learning a little about the JVM to learn some Clojure but I felt like I was troubleshooting things that I frankly didn't want to learn about. The pros didn't out number the cons for me.

Re:Why Java? Tales from a Python Convert by SEJeff on Tuesday December 08, 2015 @07:39PM (#10701012)
Agreed. On the other end of the spectrum, you have cookiecutter:

https://github.com/audreyr/cookiecutter