Exercise Left to the Coder

by clayshannon

HTML

<h2>What Nerve That Guy Has!</h2>
<p>This may be the strangest article you'll ever read on CodeProject - instead of showing you how to accomplish 

something in code, it instead outlines the steps necessary to create what I think it would be a hip/fab/groovy/cool 

utility, leaving the actual writing of the code to whoever wants to tackle it - I'm taking "armchair coding" to a "whole 

'nother level" with this.</p>

<p>Here's the idea: From a list of names (they have to be people who are famous enough to have a Wikipedia page), 

extract the person's birthplace and, if they are an athlete, the position they play. If they are a musician, the instrument 

they play. Assemble this information into the necessary code to generate a map displaying a marker on each person's 

birthtown, along with information that will display when the marker is selected (clicked or touched). The information 

would be their name, the name of their birthtown, and the position/instrument they play).</p>

<p>Simple, right? Here it is in a skeletal outline:</p>

<ul>
	<li>Assemble the names</li>
	<li>"Wikipedify" the names</li>
	<li>Extract the birthplace and position or instrument of each subject from their wikipedia article</li>
	<li>Generate a map with markers for each birthplace</li>
</ul>

<p>And now with a little more detail/implementation suggestions/clues</p>

<p>Assemble the names (for example, from a site like <a href="http://www.packers.com/team/players.html"  target="_blank"> this one </a> use <a href="http://www.nuget.org/packages/HtmlAgilityPack"  target="_blank">HTML Agility Pack </a> to parse the contents</p>

<p>Wikipedify the names (see my tip <a href="http://www.codeproject.com/Tips/804504/Convert-a-list-of-names-to-HTML-Wikipedia-links" target="_blank"> here </a> for a method to do that</p>

<p>Extract the birthplace and position or instrument from their wikipedia article (use HTML Agility Pack for this, too)

</p>

<p>Generate a map with markers for each birthplace...