4 ms·
Go taught me how we tend to rely on overly complex structures to solve our daily problems, which makes our code look smart, but in fact is harder to maintain an
by bsaul 6y ago
Go taught me how we tend to rely on overly complex structures to solve our daily problems, which makes our code look smart, but in fact is harder to maintain and understand by newcomers.
99% of the time, trying to use idiomatic go instead of fighting the type system lets you have more maintainable and easier to understand code.
Now, every time i'm back to using another PL, i tend to rely on advanced type systems feature much less frequently, and only after making sure i'm not making the problem more complicated than it is.
- doktorhladnjak 6y agoSo true. I was nervous about not having generics in Go but haven't missed them after primarily working in it for several years. You have to stop trying to write C++ or Java or C# in Go.
- pjmlp 6y agoYou can perfectly write C++ (from around 1993), Java (until version 1.4) or C# (until .NET 2.0) in Go. That is the whole point, we know better 25 years later.