[1] https://www.youtube.com/watch?v=SxdOUGdseq4 -> on of Rich Hickey's best talks
Python Is Easy. Go Is Simple. Simple != Easy
11–20 of 313 posts
Re: Python Is Easy. Go Is Simple. Simple != Easy
#12No matter what your opinion is about Go (as a language), but they nailed it for bigger projects. Go code always looks the same, performance is predictable and fast enough for most programs, and its really, really easy to be productive. When i picked up Go i basically got shit done without ever having written a single line of Go. Its statically typed (with generics yey!) and compiles very fast. Its easy to create smal…
Don't forget the fact that it doesn't have this overbloated concept of inheritance and polymorphism of let's say Java where you have to look through 6 files to understand what's even going on. Even generics in Go were a heated debate because they make the language more complex. All in all Go was created by geniuses and it shows.
Re: Python Is Easy. Go Is Simple. Simple != Easy
#13No matter what your opinion is about Go (as a language), but they nailed it for bigger projects. Go code always looks the same, performance is predictable and fast enough for most programs, and its really, really easy to be productive. When i picked up Go i basically got shit done without ever having written a single line of Go. Its statically typed (with generics yey!) and compiles very fast. Its easy to create smal…
Re: Python Is Easy. Go Is Simple. Simple != Easy
#14No matter what your opinion is about Go (as a language), but they nailed it for bigger projects. Go code always looks the same, performance is predictable and fast enough for most programs, and its really, really easy to be productive. When i picked up Go i basically got shit done without ever having written a single line of Go. Its statically typed (with generics yey!) and compiles very fast. Its easy to create smal…
I don’t understand this template?
1. No matter your opinion on X:
2. Opinion Y is true about X!
If all you have are compliments about X: just go directly to (2). You’re not making a begrudging concession, after all.
Re: Python Is Easy. Go Is Simple. Simple != Easy
#15Re: Python Is Easy. Go Is Simple. Simple != Easy
#16Yeah, but the amount of boilerplate one must read and write in Go is frustrating, even compared to Java.
With things like copilot, the boilerplate (if err != nil sorts of things) comes out really easily, and you can skim past it when reading. Also, I have noticed that a lot of the other stuff that people call boilerplate in Go is actually an artifact of static typing (eg having to unmarshal JSONs before querying them), and is ultimately what prevents you from having Python-style runtime crashes or weird bugs.
Easily... but is that simple though.
Re: Python Is Easy. Go Is Simple. Simple != Easy
#17Small note: You can simplify the author's Go translation using anonymous structs: https://go.dev/play/p/4C42Ykkir8g
and thus it was shown!
Re: Python Is Easy. Go Is Simple. Simple != Easy
#18Yeah, but the amount of boilerplate one must read and write in Go is frustrating, even compared to Java.
Re: Python Is Easy. Go Is Simple. Simple != Easy
#19Yeah, but the amount of boilerplate one must read and write in Go is frustrating, even compared to Java.
Huh? Having defer statements and error returns vs. dealing with exceptions gives Go the win all by itself. And then there is the business of being able to make a type automagically satisfy an interface. (Java may have fixed some of the agony of creating classes just to satisfy a required interface. Last I used Java, it didn't have delegates and whatnot.)
Re: Python Is Easy. Go Is Simple. Simple != Easy
#20No matter what your opinion is about Go (as a language), but they nailed it for bigger projects. Go code always looks the same, performance is predictable and fast enough for most programs, and its really, really easy to be productive. When i picked up Go i basically got shit done without ever having written a single line of Go. Its statically typed (with generics yey!) and compiles very fast. Its easy to create smal…
> No matter what your opinion is about Go (as a language), but they nailed it for bigger projects. I don’t understand this template? 1. No matter your opinion on X: 2. Opinion Y is true about X! If all you have are compliments about X: just go directly to (2). You’re not making a begrudging concession, after all.
"There may (or may not) be many problems with Go, but building bigger projects is not one of those".