<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlexC</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AlexC"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/AlexC"/>
		<updated>2026-05-01T06:53:45Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=1513:_Code_Quality&amp;diff=90048</id>
		<title>1513: Code Quality</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=1513:_Code_Quality&amp;diff=90048"/>
				<updated>2015-04-17T11:53:47Z</updated>
		
		<summary type="html">&lt;p&gt;AlexC: plenty of crying-face emoji even in standard ASCII&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 1513&lt;br /&gt;
| date      = April 17, 2015&lt;br /&gt;
| title     = Code Quality&lt;br /&gt;
| image     = code quality.png&lt;br /&gt;
| titletext = I honestly didn't think you could even USE emoji in variable names. Or that there were so many different crying ones.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
&amp;lt;!-- °\_/° --&amp;gt;&lt;br /&gt;
{{incomplete| Needs fine-tuning and explaining of ponytails three comments}}&lt;br /&gt;
Cueball asks Ponytail to look at some source code that he has written, warning her that he is self-taught so his code probably won't be written the way she is used to.  Although few programming languages require a perfectly rigid style so long as the code is syntactically accurate, most programmers follow some sort of {{w|Programming_style|style}} to make the code easier to read.  This includes indenting lines to show levels and using descriptive variable identifiers with {{w|CamelCase|&amp;quot;camel case&amp;quot;}} capitalization (capitalizing each word except for the first.) In spite of Ponytail's initial (polite) optimism, she comments in three increasingly harsh and absurd similes. Finally, Cueball surrenders and makes the rather weak assurance that he will read “a style guide”—he doesn't think that following a complete course is in order. &lt;br /&gt;
&lt;br /&gt;
A common technique for self-taught programmers is to follow and adapt tutorials, and to find examples of similar problems being solved and try to copy the code.  This can (but doesn't always) lead to code that is hard to follow or otherwise &amp;quot;messy&amp;quot; as various different pieces of code are {{w|Jury_rig|jury-rigged}} together and tinkered with until they seem to work.  Once a piece of code is working, it is usually considered too hard to go back and rewrite it to be cleaner or clearer, also at the risk of breaking something that has been working.  This practice is known as {{w|refactoring}} and code projects that incorporate cycles of refactoring tend to be easier to read and maintain than those that don't.&lt;br /&gt;
&lt;br /&gt;
The title text refers to {{w|emoji}}, or &amp;quot;smiley faces&amp;quot;. They exist in Unicode, or can be simulated using ASCII characters. Many languages will allow variable names to include underscores, so a variety of sad face ASCII emoji will be legal variable names, such as &amp;lt;code&amp;gt;T_T&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;p_q&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ioi&amp;lt;/code&amp;gt; etc. Progressively more possible crying-face emoji are possible if variables can include [http://hexascii.com/sad-emoticons/ UTF8 characters] or full Unicode.&lt;br /&gt;
&lt;br /&gt;
In the realm of Unicode, there are many crying emojis, as the comic states (e.g. 😢,😭,😂,😿,😹)  In most programming languages it would be impossible to use them in variable names, as the symbols would break the language's syntax rules.  A notable exception to this is {{w|Swift (programming language)|Swift}}, Apple's new programming language, in which the code can understand and use emojis in variables.  Java, as another example, allows unicode characters in variable names as long as they are letter, numeric, combining or non-formatting marks. (See [http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.8] and [http://docs.oracle.com/javase/7/docs/api/java/lang/Character.html#isUnicodeIdentifierPart%28int%29]).  Also, some C++ compilers support foreign Unicode characters and can have emoji in that manner.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:[Cueball showing Ponytail his laptop]&lt;br /&gt;
:Cueball: Keep in mind that I'm self-taught, so my code may be a little messy.&lt;br /&gt;
:Ponytail: Lemme see - I'm sure it's fine.&lt;br /&gt;
&lt;br /&gt;
:[Ponytail sits at desk]&lt;br /&gt;
:Ponytail: ...Wow. This is like being in a house built by a child using nothing but a hatchet and a picture of a house.&lt;br /&gt;
&lt;br /&gt;
:Ponytail: It's like a salad recipe written by a corporate lawyer using a phone autocorrect that only knew Excel formulas.&lt;br /&gt;
&lt;br /&gt;
:Ponytail: It's like someone took a transcript of a couple arguing at IKEA and made random edits until it compiled without errors.&lt;br /&gt;
:Cueball: '''''Okay,''''' I'll read a style guide.&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
&amp;lt;!-- Include any categories below this line. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Comics featuring Cueball]]&lt;br /&gt;
[[Category:Comics featuring Ponytail]]&lt;/div&gt;</summary>
		<author><name>AlexC</name></author>	</entry>

	</feed>