TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Code Must Be Clean. And Clear

1 pointsby sandrobfcover 6 years ago

1 comment

iamNumber4over 6 years ago
I have worked projects where the most senior developers barely understood cs 101 data structures and lacked good taste in there own code.<p>Any time they did not understand they would insist comments were added. Then later would sneak back in and rewrite.<p>Mind you they would shorten variable names, remove pre condition checks on parameters because the thought it was useless code. Remove helper&#x2F;util methods&#x2F;functions and refactor from short methods into long ones Etc...<p>This was all in the sake of clear code. Clear to whom? Not everyone has the same level of skills or can recognize why code is structured the way it is.<p>I spent more time teaching than I did anything else because the senior and lead devs were senior by title not senior in skills.<p>My advice, when you run into a piece of code in a review, and it’s not clear to you. Before you knock it down and comment all over it, this is the moment for you and them to learn.<p>When you ask why are you using switch cases like that or why are you checking parameters passed in for validly or other safety critical patterns, or don’t understand template, or dependency injection, mixins, runtime type inspection. You may not be qualified to even comment.<p>So again clear to whom?