3 ms·
The older I get, the cleaner I want my code to be. Reading code is the best way to prevent bugs. If the code is strewn with error handling ceremony then it's ha
by zarzavat 5y ago
The older I get, the cleaner I want my code to be. Reading code is the best way to prevent bugs. If the code is strewn with error handling ceremony then it's hard to get to the essence of what the code is doing, and it makes it more likely that bugs will go unnoticed.
- vlunkr 5y agoPersonally I think Go code is incredibly clean, even with the error handling. It's just little if err != Nil statements that you essentially speed-read. And is knowing what errors are possible in your code not an important part of reading it? Why should that be obscured?
- iainmerrick 5y agoThat’s why checked exceptions are good!
- JyB 5y agoThat's funny when Go's main focus is readability at the cost of writability. That's one of its main tenets... Some HN comments toward Go are a bit baffling.
- azth 5y agoI find golang much harder to read due to its extreme verbosity that detracts away from the logic the code is trying to do.