Editing 844: Good Code

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
  
 
==Explanation==
 
==Explanation==
The comic references the common {{w|Internet Meme|meme}} of programmers that one can't actually write good code. Either the code is done quickly with shoddy "code style", weak logical structure, or any number of other kludges and hacks which turn maintenance of the code into a nightmare; or else it is written well and beautifully structured, but can never be completed before changes in the situation cause the original code design to be insufficient for one or multiple reasons.
+
The comic references the common meme of programmers that one can't actually write good code. Either the code is done quickly with shoddy "code style", weak logical structure, or any number of other kludges and hacks which turn maintenance of the code into a nightmare; or else it is written well and beautifully structured, but can never be completed before changes in the situation cause the original code design to be insufficient for one or multiple reasons.
  
 
Either situation eventually leads to the need to completely start from scratch, designing and writing the program's code all over again. Of course, the writing of this new program is also locked in the perpetual cycle of choosing between ugly/bad code that works marginally well, or good/pretty code that never gets completed before being obsolete.
 
Either situation eventually leads to the need to completely start from scratch, designing and writing the program's code all over again. Of course, the writing of this new program is also locked in the perpetual cycle of choosing between ugly/bad code that works marginally well, or good/pretty code that never gets completed before being obsolete.
Line 14: Line 14:
 
Additionally, the humorous point is being further emphasized for the primary target audience, programmers, by using an {{w|infinite loop}} - or more precisely, 2 possible loops and 1 forced loop in the flowchart itself.
 
Additionally, the humorous point is being further emphasized for the primary target audience, programmers, by using an {{w|infinite loop}} - or more precisely, 2 possible loops and 1 forced loop in the flowchart itself.
  
Also, of particular note, is the fact that Randall (the author) drives home the point of the inescapability of the infinite loop(s) by the use of the additional, disconnected, and logically unreachable portion of the flowchart. This disconnect points out that the only way to actually get to "Good Code" using the flow chart would be to follow a path of actions — which does '''not''' start at the prescribed place — for which there is only an unknown and possibly unknowable starting action which no one has ever discovered previously. Other flowchart comics, several of which are also infinite loops, can be found [[:Category:Flowcharts|here]].
+
Also, of particular note, is the fact that Randall (the author) drives home the point of the inescapability of the infinite loop(s) by the use of the additional, disconnected, and logically unreachable portion of the flowchart. This disconnect points out that the only way to actually get to "Good Code" using the flow chart would be to follow a path of actions — which does '''not''' start at the proscribed place — for which there is only an unknown and possibly unknowable starting action which no one has ever discovered previously.
  
The title text, "You can either hang out in the Android Loop or the HURD loop," makes a dig at both communities: claiming that Android developers always opt for fast, ugly code, necessitating frequent fixes and updates, while Hurd developers perennially choose to "do the job right" but can therefore never seem to finish their project.
+
The title text, "You can either hang out in the Android Loop or the HURD loop," makes a further dig at each community, claiming that Android developers are always choosing fast, ugly code, while HURD developers are always choosing to "do things right" but can therefore never finish their project at all. The [http://www.gnu.org/software/hurd/ GNU Hurd project], which aims to create the kernel (i.e. lower-level portions) of the "GNU operating system," while building on a number of fundamentally "beautiful" concepts, has nonetheless been in development for many years with little forward motion towards actual usability by anyone except the developers themselves.
  
The [http://www.gnu.org/software/hurd/ GNU Hurd Project] aims to create the kernel for the GNU Operating System (the kernel being the central and most indispensable component). The GNU Project is most famous these days as a result of GNU/Linux (commonly called just "Linux"), which is an operating system that uses the Linux kernel with the GNU system environment. From the beginning the GNU Project has planned to design their own kernel, [http://www.gnu.org/software/hurd/hurd/what_is_the_gnu_hurd/gramatically_speaking.html the Hurd], virtually from scratch, and given a relatively clean slate with which to work, elected to employ a number of [http://www.gnu.org/software/hurd/hurd-paper.html promising and theoretically elegant design concepts]. Despite or, as Randall suggests, because of this, the Hurd has been mired in development hell for many years (for decades, in fact) with little progress towards actual usability outside of a small community of kernel hackers. While [http://www.debian.org/ports/hurd/ runnable GNU/Hurd operating systems] do exist, they're still basically experimental, and the Hurd remains a collection of research software the design goalposts for which keep receding as other, more pragmatically-engineered technologies continue to be developed (the Linux kernel itself being the canonical first instance of this).
+
Finally, the transcript of this comic is itself somewhat humorous (an additional {{w|In-joke|inside joke}}, if you will) in that it converts the flowchart into a simple list of instructions (aka pseudo-code) using numbered lines as reference points for identifying which instruction to read and follow next. This process is basically identical to the oft-maligned programming technique of using so-called "{{w|Goto|goto loops}}." — Furthermore, there is also a slight cross-reference between infinite loops and goto loops which is probably being referenced, in that goto loops are often criticized (whether accurately or not) as being more likely to create unintended infinite loops in code... primarily because of the difficulty inherent in keeping track of possible entry and exit paths, especially when making edits to the code at a later time.
 
 
Finally, the [https://xkcd.com/844/info.0.json official transcript] of this comic is itself somewhat humorous (an additional {{w|In-joke|inside joke}}, if you will) in that it converts the flowchart into a simple list of instructions (aka pseudo-code) using numbered lines as reference points for identifying which instruction to read and follow next. This process is basically identical to the oft-maligned programming technique of using so-called "{{w|Goto|goto loops}}." — Furthermore, there is also a slight cross-reference between infinite loops and goto loops which is probably being referenced, in that goto loops are often criticized (whether accurately or not) as being more likely to create unintended infinite loops in code... primarily because of the difficulty inherent in keeping track of possible entry and exit paths, especially when making edits to the code at a later time.
 
  
 
==Transcript==
 
==Transcript==
:[The comic is a flowchart. In order to explain this in text, follow the line numbers. Options follow on new lines without numbers.]
+
:[The comic is a flowchart In order to explain this in text, follow the line numbers. Options follow on new lines without numbers.]
 
:How to write good code.
 
:How to write good code.
 
:[10.] Start Project. [Go to 20.]
 
:[10.] Start Project. [Go to 20.]

Please note that all contributions to explain xkcd may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see explain xkcd:Copyrights for details). Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel | Editing help (opens in new window)