3 ms·
The point of my post is that code will be more useful if it describes the purpose of that code. Sure, for the rest of the time there's comments.
by lozenge 7y ago
The point of my post is that code will be more useful if it describes the purpose of that code. Sure, for the rest of the time there's comments.
- hnlmorg 7y agoYes, I got that. As I said: > In that specific case, potentially - bare in mind it's imaginary code you're refactoring. There will be occasions when "ugly" code is required. ie, I don't disagree with your point however it's not always possible to refactor code for readability. Plus you're still missing the point that writing better comments can give you additional information ("why does it do it") that you might not gleam even from even well written code ("what does it do").