Bad Code Ebook 3
Bad Code Ebook 3
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
Content
5 Ways to Not Make Code Criticism Constructive
Measuring Developers
11
12
13
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
in question, keep in mind that you arent some kind of neutral crime scene investigator, sizing things up antiseptically.
Youre part of the problem, and you share in the responsibility. Your team. Your code. Your problem.
The good news is that if you approach this conversation
constructively, youre taking the first step toward fixing the
problem, the code, and thus the team. The key is making it
constructive.
Dont get into this unless theres a demonstrable problem. If you and he just have
different casing preferences, the tension you
create is probably going to nullify the benefits of standardization. Cosmetic coding standards and other relatively minor concerns
can and should be addressed with automated static analysis.
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
(1 )
(2)
(3)
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
Solution A
Solution B
Solution C
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
8
8
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
Maintaining the
Constructive Relationship
As Ive said, youre not going to take someone that
writes bad code and turn the whole ship around in a
sitting. The first engagement is about establishing a
relationship along these lines and setting the stage
for more talks. To do that, you have to be prepared,
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
10
patient, willing to nudge gently but firmly, and opportunistic in looking for a line of reasoning that strikes a chord. If
you can show Bob the difference and convince him of the
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
11
Measuring Developers
The structure of most organizations that employ software
developers is this: the developers who are responsible for
code report up through a structure of people that dont.
To put it another way, the people responsible for personnel management usually dont understand how to evaluate the work of those reporting to them at least not
directly.
Even if people with titles such as Director of Software
Engineering or Development Manager had been developers at some point, asking them to perform code
reviews isnt a solid approach. It wouldnt scale well. Imagine asking someone to do detailed code reviews with
seven or eight people while also doing all of the other
things a manager is required to do, such as budgeting,
dealing with other departments, worrying about software
licensing, etc. And thats even assuming theyre technical.
Most managers have to squint pretty hard into their rearview mirrors to see the last time they wrote a lot of code,
if there ever was a time. This is where senior developers
would be more useful.
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
12
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
13
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
14
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
15
25K+
3M+
users
194
countries
organizations
API
TESTING
RE AD I NE S S
PERFORMANCE
CODE
MONITOR I N G
COL L ABORAT I ON
Functional testing,
performance testing and test
management
SEE TESTING
PRODUCTS
SEE MONITORING
PRODUCTS
SEE COLLABORATION
PRODUCTS
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
16
THE COMPLETE GUIDE TO APPROACHING YOUR DEVELOPMENT TEAM WHEN THEY WRITE BAD CODE
17