4 ms·
Seems like the author took two articles and stuffed them in the blender. Half the article is this somewhat interesting piece exploring functional programming te
by klodolph 4y ago
Seems like the author took two articles and stuffed them in the blender. Half the article is this somewhat interesting piece exploring functional programming techniques for error handling, and the other half of the article is a half-baked rant complaining about Go.
The half-baked rant complaining about Go really drags down the rest of the article.
> This style of if err != nil error-checking is, laughably in my opinion, celebrated as an example of the “simplicity” of go programming.
> it actually turns out to be an example of egregious type abuse
I don’t know how the author is indenting to come across, but these kind of comments in an article strike me as some kind of juvenile, playground mockery of Go. Getting a bit sick of seeing that kind of stuff on Hacker News.
I know some people really, really hate Go. There are some very passionate and enthusiastic Go haters on Hacker News. Trying to apply functional programming techniques in Go makes about as much sense as trying to use a hammer to drive a screw. You can talk about how much better screws are than nails all day long, and you can point at nails and talk about how they don’t have any threads, but that doesn’t make a good argument for saying hammers are bad tools.
- yamtaddle 4y ago> Trying to apply functional programming techniques in Go makes about as much sense as trying to use a hammer to drive a screw. Shit, half the point of Go is that it makes doing things other than The Go Way painful enough that even devs on your team who are really really enthusiastic about <insert trendy but non-Go-like thing here> will think twice about trying to get their current pet paradigm or method into the codebase. After a career of watching Javascript shift violently with the prevailing winds among the Cool Kids over and over since the 90s, this doesn't seem like a crazy aim for a language to have.
- eddsh1994 4y agoI like Go for that reason! After working with Haskell, Rust, JavaScript, and many other languages in production all I look for is simplicity. Hell, I'd even give up DRY for obvious code & a good IDE to refactor stuff if I can avoid some abstraction madness. Want to solve fizzbuzz? Well lets first define Peano numbers...
- xupybd 4y agoHe is contrasting two idioms. I don't think this is a criticism of Go at all. Go is limited on purpose and the advantages of that are well known.