|
|
|
|
|
by cosmos0072
276 days ago
|
|
For me it's more about "feeling" badly written code, as if it stinks and is unpleasant to look at,
and conversely enjoying nicely written one, and seeing its elegance and beauty. Especially when I have to familiarize with code written by someone else, I usually start by "cleaning" it - small refactorings such as splitting overlong functions and simplifying expressions, that are trivial to prove as correct even without a deep knowledge of the code purpose. Only when the code looks sufficiently clean and familiar, I start adding the requested new features |
|
I sometimes wonder if this is the result of experience/education (I'm not a compsci major) or if it's just a naturally different way to think about systems.