4 ms·
"If you write some code and you don't know how it works, it's most likely not correct in some edge cases. Code that is written to be so simple it's obviously d
by tuna74 3y ago
"If you write some code and you don't know how it works, it's most likely not correct in some edge cases.
Code that is written to be so simple it's obviously doing the right thing is better than battle tested mess of if statements."
Only if it actually do the right thing in ALL cases. In a lot of refactors I have seen (and done myself) that has not been true.
- iopq 3y agoYes, but then the refactor value is dubious. To write simple code you actually need to understand the difficulty of the problem. Why is certain code easier to talk about than other type of code? Why is it better written this way and not another way? If you don't understand the problem enough you may hack at it in another wrong way.