|
|
|
|
|
by jfabre
1233 days ago
|
|
The problem with this argument is that it's implying that there is no such thing as clear code. Sure some people think their code is clear when it is not, but that shouldn't stop you from striving to write clearer code. A long time ago, I had a tendency to write comments to explain code that could be simplified. Refactoring it usually made the comments redundant. Comments are still very useful when the why is unclear. |
|
Java example: rewriting non-stream collections code to use lots of chained streams. Using lambda functions when not needed. Rewriting case labels to use case lambdas. etc.