DEV Community

Discussion on: The Defensive Code Reviews

Collapse
 
ingosteinke profile image
Ingo Steinke • Edited

The issue was that it wasn't my code.
In reality, it's my client's code the majority of the time.

This is especially true as a freelancer or as an employee conforming to corporate code policies (like we MUST use Webpack, we should use SASS, eslint-config-airbnb etc.) and requirements that one would never chose or advise otherwise.

I try to code modern, minimalist, fast, and accessible frontend design using mostly clean and minimalist code for my own projects like my portfolio website or side projects. Anything else will never ever become "my code" no matter what, as there are always too many "bad" decisions, or rather other people's decisions that I wouldn't agree to, so it's clearly not "my code" working in a project team, even if I have written the lines and git blame says so.

I like the notion of regarding the code as "my clients' code" and still try to improve quality, but don't get attached to the code personally.