Live data from Hacker News

Three Months of Go from a Haskeller’s perspective (2016)

memo.barrucadu.co.uk

1–10 of 162 posts

Re: Three Months of Go from a Haskeller’s perspective (2016)

#3
post #2

(2016) The versioning and slice sorting have since been solved, by go.mod and sort.Slice respectively. The problem with "Make it an error to not initialise a struct field" is you lose source compatibility when adding new struct fields.

Still no official debugger though. Delve is just full of bugs.

Re: Three Months of Go from a Haskeller’s perspective (2016)

#4
post #2

(2016) The versioning and slice sorting have since been solved, by go.mod and sort.Slice respectively. The problem with "Make it an error to not initialise a struct field" is you lose source compatibility when adding new struct fields.

Still no official debugger though. Delve is just full of bugs.

Just do as the Head of Marketing from previousEmployer suggested and "leave out the bugs"

Re: Three Months of Go from a Haskeller’s perspective (2016)

#6

Earlier quoted context omitted.

Still no official debugger though. Delve is just full of bugs.

Just do as the Head of Marketing from previousEmployer suggested and "leave out the bugs"

Revolutionary thinking right there

Re: Three Months of Go from a Haskeller’s perspective (2016)

#8

I actually wish gofmt was _more_ opinionated. Break my lines please. Prettier has spoiled me - write absolutely hideous looking code, and one save later it is exactly what I want almost every time.

I was very apprehensive about prettier at first, but I pulled it into a side project of mine and I am never looking back. I absolutely loathe people’s obsession over formatting code. Just let a formatter do it, don’t fuck with the defaults, and work on your business logic instead of bike shedding on perfectly placed spaces.

Re: Three Months of Go from a Haskeller’s perspective (2016)

#9

I actually wish gofmt was _more_ opinionated. Break my lines please. Prettier has spoiled me - write absolutely hideous looking code, and one save later it is exactly what I want almost every time.

https://github.com/mvdan/gofumpt

Drop in replacement for `go fmt` and probably does most of what you want.

Re: Three Months of Go from a Haskeller’s perspective (2016)

#10
Apparently, the author of this blog post had a change of heart:

https://memo.barrucadu.co.uk/blub-crisis.html

> I have realised in recent conversations about programming languages, and in reflection of my very negative and kind of arrogant blog post about Go, that I have become trapped by the Blub Paradox. I have become dismissive of non-Haskell languages. I think in Haskell. Languages less powerful than Haskell are obviously too limited to get any real work done in, and languages with more advanced features than Haskell (like dependent types) are really just weird and not actually solving a problem I would ever face.

> The arrogance! Such a know-it-all!

> I have decided to call such a realisation a “Blub Crisis”. Haskell is my Blub. The only solution is to become proficient—actually proficient—in a different language, and once again learn a new way of thinking.

Post reply on HN