Hacker News new | past | comments | ask | show | jobs | submit login

Context: I've been programming in Go full-time for the last 2 years and come from a Python and C# background.

  > No Generics
The lack of generics was something I was hung up on, too, but TBH I haven't found myself reaching for them for a while now.

  > Error handling
This is not a problem for me, either. I can easily handle different `error` types and if I want to provide more context I pull in github.com/pkg/errors

  > gofmt
gofmt is great

  > go test
go test has been totally sufficient for me and I was quickly writing and running tests. The testing package itself is builtin and writing tests is dead simple.

  > dep / dependency stability
Dependency management has been a huge PITA with Go and is my largest complaint. Personally, I've used everything go GB vendor, godeps, glide, and now dep. dep has been Just Working for me and is decent enough working on a team. As for dumping the dependency code in your source tree-- it lives in a folder called ./vendor so it's easy enough to not look at it.



> The lack of generics was something I was hung up on, too, but TBH I haven't found myself reaching for them for a while now.

I mean, if you lose an arm you probably stop trying to pick stuff up with your missing hand after a while too, doesn't mean it's not better to have two arms.


Are generics as useful as an arm? I think that's a slight exaggeration. I'm sure they're useful in a lot of situations but there's a lot of programs you can write where their absence is neither here nor there.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: