wtfe²日本語

xkcd #844

Good Code

by Randall MunroePublished: License: CC BY-NC 2.5

Comic: Good Code (xkcd #844). Transcript below.

Good Code © Randall Munroe · xkcd · CC BY-NC 2.5

Hover textYou can either hang out in the Android Loop or the HURD loop.

Why it lands

Both loops are familiar. Code fast and you drown in kludges; code well and the requirements change before you finish. Either way you throw it out and start over, and the only way to "Good Code" is a box marked with a question mark.

Transcript

  1. HOW TO WRITE GOOD CODE:
  2. START PROJECT.
  3. DO THINGS RIGHT OR DO THEM FAST?
  4. FAST
  5. CODE FAST
  6. RIGHT
  7. DOES IT WORK YET?
  8. NO
  9. ALMOST, BUT IT'S BECOME A MASS OF KLUDGES AND SPAGHETTI CODE.
  10. CODE WELL
  11. ARE YOU DONE YET?
  12. NO
  13. NO, AND THE REQUIREMENTS HAVE CHANGED.
  14. THROW IT ALL OUT AND START OVER.
  15. GOOD CODE

Credits

Original
Good Code — Randall Munroe, xkcd

The English page shows the original image unmodified. The Japanese page shows an adaptation by wtfe²: the lettering was erased from the art and replaced with a Japanese translation. The adaptation is shared under the same license as the original.