<?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>danwin.com &#187; Dollars for Docs</title>
	<atom:link href="https://danwin.com/tag/dollars-for-docs/feed/" rel="self" type="application/rss+xml" />
	<link>https://danwin.com</link>
	<description>Words, photos, and code by Dan Nguyen. The &#039;g&#039; is mostly silent.</description>
	<lastBuildDate>Thu, 21 Nov 2019 12:29:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.39</generator>
	<item>
		<title>dataist blog: An inspiring case for journalists learning to code</title>
		<link>https://danwin.com/2011/02/dataist-blog-an-inspiring-case-for-journalists-learning-to-code/</link>
		<comments>https://danwin.com/2011/02/dataist-blog-an-inspiring-case-for-journalists-learning-to-code/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 13:00:32 +0000</pubDate>
		<dc:creator><![CDATA[Dan Nguyen]]></dc:creator>
				<category><![CDATA[thoughts]]></category>
		<category><![CDATA[works]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Dollars for Docs]]></category>
		<category><![CDATA[journalism]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[propublica]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">https://danwin.com/?p=1582</guid>
		<description><![CDATA[<p>About a year ago I threw up a long, rambling guide hoping to teach non-programming journalists some practical code. Looking back at it, it seems inadequate. Actually, I misspoke, I haven&#8217;t looked back at it because I&#8217;m sure I&#8217;ll just spend the next few hours cringing. For example, what a dumb idea it was to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://danwin.com/2011/02/dataist-blog-an-inspiring-case-for-journalists-learning-to-code/">dataist blog: An inspiring case for journalists learning to code</a> appeared first on <a rel="nofollow" href="https://danwin.com">danwin.com</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><a href="https://danwin.com/2011/02/dataist-blog-an-inspiring-case-for-journalists-learning-to-code/pills-keyboard-300x200/" rel="attachment wp-att-1596"><img src="https://danwin.com/words/wp-content/uploads/2011/02/pills-keyboard-300x200.jpg" alt="" title="pills-keyboard-300x200" width="300" height="200" class="alignleft size-full wp-image-1596" /></a> About a year ago <a href="https://danwin.com/coding-for-journalists-a-four-part-series/">I threw up a long, rambling guide</a> hoping to teach non-programming journalists some practical code. Looking back at it, it seems inadequate. Actually, I misspoke, I haven&#8217;t looked back at it because I&#8217;m sure I&#8217;ll just spend the next few hours cringing. For example, what a dumb idea it was to put everything from <a href="https://danwin.com/works/coding-for-journalists-go-from-a-know-nothing-to-web-scraper-in-an-hour-hopefully/">&#8220;What is HTML&#8221; to actual Ruby scraping code all in a gigantic, badly formatted post</a>.</p>
<p>The series of articles have gotten a fair number of hits but I don&#8217;t know how many people were able to stumble through it. Though last week I noticed this <a href="http://dataist.wordpress.com/2011/02/05/mapping-ratata-whos-hot/">recent trackback from dataist</a>, a new &#8220;blog about data exploration&#8221; by Finnish journo <a href="http://jensfinnas.com/">Jens FinnÃ¤s</a>. He writes that he has &#8220;almost no prior programming experience&#8221; but, after going through my tutorials and checking out <a href="http://scraperwiki.com/">Scraperwiki</a>, was<a href="http://dataist.wordpress.com/2011/02/05/mapping-ratata-whos-hot/"> able to produce this cool network graph of the Ratata blog network after about &#8220;two days of trial and error&#8221;:</a></p>
<div id="attachment_1597" style="width: 510px" class="wp-caption aligncenter"><a href="http://dataist.wordpress.com/2011/02/05/mapping-ratata-whos-hot/"><img src="https://danwin.com/words/wp-content/uploads/2011/02/dataist-pdf.gif" alt="Mapping of Ratata blogging network by Jens FinnÃ¤s of dataist.wordpress.com" title="Mapping of Ratata blogging network by Jens FinnÃ¤s of dataist.wordpress.com" width="500" height="311" class="size-full wp-image-1597" /></a><p class="wp-caption-text">Mapping of Ratata blogging network by Jens FinnÃ¤s of dataist.wordpress.com</p></div>
<p>I hope other non-coders who are still intimidated by the thought of learning programming are inspired by Finnas&#8217;s <a href="http://dataist.wordpress.com/2011/02/05/mapping-ratata-whos-hot/">example</a>. Becoming good at coding is not a trivial task. But even the first steps of it can teach a non-coder some profound lessons about data important enough on their own. And if you&#8217;re a curious-type with a question you want to answer, you&#8217;ll soon figure out a way to put something together, as in Finnas&#8217;s case.</p>
<p>ProPublica&#8217;s <a href="http://projects.propublica.org/docdollars/">Dollars for Docs project</a> originated in part from this <a href="https://danwin.com/2010/04/pfizer-web-scraping-for-journalists-part-4-pfizers-doctor-payments/">Pfizer-scraping lesson</a> I added on to my <a href="https://danwin.com/coding-for-journalists-a-four-part-series/">programming tutorial</a>: I needed a timely example of public data that wasn&#8217;t as useful as it should be.</p>
<p>My colleagues Charles Ornstein and Tracy Weber may not be programmers (yet), but they are experienced enough with data to know its worth as an investigative resource, and turned an <a href="http://www.propublica.org/nerds/item/the-coders-cause-in-dollars-for-docs">exercise</a> in transparency into a <a href="http://projects.propublica.org/docdollars">focused and effective investigation</a>. It&#8217;s not trivial to find a story in data. Besides being able to do Access queries themselves, C&#038;T knew both the limitations of the data (for example, it&#8217;s difficult to make comparisons between the companies because of <a href="http://projects.propublica.org/docdollars/payment_reports">different reporting periods</a>) and its possibilities, such as the cross-checking of names en masse from the payment lists with state and federal doctor databases.</p>
<p>Their <a href="http://www.propublica.org/series/nurses">investigation into the poor regulation of California nurses</a> &ndash; a collaboration with the LA Times that was a <a href="http://www.pulitzer.org/citation/2010-Public-Service">Pulitzer finalist in the Public Service category</a> &ndash; was similarly data-oriented. They (and the LA Times&#8217; Maloy Moore and Doug Smith) had been diligently building a database of thousands of nurses &ndash; including their disciplinary records and the time it took for the nursing board to act &ndash; which made my part in <a href="http://projects.propublica.org/nurses">building a site</a> to graphically represent the data extremely simple.</p>
<p>The point of all this is: don&#8217;t put off your personal data-training because you think it requires a computer science degree, or that you have to become great at it in order for it to be useful. Even if after a week of learning, you can barely put together a programming script to alphabetize your tweets, you&#8217;ll likely gain enough insight to how data is made structured and useful, which will aid in just about every other aspect of your reporting repertoire. </p>
<p>In fact, just knowing to avoid taking notes like this:</p>
<blockquote><p>
Colonel Mustard used the revolver in the library? (not library)<br />
Miss Scarlet used the Candlestick in the dining room? (not Scarlet)<br />
&#8220;Mrs. Peacock, in the dining room, with the <s>revolver</s>? &#8220;<br />
&#8220;Colonel Mustard, rope, <s>conservatory</s>?&#8221;<br />
Mustard? Dining room? Rope (nope)?<br />
&#8220;Was it Mrs. Peacock with the <s>candlestick</s>, inside the dining room?&#8221;
</p></blockquote>
<p>And instead, recording them like this:</p>
<table>
<thead>
<tr>
<th>Who/What?</th>
<th>Role?</th>
<th>Ruled out?</th>
</tr>
</thead>
<tbody>
<tr>
<td>Mustard</td>
<td>Suspect</td>
<td>N</td>
</tr>
<tr>
<td>Scarlet</td>
<td>Suspect</td>
<td>Y</td>
</tr>
<tr>
<td>Peacock</td>
<td>Suspect</td>
<td>N</td>
</tr>
<tr>
<td>Revolver</td>
<td>Weapon</td>
<td>Y</td>
</tr>
<tr>
<td>Candlestick</td>
<td>Weapon</td>
<td>Y</td>
</tr>
<tr>
<td>Rope</td>
<td>Weapon</td>
<td>Y</td>
</tr>
<tr>
<td>Conservatory</td>
<td>Place</td>
<td>Y</td>
</tr>
<tr>
<td>Dining Room</td>
<td>Place</td>
<td>N</td>
</tr>
<tr>
<td>Library</td>
<td>Place</td>
<td>Y</td>
</tr>
</tbody>
</table>
<p>&#8230;will make you a significantly more effective reporter, as well as position you to have your reporting and research become much more ready for thorough analysis and online projects.</p>
<p>There&#8217;s a motherlode of programming resources available through single Google search. My high school journalism teacher told us that if you want to do journalism, don&#8217;t major in it, just do it. I think the same can be said for programming. I&#8217;m glad I chose a computer field as an undergraduate so that I&#8217;m familiar with the theory. But if you have a career in reporting or research, you have real-world data-needs that most undergrads don&#8217;t. I&#8217;ve found that having those goals and needing to accomplish them has pushed my coding expertise far quicker than did any coursework.</p>
<p>If you aren&#8217;t set on learning to program, but want to get a better grasp of data, I recommend learning:</p>
<ul>
<li><a href="http://en.wikipedia.org/wiki/Regular_expression">Regular expressions</a> &#8211; a set of character patterns, easily printable on a cheat-sheet for memorization, that you use in a text-editor&#8217;s <em>Find and Replace</em> dialog to turn a chunk of text into something you can put into a spreadsheet, as well as clean up the data entries themselves. <a href="http://www.regular-expressions.info/">Regular-expressions.info</a> is the most complete resource I&#8217;ve found. A cheat-sheet can be <a href="http://www.addedbytes.com/cheat-sheets/regular-expressions-cheat-sheet/">found here</a>. <a href="http://en.wikipedia.org/wiki/Regular_expression">Wikipedia</a> has a list of some simple use cases.</li>
<li>
<a href="http://code.google.com/p/google-refine/">Google Refine</a> &#8211; A spreadsheet-like program that makes easy the task of cleaning and normalizing messy data. Ever go through campaign contribution records and wish you could easily group together and count as one, all the variations of &#8220;Jon J. Doe&#8221;, &#8220;Jonathan J. Doe&#8221;, &#8220;Jon Johnson Doe&#8221;, &#8220;JON J DOE&#8221;, etc.? Refine will do that. Refine developer David Huynh has an <a href="http://www.youtube.com/watch?v=yNccGtn3Wb0&#038;feature=player_embedded">excellent screencast</a> demonstrating Refine&#8217;s power. I wrote a guide as <a href="http://www.propublica.org/nerds/item/using-google-refine-for-data-cleaning">part of the Dollars for Docs tutorials</a>. Even if you know Excel like a pro &ndash; which I do not &ndash; Refine may make your data-life much more enjoyable.</li>
</li>
</ul>
<p>If you want to learn coding from the ground up, here&#8217;s a short list of places to start:</p>
<ul>
<li><a href="http://lifehacker.com/#!5744113/learn-to-code-the-full-beginners-guide">Lifehacker&#8217;s &#8220;Full Beginner&#8217;s Guide&#8221;</a> &#8211; a four day guide that covers the very basics to how to write a simple guessing game. It&#8217;s in Javascript, but as you&#8217;ll hear plenty of times from veterans, it really doesn&#8217;t matter what language you start out with.
</li>
<li><a href="http://www.ruby-doc.org/docs/ProgrammingRuby/">The Pragmatic Programmer&#8217;s Guide to Programming Ruby</a> &#8211; this covers an older version of Ruby, but is still a great comprehensive, browser-friendly book.
</li>
<li><a href="http://pine.fm/LearnToProgram/">Learn to Program (also in Ruby) by Chris Pine</a> &#8211; Written in 2004, this is still an elegant beginner&#8217;s guide
</li>
<li><a href="http://inventwithpython.com/chapters/">Invent Your Own Computer Games With Python</a> &#8211; You may not be interested in writing game software, but the same programming techniques apply in that field as they do anywhere else. This guide covers all the fundamentals and gives you great project examples.
</li>
<li><a href="http://scraperwiki.com/">ScraperWiki</a> has a massive collection of web-scraping scripts for your perusal, and is where the dataist&#8217;s FinnÃ¤s learned from example. ScraperWiki has a set of <a href="http://scraperwiki.com/help/tutorials/python/">python tutorials</a>, too.
</li>
<li>Here&#8217;s a <a href="http://www.e-booksdirectory.com/programming.php">giant list of free programming books</a>.
</li>
<li>Visit the <a href="http://www.reddit.com/r/learnprogramming">learnprogramming subforum in Reddit</a> to find a small, but active community of beginners who aren&#8217;t afraid to start the most basic of discussions with the forum&#8217;s programming experts. <a href="http://stackoverflow.com/">StackOverflow</a> is the single best site for specific questions or problems; often, you can Google your exact problem and a relevant StackOverflow discussion will be at the top.
</li>
<li>And you can always refer back to my <a href="https://danwin.com/coding-for-journalists-a-four-part-series/">four-part programming tutorial from last year</a>, which aims to cover HTML to writing Ruby to scrape websites. I <a href="http://www.propublica.org/nerds/item/doc-dollars-guides-collecting-the-data">also wrote a series of tutorials (with complete code) on how I collected data for Dollars for Docs</a>, including how to scrape from websites, Flash applications, PDFs, and even image files (the solution is specific to one kind of format, so I will gladly welcome anyone else to generalize it).
</li>
</ul>
<p>The post <a rel="nofollow" href="https://danwin.com/2011/02/dataist-blog-an-inspiring-case-for-journalists-learning-to-code/">dataist blog: An inspiring case for journalists learning to code</a> appeared first on <a rel="nofollow" href="https://danwin.com">danwin.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://danwin.com/2011/02/dataist-blog-an-inspiring-case-for-journalists-learning-to-code/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The Big Pharma-Dollars-for-Doctors Database, at ProPublica</title>
		<link>https://danwin.com/2010/10/the-big-pharma-dollars-for-doctors-database-at-propublica/</link>
		<comments>https://danwin.com/2010/10/the-big-pharma-dollars-for-doctors-database-at-propublica/#comments</comments>
		<pubDate>Tue, 19 Oct 2010 18:46:29 +0000</pubDate>
		<dc:creator><![CDATA[Dan Nguyen]]></dc:creator>
				<category><![CDATA[works]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Dollars for Docs]]></category>
		<category><![CDATA[propublica]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">https://danwin.com/?p=1380</guid>
		<description><![CDATA[<p>Haven&#8217;t had much time to blog, or eat, or sleep in the past few months because of this project, but the first part just rolled out today (at about 2am, actually): at ProPublica, my colleagues and I collected the past two years of reports (albeit just from 7 companies) disclosing what they pay doctors to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://danwin.com/2010/10/the-big-pharma-dollars-for-doctors-database-at-propublica/">The Big Pharma-Dollars-for-Doctors Database, at ProPublica</a> appeared first on <a rel="nofollow" href="https://danwin.com">danwin.com</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Haven&#8217;t had much time to blog, or eat, or sleep in the past few months because of this project, but the first part just rolled out today (at about 2am, actually): at ProPublica, <a href="http://projects.propublica.org/docdollars/">my colleagues and I collected the past two years of reports</a> (albeit just from 7 companies) disclosing what they pay doctors to speak on their behalf. I still have a few posts and articles to write about what undertaking and background, but it&#8217;s the first time that someone has compiled all these reports and made them available to the public, something that will be mandated by law in 2013.</p>
<p><a href="http://www.propublica.org/article/dollars-to-doctors-physician-disciplinary-records">Our first investigation related to the data looked at how some of the companies&#8217; top earner</a>s, who are ostensibly supposed to be experts in their field, had either shady or slim expertise. I did most of the datawork, including collecting the data and managing it, polling the various state websites to look up physician disciplinary records, and designing and coding (with the help of my genius coder co-worker Jeff Larson) the website. Whew!</p>
<p><a href="http://projects.propublica.org/docdollars/">Check it out.</a></p>
<p>The post <a rel="nofollow" href="https://danwin.com/2010/10/the-big-pharma-dollars-for-doctors-database-at-propublica/">The Big Pharma-Dollars-for-Doctors Database, at ProPublica</a> appeared first on <a rel="nofollow" href="https://danwin.com">danwin.com</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://danwin.com/2010/10/the-big-pharma-dollars-for-doctors-database-at-propublica/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
