DZone
Java Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Java Zone > Knowing I’m Bad Programmer Makes Me Good Programmer

Knowing I’m Bad Programmer Makes Me Good Programmer

Jakub Holý user avatar by
Jakub Holý
·
Nov. 18, 10 · Java Zone · Interview
Like (0)
Save
Tweet
7.83K Views

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.” [1] 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.

[1] m. fowler – refactoring, page 73 in the czech translation
[2] r.c. martin (ed.) – clean code: a handbook of agile software craftsmanship

from http://theholyjava.wordpress.com/2010/11/17/knowing-im-bad-programmer-makes-me-good-programmer/

Programmer (hardware)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Debugging Java Collections Framework Issues in Production
  • Maven Tutorial: Nice and Easy [Video]
  • Basic Convolutional Neural Network Architectures
  • Testing Schema Registry: Spring Boot and Apache Kafka With JSON Schema

Comments

Java Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo