by tensor · 6y ago · 0 comments
Concise code with heavy abstraction can help eliminate errors, but it definitely doesn't make reading it easier. It also doesn't make solving problems any easier. Solving problems is all about algorithms and data structures, not the language you are using.
You might then notice that there is some kind of sweet spot in complexity: fewer features and footguns than, say, C++, but more features and abstractions than machine code.
If you want an example of something moderately complex but well defined, go implement a min-heap or some other basic algorithm.
I feel like Go isn't so much aiming for simlicity but actually for easiness in that line of thought, and thus its only a matter of time until complexity is encoded within the Go code.
Now, aiming for simplicity is not easy, at times definitely hard but it can lead to actual simplicity.
[
] obligatory note that while I like this talk I don't agree with all of his utterances.Ex doing string processing in python vs golang. In golang or java even it's far more lines of code and far harder to understand.