<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dysfunctional Programming</title>
	<atom:link href="http://www.joshmatthews.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joshmatthews.net/blog</link>
	<description>/* You are not expected to understand this */</description>
	<lastBuildDate>Sun, 15 Apr 2012 16:19:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Things I want someone to create for me, volume 1</title>
		<link>http://www.joshmatthews.net/blog/2012/04/things-i-want-someone-to-create-for-me-volume-1/</link>
		<comments>http://www.joshmatthews.net/blog/2012/04/things-i-want-someone-to-create-for-me-volume-1/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 16:18:33 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=162</guid>
		<description><![CDATA[A mechanism that automatically expands all collapsed merges in a pushlog view. I don&#8217;t care if it&#8217;s a Firefox extension or modification to the pushloghtml source that adds an expand=1 parameter to the query string; I am tired of manually expanding each one.]]></description>
			<content:encoded><![CDATA[<p>A mechanism that automatically expands all collapsed merges in a <a href="http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?startdate=2012-04-08&#038;enddate=">pushlog view</a>. I don&#8217;t care if it&#8217;s a Firefox extension or modification to the pushloghtml <a href="http://hg.mozilla.org/hgcustom/pushlog/">source</a> that adds an expand=1 parameter to the query string; I am tired of manually expanding each one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2012/04/things-i-want-someone-to-create-for-me-volume-1/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Sometimes I do other things than write code</title>
		<link>http://www.joshmatthews.net/blog/2012/03/sometimes-i-do-other-things-than-write-code/</link>
		<comments>http://www.joshmatthews.net/blog/2012/03/sometimes-i-do-other-things-than-write-code/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 06:52:23 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=156</guid>
		<description><![CDATA[I don&#8217;t always write code, but when I do&#8230; no wait, that&#8217;s not right. Here&#8217;s what I&#8217;ve been up to in the past week: I sing in the an all-male university a capella group called The Water Boys. Our end of term concert is happening on Sunday, and the overall club EOT concert just occurred [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t always write code, but when I do&#8230; no wait, that&#8217;s not right. Here&#8217;s what I&#8217;ve been up to in the past week:</p>
<p>I sing in the an all-male university a capella group called The Water Boys. Our end of term concert is happening on Sunday, and the overall club EOT concert just occurred last weekend:<br />
<iframe width="560" height="315" src="http://www.youtube.com/embed/gajZ_b75KHU" frameborder="0" allowfullscreen></iframe></p>
<p>I also sing in a barbershop quartet called the Bearded Baritones, which doesn&#8217;t allow me to hide in the background nearly as much as the 17 person group does (third from right, if curious):</p>
<p><iframe width="500" height="281" src="http://www.youtube.com/embed/nwk6_v7AYrE?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
<p>Having just attended my last class of my university career (assuming exams go well), I have to say that this is one aspect of the past five years that I will miss dearly when I move to Toronto this summer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2012/03/sometimes-i-do-other-things-than-write-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>smartmake redux: harder, better, faster, stronger</title>
		<link>http://www.joshmatthews.net/blog/2012/01/smartmake-redux-harder-better-faster-stronger/</link>
		<comments>http://www.joshmatthews.net/blog/2012/01/smartmake-redux-harder-better-faster-stronger/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 20:43:21 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=150</guid>
		<description><![CDATA[Do you get frustrated about how long it takes to build Firefox after you&#8217;ve only made a small change to a single file? Have you heard the words &#8220;incremental build&#8221;, or tried to only build one or two directories but can&#8217;t figure out why your changes aren&#8217;t showing up? You are not alone. I released [...]]]></description>
			<content:encoded><![CDATA[<p>Do you get frustrated about how long it takes to build Firefox after you&#8217;ve only made a small change to a single file? Have you heard the words &#8220;incremental build&#8221;, or tried to only build one or two directories but can&#8217;t figure out why your changes aren&#8217;t showing up?</p>
<p>You are not alone.</p>
<p>I released my <a href="http://hg.mozilla.org/users/josh_joshmatthews.net/smartmake">smartmake</a> tool last year to allow people to specify then directories they&#8217;ve changed, and in return the tool would perform a correct incremental build. No hassle, no sweat. The name was deceptive; it was a pretty dumb tool, but it got the job done with a little help from the user. However, there is a rule that any build system tool eventually reimplements the functionality of make, and so I am proud to release <a href="http://hg.mozilla.org/users/josh_joshmatthews.net/smartmake">smartmake v2</a>, which requires less work than ever before to produce correct incremental builds.</p>
<p>Thanks to the hard work of the illustrious Till Schneidereit (till on IRC), smartmake now finds every source file modified since the last time you performed an incremental build, and performs a (mostly) minimal rebuild. It will also complain if it comes across any modified files for which it doesn&#8217;t have any dependency information, and suggest you perform a full build instead.</p>
<p>Go ahead, give it a shot! Tell me (or Till) what goes wrong so that we can fix it. I recommend doing a full build, then making a small change and running <code>smartmake.py '5 minutes ago'</code> to kick it off and get the timestamp caching happening.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2012/01/smartmake-redux-harder-better-faster-stronger/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Answering questions by looking at code</title>
		<link>http://www.joshmatthews.net/blog/2012/01/answering-questions/</link>
		<comments>http://www.joshmatthews.net/blog/2012/01/answering-questions/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 20:50:11 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=146</guid>
		<description><![CDATA[A contributor recently asked a question in #introduction that I couldn&#8217;t answer immediately, but I suspected that I could find the answer without too much work. I also decided to write down the steps I took and the reasons I took them, with the intent of creating a worked example of finding answers in the [...]]]></description>
			<content:encoded><![CDATA[<p>A contributor recently asked a question in #introduction that I couldn&#8217;t answer immediately, but I suspected that I could find the answer without too much work. I also decided to write down the steps I took and the reasons I took them, with the intent of creating a worked example of finding answers in the Firefox code.</p>
<p>The question: <b>how do I determine if a given URI pointing to an RSS feed is subscribed as a live bookmark?</b></p>
<p>My first instinct when looking for code I have never touched before is to start with the visible strings in the Firefox interface. In this case, I went to slashdot.org and clicked on the RSS feed button to take me to the RSS feed viewer. Under the options for possible subscriptions, there is the &#8220;Live Bookmarks&#8221; choice. I&#8217;m going to find the code that handles subscribing a live bookmark, which should lead me to the way to find out if a feed is currently subscribed.</p>
<p>So, off to MXR: <a href="http://mxr.mozilla.org/mozilla-central/search?string=Live+Bookmarks&#038;find=&#038;findi=&#038;filter=^[^\0]*%24&#038;hitlimit=&#038;tree=mozilla-central" title="http://mxr.mozilla.org/mozilla-central/search?string=Live+Bookmarks&#038;find=&#038;findi=&#038;filter=^[^\0]*%24&#038;hitlimit=&#038;tree=mozilla-central">http://mxr.mozilla.org/mozilla-central/search?string=Live+Bookmarks&#038;find=&#038;findi=&#038;filter=^[^\0]*%24&#038;hitlimit=&#038;tree=mozilla-central</a></p>
<p>Strings are usually stored in special localized files, where the actual string is referred to by a unique name. In this case, we&#8217;re looking at subscribe.properties, which shows us that some code should be using the name <code>liveBookmarks</code> to show the localized string in the feed viewer window.</p>
<p>Let&#8217;s look that up: <a href="http://mxr.mozilla.org/mozilla-central/search?string=livebookmarks&#038;find=&#038;findi=&#038;filter=^[^\0]*%24&#038;hitlimit=&#038;tree=mozilla-central<br />
">http://mxr.mozilla.org/mozilla-central/search?string=livebookmarks&#038;find=&#038;findi=&#038;filter=^[^\0]*%24&#038;hitlimit=&#038;tree=mozilla-central</a></p>
<p>Out of the results, <code>subscribe.xml</code> sounds like something I want to read: <a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/content/subscribe.xml#53">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/content/subscribe.xml#53</a></p>
<p>Unfortunately, that line turns out to be not very interesting. However, let&#8217;s see what we can find for <code>liveBookmarksMenuItem</code>, which sounds like it might be the item for the live bookmarks option in the dropdown: <a href="http://mxr.mozilla.org/mozilla-central/ident?i=liveBookmarksMenuItem">http://mxr.mozilla.org/mozilla-central/ident?i=liveBookmarksMenuItem</a></p>
<p>Let&#8217;s look at FeedWriter.js from the results: <a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js</a></p>
<p>Woah, that&#8217;s a lot of code!  Let&#8217;s take a step back &#8211; we care about the subscribing action right now. Going back to subscribe.xml (<a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/content/subscribe.xml">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/content/subscribe.xml</a>), notice that the button is called <code>subscribeButton</code>. That sounds really useful! Let&#8217;s look in feedwriter.js again for that (just a regular ctr+f operation): <a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js#859">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js#859</a></p>
<p>Now, let&#8217;s find the function subscribe (ctr+f for <code>subscribe:</code>, as that&#8217;s commonly how member functions are defined in the Firefox source): <a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js#1241">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js#1241</a></p>
<p>Reading the source of <code>subscribe()</code>, we come to<br />
<a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js#1293>http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedWriter.js#1293</a>. This is related to the <code>anonid</code> class in <code>subscribe.xml</code> that was saw, so we&#8217;re on the right track!</p>
<p>Ooh, further down, there&#8217;s something called a feed service &#8211; that sounds handy. We can find its definition by looking for <code>addToClientReader</code> (I just clicked the linked name): <a href="http://mxr.mozilla.org/mozilla-central/ident?i=addToClientReader>http://mxr.mozilla.org/mozilla-central/ident?i=addToClientReader</a></p>
<p>We can see the definition of <code>addToClientReader</code> at <a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedConverter.js#390">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedConverter.js#390</a>. Let&#8217;s look at what else is defined here &#8211; this seems to be implementing the nsIFeedResultService interface, so we can look up the <code>nsIFeedResultService.idl</code> file in MXR: <a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/public/nsIFeedResultService.idl">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/public/nsIFeedResultService.idl</a>.</p>
<p>Unfortunately, the service seems to be dealing with actual feed contents, and it doesn&#8217;t look like there&#8217;s a direct function to help us &#8211; let&#8217;s step back and see how <code>addToClientReader</code> is implemented.</p>
<p><a href="http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedConverter.js#448">http://mxr.mozilla.org/mozilla-central/source/browser/components/feeds/src/FeedConverter.js#448</a> is an important line &#8211; let&#8217;s look at <code>addLiveBookmark</code> (I just clicked the name again): <a href="http://mxr.mozilla.org/mozilla-central/ident?i=addLiveBookmark">http://mxr.mozilla.org/mozilla-central/ident?i=addLiveBookmark</a></p>
<p>Take a look at <a href="http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-places.js#457">http://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-places.js#457</a>.  This shows us how a bookmark dialog is created, but not the actual subscription process. However, the important part is line 471, which shows us the type <code>"livemark"</code>. Let&#8217;s search for that string and see what other code uses it: <a href="http://mxr.mozilla.org/mozilla-central/search?string=livemark">http://mxr.mozilla.org/mozilla-central/search?string=livemark</a></p>
<p>Woah! There are a lot of results! Since I&#8217;m not certain what I&#8217;m looking for at this point, I find the best thing to do here is to scan all the results quickly, looking for interesting snippets or filenames before opening any particular file. Partway down, there&#8217;s a file called <code>test_bug636917_isLivemark.js</code> (<a href="http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/tests/unit/test_bug636917_isLivemark.js</a>) &#8211; that sounds like something interesting. Since it refers to the <code>PlacesUtils.livemarks.isLivemark</code> function, let&#8217;s find the PlacesUtils file: <a href="http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/PlacesUtils.jsm">http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/PlacesUtils.jsm</a></p>
<p>Searching for <code>livemarks</code> in this file, we find line 2234 which defines the <code>livemarks</code> object as the <code>nsILivemarkService</code> service. Let&#8217;s look that up!</p>
<p>First the idl definition, to see if this service will be useful: <a href="http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/nsILivemarkService.idl">http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/nsILivemarkService.idl</a>. There&#8217;s a method called <code>getLivemarkIdForFeedURI</code> (<a href="http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/nsILivemarkService.idl#107">http://mxr.mozilla.org/mozilla-central/source/toolkit/components/places/nsILivemarkService.idl#107</a>), which looks to be exactly what we want &#8211; it gives us a -1 result for a non-registered feed and another number for a registered one.</p>
<p>So, to sum up &#8211; we have found a service that will take a URI and return a value that can be used to determine whether a given feed is a subscribed livemark, and we have learned that livemarks are the internal name for Live Bookmarks. The only bit remaining now is to get access to this service, but we can either use <code>PlacesUtils.livemarks</code> for that (if we import PlacesUtils.jsm), or just use a normal <code>getService</code> call. These are just details; the hard part of answering the original question is complete!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2012/01/answering-questions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Firefox regression hunter VM!</title>
		<link>http://www.joshmatthews.net/blog/2012/01/a-firefox-regression-hunter-vm/</link>
		<comments>http://www.joshmatthews.net/blog/2012/01/a-firefox-regression-hunter-vm/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 09:03:56 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=143</guid>
		<description><![CDATA[I am happy to announce the first public unveiling of my Fox in a Box project. The enthusiasm for my idea of putting together a dev VM was loud and clear in my last post, mainly from testers who expressed interest in hunting regressions at a more granular level. The README in the first link [...]]]></description>
			<content:encoded><![CDATA[<p>I am happy to announce the first public unveiling of my <a href="https://github.com/jdm/foxinabox">Fox in a Box</a> project. The enthusiasm for my idea of putting together a dev VM was loud and clear in <a href="http://www.joshmatthews.net/blog/2011/10/a-firefox-dev-vm/">my last post</a>, mainly from testers who expressed interest in hunting regressions at a more granular level. The README in the first link hopefully contains enough details for anybody to get themselves set up with a minimal Ubuntu 11.04 VM with a preset clone of mozilla-central ready to build. I experienced clobber build times of 30-45 minutes in my tests; your mileage may vary. So please, run <code>$ git clone git://github.com/jdm/foxinabox.git</code>, follow the README and let me know how it goes for you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2012/01/a-firefox-regression-hunter-vm/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>A Firefox dev VM?</title>
		<link>http://www.joshmatthews.net/blog/2011/10/a-firefox-dev-vm/</link>
		<comments>http://www.joshmatthews.net/blog/2011/10/a-firefox-dev-vm/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 17:20:15 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=140</guid>
		<description><![CDATA[I&#8217;ve been toying with the idea of creating a virtual machine that&#8217;s ready to build mozilla-central out of the box. The original idea I had was that it would be really easy to get new contributors started, and it would allow us to set up finicky things like the hgrc correctly. However, it was pointed [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been toying with the idea of creating a virtual machine that&#8217;s ready to build mozilla-central out of the box. The original idea I had was that it would be really easy to get new contributors started, and it would allow us to set up finicky things like the hgrc correctly. However, it was pointed out to me that build times in VMs are pretty terrible, which does make it less attractive. However <i>however</i>, I have seen comments from technical people in bugs that they would like to help find regression ranges smaller than 24 hours, but they lack the time to figure out how to set up a build. Is it worth creating a VM for finding regression ranges? I can imagine it being really pleasant to start a VM, run a script, and check back in every 30 minutes to see if the next build is ready for testing. Alternatively, implementing Kyle Huey&#8217;s <a href="http://blog.kylehuey.com/post/2637277759/hunting-regressions">proposed solution</a> would also be a pretty big step to easing those pains.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2011/10/a-firefox-dev-vm/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>A spoonful of sugar helps the .mozconfig go down</title>
		<link>http://www.joshmatthews.net/blog/2011/10/a-spoonful-of-sugar-helps-the-mozconfig-go-down/</link>
		<comments>http://www.joshmatthews.net/blog/2011/10/a-spoonful-of-sugar-helps-the-mozconfig-go-down/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 19:41:30 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=138</guid>
		<description><![CDATA[In my work with new Mozilla contributors, I&#8217;ve seen a number of people get hung up on the whole .mozconfig voodoo madness. Yes, we made it possible to download the source and build it without having to even think about creating one, but as soon as you want to use a debug build, or build [...]]]></description>
			<content:encoded><![CDATA[<p>In my work with new Mozilla contributors, I&#8217;ve seen a number of people get hung up on the whole .mozconfig voodoo madness. Yes, we made it possible to download the source and build it without having to even think about creating one, but as soon as you want to use a debug build, or build Fennec, the dream is over. Therefore, I&#8217;ve put together <a href="http://hg.mozilla.org/users/josh_joshmatthews.net/mozconfig-creator">mozconfig.py</a> which is designed to walk users through the process of creating a working .mozconfig file tailored to their needs.</p>
<p>The best way to use it at present is as follows:</p>
<pre>$ ./mozconfig.py 2>~/mozilla-central/.mozconfig</pre>
<p>This will send the generated file contents directly into the relevant .mozconfig, so all that&#8217;s left is running make. I&#8217;d love to be able to programmatically determine whether the program is actually invoked this way, so it could give helpful instructions otherwise. However, I&#8217;m open for ways in which to improve it (keep in mind the target audience of &#8220;people who need to work on common tasks that require changing .mozconfig options&#8221;), and I&#8217;m <i>really</i> keen on ideas of how best to market this (wiki pages, etc.) so that it reaches the widest possible audience.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2011/10/a-spoonful-of-sugar-helps-the-mozconfig-go-down/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Making bugs more attractive for other people to fix</title>
		<link>http://www.joshmatthews.net/blog/2011/09/making-bugs-more-attractive-for-other-people-to-fix/</link>
		<comments>http://www.joshmatthews.net/blog/2011/09/making-bugs-more-attractive-for-other-people-to-fix/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 19:36:07 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=131</guid>
		<description><![CDATA[There are two takeaway points that I would like to state up front: when you find a bug that&#8217;s well-scoped and you have a fairly clear idea of how to fix it, add [mentor=yournickname] to the whiteboard. when stating that a bug is good for someone else to work on, please please add a comment [...]]]></description>
			<content:encoded><![CDATA[<p>There are two takeaway points that I would like to state up front:</p>
<ol>
<li> when you find a bug that&#8217;s well-scoped and you have a fairly clear idea of how to fix it, add <strong>[mentor=yournickname]</strong> to the whiteboard.</li>
<li> when stating that a bug is good for someone else to work on, please <em>please</em> add a comment with relevant MXR links and information on how to fix it.</li>
</ol>
<p>I&#8217;m absolutely thrilled to see people marking bugs as being good for other people to fix. That&#8217;s what the &#8220;good first bug&#8221; and &#8220;mentor=&#8221; annotations are all about. It&#8217;s a message from someone who understands the issue, and it indicates that the bug is fixable with a reasonable amount of effort on the part of someone who is not a core contributor.</p>
<p>I&#8217;m going to go out on a limb and say that using [good first bug] is no longer desirable. The <a href="http://bugzil.la/sw:&quot;good first bug&quot;">list of bugs</a> with this annotation has grown beyond a manageable size (not in a good way), and it can appear like an impenetrable barrier for someone who shows up with the idea that they &#8220;want to work on Firefox.&#8221; Now, I subscribe to the RSS feed of this list, so I see every new addition and will likely to ping the culprit on IRC and ask whether the bug in question would make a better mentored bug. What is a mentored bug, you might ask? Segue!</p>
<p>Mentored bugs are the new hotness. A mentored bug is one in which someone with knowledge of the code in question has added the [mentor=name] annotation to the bug&#8217;s whiteboard, and represents a contract that:</p>
<ul>
<li>the issue is fixable</li>
<li>a fix is desired</li>
<li>there exists a plan for how to proceed with fixing it</li>
<li>the specified mentor understands the problem and proposed solution</li>
</ul>
<p>These are the absolute basics. Without these guarantees, a bug should not be assigned a mentor, and certainly shouldn&#8217;t be proposed to a contributor looking for work.</p>
<p>Furthermore, I propose that bug mentorship be a social contract as well. When I was a volunteer contributor with a non-Mozilla day job, I found it difficult to get on IRC during work hours, so I wasn&#8217;t able to have real-time conversations with my mentor. Moreover, the work I was doing was understood by very few people, so the folks on IRC in the evenings couldn&#8217;t really help me either. Therefore, I recommend that bug mentors make the commitment to respond to emails from contributors regarding the bug in question, because that can significantly ease the burden for eager volunteers in situations like my own. I have carried on several long email conversations with people working on my mentored bugs, consisting of advice, links to documentation, and technical support, and they have resulted in patches for those bugs every single time.</p>
<p>So, should you become a bug mentor? Absolutely! How can you decide whether a given bug is a good candidate for mentorship? Here&#8217;s a helpful checklist that I go through when considering that question:</p>
<ul>
<li>Does it fulfill the basic requirements above?</li>
<li>Am I willing/able to answer questions about the proposed solution, or do I know who to point a contributor towards if I don&#8217;t have the answers?</li>
</ul>
<p>That&#8217;s it! Bug mentorship is easiest when you have a complete understanding of a problem, but <strong>all that is truly necessary is enough knowledge to act as a willing guide for someone who knows less than you</strong>.</p>
<p>The final point that I want to emphasize &#8211; when you&#8217;re marking a bug as being good for another person to work on, please take a few moments to dump your investigative work in the bug. Function names, MXR links, steps to reproduce, explanations of the problem and how it can be solved: these are the stepping stones that allow a contributor to start looking into how to solve the problem without waiting to get in contact with you. The less latency involved, the better. Remember, these bugs are often being approached by people with very little experience in the code in question &#8211; spell out the assumptions you make, and you&#8217;ll make someone else&#8217;s job easier.</p>
<p>Appendix A &#8211; Types of bugs that are good candidates for mentoring:</p>
<ul>
<li>Reliable edge-case crashes &#8211; easily reproducible, typically not in the critical path, great visibility (contributor can demonstrate behaviour change to third party)</li>
<li>Bugs containing simple (or at least explicitly spelled-out), verified testcases &#8211; easily reproducible, good visibility</li>
<li>Well-scoped tasks (ie. change all uses of X to Y, remove Z) &#8211; easily explained</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2011/09/making-bugs-more-attractive-for-other-people-to-fix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Two years he walks the earth</title>
		<link>http://www.joshmatthews.net/blog/2011/08/two-years-he-walks-the-earth/</link>
		<comments>http://www.joshmatthews.net/blog/2011/08/two-years-he-walks-the-earth/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 15:13:00 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=129</guid>
		<description><![CDATA[Two years ago today I sent an email to Benjamin Smedberg saying that I wanted to help out with Electrolysis. I regret nothing except how quickly the intervening time has passed. Bring on two more years!]]></description>
			<content:encoded><![CDATA[<p>Two years ago today I sent an email to Benjamin Smedberg saying that I wanted to help out with Electrolysis. I regret nothing except how quickly the intervening time has passed. Bring on two more years!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2011/08/two-years-he-walks-the-earth/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Fast and the Furious: bzexport</title>
		<link>http://www.joshmatthews.net/blog/2011/07/the-fast-and-the-furious-bzexport/</link>
		<comments>http://www.joshmatthews.net/blog/2011/07/the-fast-and-the-furious-bzexport/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 23:18:03 +0000</pubDate>
		<dc:creator>Josh Matthews</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[projects]]></category>

		<guid isPermaLink="false">http://www.joshmatthews.net/blog/?p=126</guid>
		<description><![CDATA[If you&#8217;re a bzexport user, you&#8217;ll want to pull the latest revision. It&#8217;s recently been getting slower due to the number of http requests that need to be made (the tradeoff here is that it&#8217;s also been getting more correct), but I&#8217;ve pushed three patches that have reversed that downward slide into the molasses. By [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a <a href="http://hg.mozilla.org/users/tmielczarek_mozilla.com/bzexport/">bzexport</a> user, you&#8217;ll want to pull the latest revision. It&#8217;s recently been getting slower due to the number of http requests that need to be made (the tradeoff here is that it&#8217;s also been getting more correct), but I&#8217;ve pushed three patches that have reversed that downward slide into the molasses. By sending more data than is strictly necessary, caching information such as user name to email translations, and avoiding fetching data that rarely changes, I&#8217;ve noticeably improved the running time of bzexport on my machine. Give it a shot!</p>
<p>If you&#8217;re not a bzexport user, and you write patches that are submitted to bugzilla, you&#8217;re missing out. Bzexport simplifies that process of getting a patch out of your local machine and into the hands of your reviewer, making you a happier and more productive person.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.joshmatthews.net/blog/2011/07/the-fast-and-the-furious-bzexport/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

