Knowing I’m Bad Programmer Makes Me Good Programmer
Join the DZone community and get the full member experience.Join For Free
i know that i’m not a good programmer and this knowledge makes me actually a very good one. as kent beck says: “i’m not an excellent programmer, i’m just a good one with excellent habits.”  i know i’m a bad (read “a little above average”, if you plan to hire me ) programmer and therefore my code will contain bugs. so i like to write unit tests even before the code itself, and i prefer having the test fail first for thus i’m sure that it works (well, at least in a basic way). being a bad programmer i also know that my design isn’t perfect and no matter how hard i try it’s very likely that it will need to be changed in the future. i therefore don’t try to account for all possible future changes and to make it so flexible that it could deal with all of them because i know i’d be wrong in this. instead, i prefer simple designs and well isolated parts of code so that it will be easy to reorganize and refactor them as needed. last but not least, knowing my weaknesses i appreciate very much when somebody else reviews my design and code and i’m very receptive of different points of view and ideas. for the same reason i do not hesitate to ask my collegues for an opinion or an advice when i’m unsure. (kent beck yeasterday twittered: “amazing how fast you can finish if you care more about feedback than avoiding criticism”.)
the net result is that i create a simple, well-tested code open to changes (i.e. easy to change in a safe manner), which is easy to read an understand (for i know that somebody will need to modify it many times, often the somebody being an older myself). and because i’m not afraid to ask, i’ve better and more suitable designs than i could create just by myself. thus i produce a good, clean code as a good programmer would write.
 m. fowler – refactoring, page 73 in the czech translation
 r.c. martin (ed.) – clean code: a handbook of agile software craftsmanship
Opinions expressed by DZone contributors are their own.