Lies we tell ourselves to keep using Golang (2022)
fasterthanli.me
Lies we tell ourselves to keep using Golang (2022)
1–10 of 526 posts
Re: Lies we tell ourselves to keep using Golang (2022)
#2Re: Lies we tell ourselves to keep using Golang (2022)
#3(130 points, 148 comments) https://news.ycombinator.com/item?id=34188528
(748 points, 544 comments) https://news.ycombinator.com/item?id=31205072
Re: Lies we tell ourselves to keep using Golang (2022)
#4Re: Lies we tell ourselves to keep using Golang (2022)
#5Staying in that lane. In my part of the world Go is seeing adoption that no other “new” language has exactly because of its simplicity. It’s not the best language, but it’s often the best general purpose language because it has a lot of build in opinions which protect you from yourself.
Re: Lies we tell ourselves to keep using Golang (2022)
#6Re: Lies we tell ourselves to keep using Golang (2022)
#7Well maybe not.
If I’m an expert in only Java 6, I might not be aware of all sorts of useful features that other languages have, such as sum types, traits, type inference… I only know one side of the trade off.
I might be vaguely aware of those ideas and dismiss them because I can’t imagine how they would fit in my Java 6 workflow.
And yet when some of them arrive in later Javas, I begrudgingly use them. Years later I can’t imagine how I ever lived without them!
We’ve seen this play out so many times.
Remember when lambdas were just for weird functional languages?
Re: Lies we tell ourselves to keep using Golang (2022)
#8This article makes a lot of great points about the shortcomings of Go. I don’t think explicit error handling is one of them however. I’ve previously spoken about my loathing of exception handling because it adds a “magic” layer to things which is way too easy to mess up. From a technical standpoint that isn’t necessarily a good argument, but from a pragmatic standpoint and decades of experience… well I will take expl…
Like as soon as I wanted to try and get sensible reporting in their, suddenly we were relieving libraries, adding shims and fighting mismatched types and every article was saying the same thing: haha yeah it's kind of a problem.
I'm very, very unsold on explicit error handling compared to exceptions for practical programming. The number of things which can error in a program is far larger then those that can't.
Re: Lies we tell ourselves to keep using Golang (2022)
#9It's "we learned about green threads and didn't bother to learn anything else" approach (also prevalent in many other languages)
Re: Lies we tell ourselves to keep using Golang (2022)
#10This article makes a lot of great points about the shortcomings of Go. I don’t think explicit error handling is one of them however. I’ve previously spoken about my loathing of exception handling because it adds a “magic” layer to things which is way too easy to mess up. From a technical standpoint that isn’t necessarily a good argument, but from a pragmatic standpoint and decades of experience… well I will take expl…
Where I agree: It forces you to think about all of the possibilities your code might generate. (This is more of a C question than it is with other languages)
However, when abstracting blocks of code away, you don't always need to handle the error immediently or you may want to handle it down the stack.
You're giving up a lot of readability in order for the language to be particular.