How to justify to your colleagues that they produce crappy code?

前端 未结 16 1128
无人共我
无人共我 2021-02-04 02:54

I am finding somewhat difficult to carry on working in my current job.

The codebase has become a bit wild lately (but definitely not the worse I\'ve seen), and I\'m havi

16条回答
  •  一生所求
    2021-02-04 03:26

    For starters:

    1. Enforce the use of static code analysis tools. Every language has a few well known tools.

    2. Show some before and after refactored code examples, and explain why you think it's better. Try not to put any one person on the spot.

    3. Code reviews by experienced developers.

    4. keep in mind, some developers can't be helped no matter how much you try...

    5. If someone critiques your code be polite and open minded, you might learn something.

    6. Cyclomatic complexity / number of changesets/bugs. Complex code is more likely to break, cause more bugs which causes more changes, which cost more money!

提交回复
热议问题