News for hackers. Stuff that matters.
Re:Channels in Golang by seabrookmx on Saturday December 24, 2016 @10:21PM (#13252703)
While I'm sure many people will agree with you, I (respectfully) don't for a couple reasons..

Golang doesn't have the library or tooling maturity or breadth to make it a real competitor to Java in the enterprise space IMHO.

Golang lacks a package manager (and "go get" is not a real substitute when it completely shirks semantic versioning). There's no solid IDE with Golang support. Most of the web server and database tools are very low level, and while they provide the necessary features for a smaller project or if you're writing exclusively microservices, they leave a lot be desired if you're writing a run of the mill web app, or an enterprise system for batch processing (orders, transactions, email etc).

For smaller projects, most languages are better than Java for the reasons you mention (including dynamic languages like Python for example). Golang is a novel language and it definitely has a niche, but I find it right inbetween a language like Python and a "heavy" language like C#/Java.

Re:Channels in Golang by dispose13432 on Saturday December 24, 2016 @10:44PM (#13252784)
>There's no solid IDE with Golang support

Honestly, there wasn't a solid IDE for Java for a while, and the makers of IntelliJ are working on Gogland.

However, IMHO, the only thing I miss in an IDE for Go is inline debugging (but in truth, I never used IntelliJ's refactoring tools, so I could have missed out on all the benefits of a powerful IDE).

Except for that, VSCode and nvi are all I (personally) need.

Re:Channels in Golang by justinclift on Sunday December 25, 2016 @08:58AM (#13254096)
Hadn't heard of Gogland, thanks it sounds interesting.
Re:Channels in Golang by dispose13432 on Sunday December 25, 2016 @01:27PM (#13254937)
https://news.ycombinator.com/item?id=13184713

They announced it ten days ago.

Re:Channels in Golang by omginternets on Saturday December 24, 2016 @10:26PM (#13252726)
Obviously Go isn't going to replace every existing piece of Java software. That's a very strange takeaway from the parent comment.

The point is rather that Go occupies the same niche as Java, and does so arguably better. As such, "Java killer" means new software projects are going to increasingly favor Go over Java.

Re:Channels in Golang by wcummings on Saturday December 24, 2016 @11:25PM (#13252917)
I'm not really a go person. I might go as far as saying I'm a go hater. But I feel compelled to defend it in this case. Golang is a deliberately simple language that lends itself well to inspection & tooling. For example, having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple. It feels awkward but makes detecting unhandled errors very simple.

Seems like there's decent enough tools + emacs/vim wrappers to me. In my mind this is one of the primary merits of go.

Re:Channels in Golang by pcwalton on Sunday December 25, 2016 @12:25AM (#13253092)
> For example, having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple.

Even if this were true (which it isn't—Go uses multiple return values for returning errors), returning a tuple would in no way make analysis harder. Detecting whether a function returns (T, err) for some T is utterly trivial.

Re:Channels in Golang by dispose13432 on Sunday December 25, 2016 @12:13AM (#13253044)
> having special syntax for returning errors vs a more generic solution like multiple return values or returning a tuple

Golang supports generic multiple returns (https://gobyexample.com/multiple-return-values). It's just much more commonly used for errors (instead of try catch).

Re:Channels in Golang by IndianAstronaut on Sunday December 25, 2016 @10:55AM (#13254450)
>Golang doesn't have the library or tooling maturity or breadth to make it a real competitor to Java in the enterprise space IMHO.

This is why my company is being forced to scrap Go. It was good since it was easy to learn by devs, type checked, and fast. But the lack of libraries vs Java means it won't work for a lot of projects. One big issue is the lack of good database drivers.

Re:Channels in Golang by justinclift on Sunday December 25, 2016 @08:37AM (#13254057)
> There's no solid IDE with Golang

Hmmm, I'm using it with WebStorm and the Golang support is pretty decent. Autocompletion, automatic help/function lookup, debugging, etc.

What are you looking for that's missing in a Golang IDE?