Oddbean new post about | logout
 You should just accept that some of us are not pragmatic

Also, I hate golangs’s syntax 
 what do you mean by pragmatic?

means are worth the end

or 

focused on practical concerns

i'm on board with the latter, and rage against the former 
 what do you hate about the syntax?

be specific

the function signatures? the package management system? the variable declaration syntax? the modules files?

i strongly suspect it's not the curly brackets but i haven't observed what your preference is, i guess if you are a python/php dev then ok, but that model has some serious deficiencies too 
 JSON to struct syntax looks like trash and is so verbose

Everything in the current project I am on is incredibly verbose. Duplication is the way. Maybe this is the project designer’s fault?

I could build this system in python in 1/10th the amount of code 
 yeah encoding/json is my most unfavourite, and the struct tags and the whole problem around json is a big hassle, that's partly why so much of my efforts this last 6 months have been involving json

you can't actually use my library with standard JSON interfaces either, because that syntax assumes you don't care about generating memory garbage and the use of stupid strings 
 i prefer go's approach to structs but json is literally diametrically opposed design philosophy 
 Sadly, 99% of the internet is “stupid strings” 😂 
 indeed, and i'm not a web dev i'm a server dev, my early background with Go was actually forking btcd (which is why you will sometimes see me raging against that dumpster fire)

anyway, that wasn't even the problem with my recent work on a nostr relay, and fiatjaf has made a big note on his go-nostr repo alerting to the fact that his code does not handle goroutine lifecycles properly