I develop a lot of command line tools for Linux using shell scripting. The scripts are getting huge and ugly, so I have been looking at Go and it seems I can do so many things by just using the standard library and in general a big improvement over using scripting. However, everytime Go is discussed at HN I see many posts criticizing the language for various reasons and this has put me off getting started learning Go…
The State of Go: Where we are in February 2016
181–190 of 224 posts
Re: The State of Go: Where we are in February 2016
#182Earlier quoted context omitted.
Great tooling? Does Go have any quality IDEs with integrated debuggers yet? I feel that open source developers mean something entirely different with the phrase "great tooling" than developers used to Visual Studio would mean. :)
Absolutely! They do not mean big GUI based IDE when they say tooling. Infact this is why Go will remain unviable option to .net developers. Go is likely to be much more popular among dynamic languages users and even some Java developers who are tired of enterprisey bloat.
Re: The State of Go: Where we are in February 2016
#183Earlier quoted context omitted.
GC changes is a big one in the JVM, but not so much in Go (so far) as Go offers basically no GC tunables. So while your awesome CMS tweaks from JDK7 become worthless once you switch to G1 on JDK8, with Go all you can do to optimize the GC is to create less garbage to begin with. Not trying to say one approach is better than the other: Go's approach is operationally simpler but far less sophisticated than the JVM's.
>as Go offers basically no GC tunables. This isn't actually true, Go has a single tunable: "GOGC" https://golang.org/pkg/runtime/
Re: The State of Go: Where we are in February 2016
#184Noticed couple e-commerce companies and Google itself in Singapore. Few Russian companies are doing small infra project.
Anyone else seriously investing in Golang?
Re: The State of Go: Where we are in February 2016
#185Re: The State of Go: Where we are in February 2016
#186I refuse to touch Go until that happens. Go is the asshole of programming languages. It forces you to put code in deeply nested annoying directories
vim foo.go
vim ../../../github.com/blahblah/moreblahblah/blah.go
sigh
But that I could live with. But constantly commenting the code out (which of course leads to commenting out even more code!) is the real PITA.All said and done it looks like a useful, if uninspired, language. Can avoid it so may as well use it. But this nonsense has to stop!
Re: The State of Go: Where we are in February 2016
#187Earlier quoted context omitted.
The default behavior has to be backwards compatible, so there was only one serious option.
What? They could have done any number of things. They could have added a parameter "-trim" that's more clear than the "-" alone. They could have made it "8<" that looks like a little pair of scissors. Or they could have actually spent some time thinking of a good idea instead of those ones that are about as a bad as the one they went with.
Re: The State of Go: Where we are in February 2016
#188{{range . -}} {{.}} {{end -}} This seems like a bit of a hack to be honest. Would anything break if {{range .}} {{.}} {{end}} worked as expected?
Re: The State of Go: Where we are in February 2016
#189Best part of Golang, more languages need to borrow this feature. Second best is how relatively easy it is to get going with it.
Re: The State of Go: Where we are in February 2016
#190I develop a lot of command line tools for Linux using shell scripting. The scripts are getting huge and ugly, so I have been looking at Go and it seems I can do so many things by just using the standard library and in general a big improvement over using scripting. However, everytime Go is discussed at HN I see many posts criticizing the language for various reasons and this has put me off getting started learning Go…