News for hackers. Stuff that matters.
Re:I’m joining the Go team at Google by sdegutis on Friday September 23, 2016 @08:31AM (#12564045)
Can confirm. At work we're moving from Clojure 8 to Java 8 partially because IntelliJ is amazing and partially because Java 8 plus the right libraries is close enough to Clojure anyway, except much faster.
Re:I’m joining the Go team at Google by gravypod on Friday September 23, 2016 @09:16AM (#12564312)
I think as developers we are so used to pain that we forget how "easy" development can be if we allow people the right tools.

If any language had the tooling and development Java did it would hold the market share. It's my opinion that if Rust makes a similar IDE experience (even just using Eclipse's platform) with every feature like code completion, formatting, debugging, the hole 9 yards and integrate Cargo into it they'll win. But, here's the caveat: It needs to be FLAWLESS integration.

I've been a java developer for my entire programming career. Java was my first language when I was 12 and I'm 19 now. I still can't use javac without looking at a compiler guide since I never use it. Eclipse does the business and I don't ever even need to think about what's going on outside my code. Not once.

Re:I’m joining the Go team at Google by pjmlp on Friday September 23, 2016 @10:16AM (#12564777)
Java like tooling already existed before Java was born.

We had it in the form of Common Lisp, Smalltalk, Delphi and Visual Basic, IBuilder (for those rich enough), CA Objects, C++ Builder.

Re:I’m joining the Go team at Google by reitanqild on Friday September 23, 2016 @10:24AM (#12564826)
To add to this: in school I found Java a complete waste of time.

Started working and someone showed me how to productively use eclipse and suddenly it was acceptable.

Re:I’m joining the Go team at Google by javajavaj on Friday September 23, 2016 @10:55AM (#12565060)
That you need an IDE to make a language bearable speaks volumes to the design of the language.

Go is doing well because it realizes we can strip so much away, stay with the standard lib, and get real work done quickly.

That's not to say that Java, in particular the JVM, isn't an impressive piece of engineering, but more that we should be careful when we choose our tools so as to not overly complicate things.

Re:I’m joining the Go team at Google by rpeden on Friday September 23, 2016 @12:07PM (#12565622)
Rather than looking at it as a language that needs an IDE to be bearable, it might be more helpful to look at it as a language that is most pleasant to use in concert with well build tools.

I look at it similarly to the way I look at Smalltalk. It's possible to use it as just a series of text files (with GNU Smalltalk), but using it with tools that understand the language (such as Visualworks or Squeak/Pharo) turns it into a very different experience.

I know that a Smalltalk dev environment feels alive in a way that Java doesn't, but using Java with a tool like IntelliJ is a nice experience. Using something like JRebel or HotSwapAgent to swap code changes into a running application also improves the dev experience significantly.

Re:I’m joining the Go team at Google by aninhumer on Friday September 23, 2016 @11:27AM (#12565315)
While Java may be somewhat verbose, good tooling is not just about "making the language bearable".

Things like being able to jump to a definition, rename it throughout the project correctly and jump back without even thinking about it are hugely valuable in any language.

And maybe you have ways of doing that in your workflow too, in which case great, you too appreciate the value of good tooling.

Re:I’m joining the Go team at Google by sdegutis on Friday September 23, 2016 @11:30AM (#12565336)
Thanks for your comment. It inspires me to write a blog post on why Java is my new favorite language, especially in comparison to Go.
Re:I’m joining the Go team at Google by javajavaj on Friday September 23, 2016 @10:49AM (#12565003)
I'm not a Java developer, so I'm interested to know what the amazing parts of IntelliJ are. When I look at it it just looks like they ripped off the skin from Sublime Text and it has some debugging features that are readily available in other editors. I get pretty much everything on https://www.jetbrains.com/idea/whatsnew/ in my vim setup.
Re:I’m joining the Go team at Google by sdegutis on Friday September 23, 2016 @11:54AM (#12565523)
All the refactorings and context-aware code completion, for starters. And as for ripping off, IntelliJ came out 7 years before Sublime Text.
Re:I’m joining the Go team at Google by sandGorgon on Friday September 23, 2016 @12:44PM (#12565966)
whoa!! this is huge - can you talk a bit more about your stack please. This is the first time I have heard something like this - what libraries, code style, etc would get you the same "feel" as clojure ?
Re:I’m joining the Go team at Google by gravypod on Friday September 23, 2016 @12:52PM (#12566028)
I'm assuming Lombok and using the new Lambdas. Maybe even a fibers library.
Re:I’m joining the Go team at Google by sdegutis on Friday September 23, 2016 @01:18PM (#12566278)
Yep, mostly Lombok (especially @Data for immutable typed objects with automatic constructors without boilerplate), streams, and lambdas.
Re:I’m joining the Go team at Google by sandGorgon on Saturday September 24, 2016 @12:58AM (#12569526)
are there any opensource github projects that illustrate the use of this infrastructure (java 8 + lombok + streams + lambda) in a very clojure-ish way ?

its hard to find good examples of this style of coding. For example, it is hard to figure out which app server (Spring Boot, undertow, dropwizard, wildfly). I'm sure you can use any... but it would be nice to learn from your experiences.

Re:I’m joining the Go team at Google by gravypod on Saturday September 24, 2016 @11:27AM (#12571283)
Could you provide an example project that you'd like to see implemented and I'll give it a go? I'm not the person who's doing this but I think I'd like to mess around with functional programming and I love Java.
Re:I’m joining the Go team at Google by sandGorgon on Saturday September 24, 2016 @12:30PM (#12571530)
Nice! Drip campaigns - https://www.sendwithus.com/resources/guide#ch2-drip

This is an example of a project that is not UI centric, has quite a bit of database integrations (postgres), mailer integrations (mailgun), scheduler (https://dzone.com/articles/distributed-tasks-execution-and-s...). It has also has a bit of math to compute stuff.

Even without a UI - it is something that could be very useful!

Re:I’m joining the Go team at Google by gravypod on Saturday September 24, 2016 @01:02PM (#12571646)
Sounds pretty good. I've sent you an email for more details. I'm interested in doing this. It's a cool project idea.
Re:I’m joining the Go team at Google by gravypod on Friday September 23, 2016 @06:13PM (#12568326)
Personally I think Lombok should be mainlined at some point. It's just so perfect in everything I've tried.