<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>mikehelmick</title>
	<atom:link href="https://mikehelmick.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://mikehelmick.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2017 18:23:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mikehelmick.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>https://s0.wp.com/i/buttonw-com.png</url>
		<title>mikehelmick</title>
		<link>https://mikehelmick.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="https://mikehelmick.com/osd.xml" title="mikehelmick" />
	<atom:link rel='hub' href='https://mikehelmick.com/?pushpress=hub'/>
	<item>
		<title>Learning to Fly</title>
		<link>https://mikehelmick.com/2017/02/06/learning-to-fly/</link>
				<pubDate>Mon, 06 Feb 2017 18:23:41 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikehelmick.com/?p=1454</guid>
				<description><![CDATA[I&#8217;ve been spending some time learning to fly drones. This is what I&#8217;ve got so far.]]></description>
								<content:encoded><![CDATA[<p>I&#8217;ve been spending some time learning to fly drones. This is what I&#8217;ve got so far.</p>
<div class="jetpack-video-wrapper"><iframe class='youtube-player' type='text/html' width='560' height='315' src='https://www.youtube.com/embed/Btzn0AYd5JU?version=3&#038;rel=1&#038;fs=1&#038;autohide=2&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' allowfullscreen='true' style='border:0;'></iframe></div>
]]></content:encoded>
									
		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>The Great Programming Language Debate</title>
		<link>https://mikehelmick.com/2015/03/06/the-great-programming-language-debate/</link>
				<pubDate>Fri, 06 Mar 2015 17:20:51 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Education]]></category>

		<guid isPermaLink="false">http://mikehelmick.wordpress.com/?p=1441</guid>
				<description><![CDATA[I&#8217;m at ACM SIGCSE TS 2015. That&#8217;s the Associate of Computing Machinery&#8217;s Special Interest Group for Computer Science Education&#8217;s annual Technical Symposium. You can see why abbreviations are used. I&#8217;ve been attending this symposium since 2007 (I think I missed 2008 though). There is an annual debate &#8211; what programming language to teach in. I &#8230; <a href="https://mikehelmick.com/2015/03/06/the-great-programming-language-debate/" class="more-link">Continue reading <span class="screen-reader-text">The Great Programming Language&#160;Debate</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>I&#8217;m at ACM SIGCSE TS 2015. That&#8217;s the Associate of Computing Machinery&#8217;s Special Interest Group for Computer Science Education&#8217;s annual Technical Symposium. You can see why abbreviations are used. I&#8217;ve been attending this symposium since 2007 (I think I missed 2008 though).</p>
<p>There is an annual debate &#8211; what programming language to teach in. I think it is time we stop having this debate, for several reasons. Of I will give you those reasons and then tell you what languages that I think should be taught.</p>
<p>Reality tells me that the programming language doesn&#8217;t matter that much. Instead the critical skills are computational / algorithmic thinking, problem solving skills, and communication / teamwork skills. Programming is a tool we use to express our solutions to problems. A tool we use to express algorithms and to engineer systems.</p>
<p>My own programming career has told me that we need to be flexible as practitioners of computer science. I&#8217;ve gone from, in rough chronological order:</p>
<ul>
<li>basic</li>
<li>pascal</li>
<li>C++</li>
<li>Java</li>
<li>C</li>
<li>Perl</li>
<li>C++</li>
<li>Java</li>
<li>Ruby</li>
<li>Erlang</li>
<li>Java</li>
<li>C++</li>
</ul>
<p>So what does this say? It says that you need to be able to move between languages and paradigms. Someone with solid CS fundamentals will be able to move from one language to another and even one programming paradigm to another with minimal effort. That&#8217;s not to say you can pick up a language you&#8217;ve never seen and be super productive right away. In the order of a few weeks, you should be mostly up and running though.</p>
<p>In conclusion &#8211; what should be used as instructional languages? Here are my thoughts. I think that students should come out of a 4 year, BS degree having learned</p>
<ul>
<li>2 OO languages, one of which should be C++</li>
<li>1 functional language</li>
<li>One &#8220;scripting&#8221; language</li>
</ul>
<p>In the OO world, learn something that requires you to think about memory. C++ is really the gold standard here. Modern C++ (C++11/C++14) are quite nice and the language has come a long way. The other should be some kind of language that runs in a managed environment, or does reference counting. Something like Java/C#/Objective-C. Personally, I would pick C++ and Java.</p>
<p>Functional: Scheme? Haskell? Erlang? Clojure? It doesn&#8217;t matter much to me what this is. What matters is that you learn to think in the functional paradigm. Immutable state, closures, functions as first order items, etc. Personally, if I were teaching, right now I would probably use Erlang or Scheme/Racket for this purpose. Not because it is a markable skill. The language is not the skill, the way of thinking is the skill!</p>
<p>&#8220;Scripting language&#8221;: I&#8217;m probably unfairly bundling things here, but what I&#8217;m thinking is runtime interpreted style languages. Python, Ruby, etc.</p>
<p>4 languages &#8211; I think that gives a computer scientist a solid foundation for being able to change, adapt, and grow throughout their career. This is essential, because what language will we be programming in in 10 years, I don&#8217;t know, but it possibly hasn&#8217;t been invented yet.</p>
<p>How should you order these? Doesn&#8217;t matter too much. I would still avoid C++ as an introductory language, but having taught that last year, it is manageable, but there are still silly things that should be avoided. If I had it to do over, I would have started with vector before array, as passing arrays to functions in C++ is a mess that introductory students should not have to deal with.</p>
<p>In summary &#8211; maybe we should end the language debate and agree that students will learn programming paradigms. Once they get into industry, we can teach them that language we use. If someone is worth hiring, they&#8217;re worth investing some startup time on.</p>
<p>Thoughts from a former educator.</p>
]]></content:encoded>
									
		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>Need teaching materials?</title>
		<link>https://mikehelmick.com/2014/04/24/need-teaching-materials/</link>
				<pubDate>Thu, 24 Apr 2014 14:55:12 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mikehelmick.com/?p=1431</guid>
				<description><![CDATA[Since I am leaving academics, I have decided to open source all of the materials that I have created over my 3 1/2 years as a professor. This contains material from Miami University (2005 &#8211; 2007) and the University of Cincinnati (2013 &#8211; 2014) and contains material from these courses: Computer Science 1 Computer Science &#8230; <a href="https://mikehelmick.com/2014/04/24/need-teaching-materials/" class="more-link">Continue reading <span class="screen-reader-text">Need teaching materials?</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>Since I am leaving academics, I have decided to open source all of the materials that I have created over my 3 1/2 years as a professor.</p>
<p>This contains material from Miami University (2005 &#8211; 2007) and the University of Cincinnati (2013 &#8211; 2014) and contains material from these courses:</p>
<ul>
<li>Computer Science 1</li>
<li>Computer Science 2</li>
<li>Data Structures</li>
<li>Enterprise Application Architecture</li>
<li>Large Scale Software Engineering</li>
</ul>
<p>You can find it all on github.com.</p>
<pre style="text-align:center;"><a title="https://github.com/mikehelmick/teaching" href="https://github.com/mikehelmick/teaching">https://github.com/mikehelmick/teaching</a></pre>
]]></content:encoded>
									
		<media:thumbnail url="https://mikehelmick.files.wordpress.com/2014/04/header.png" />
		<media:content url="https://mikehelmick.files.wordpress.com/2014/04/header.png" medium="image">
			<media:title type="html">header</media:title>
		</media:content>

		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>What the hell happened? Part 1</title>
		<link>https://mikehelmick.com/2014/04/17/what-the-hell-happened-part-1/</link>
				<comments>https://mikehelmick.com/2014/04/17/what-the-hell-happened-part-1/#comments</comments>
				<pubDate>Fri, 18 Apr 2014 00:55:50 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Family]]></category>

		<guid isPermaLink="false">http://mikehelmick.com/?p=1420</guid>
				<description><![CDATA[I&#8217;m nearing the end of my time as a professor and I&#8217;m down to less than three weeks before I board a flight to start my new (old) job. I&#8217;m sure a lot of people are wondering exactly what went wrong this year. The story goes deeper/further back than that. Sometime in the late 90s, &#8230; <a href="https://mikehelmick.com/2014/04/17/what-the-hell-happened-part-1/" class="more-link">Continue reading <span class="screen-reader-text">What the hell happened? Part&#160;1</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>I&#8217;m nearing the end of my time as a professor and I&#8217;m down to less than three weeks before I board a flight to start my new (old) job. I&#8217;m sure a lot of people are wondering exactly what went wrong this year. The story goes deeper/further back than that.</p>
<p>Sometime in the late 90s, I decided that college professor was the job for me. I took a rocky path to get there, but eventually earned my PhD in the field, and&#8230; couldn&#8217;t find a job. I was kind of unemployable in Cincinnati (where I was living at the time). Industry wasn&#8217;t really an option in Cincinnati, and while I had a teaching job at the time, it was 9 month contracts, and I was eventually going to be time-limited out of that position.</p>
<p>So, we jumped. We went out into the unknown, and tried something new on. Very early on, during my days at Amazon.com, I had this feeling that I didn&#8217;t belong there, that academics was surely the place for me. But I stick it out because because I needed to explore that career path and for lack of a better option. Seriously, there aren&#8217;t many people who want to hire someone with a Ph.D. in computer science for software engineering jobs.</p>
<p>There was always this nagging feel of &#8220;I got a PhD, why am I not using it to work in academics?&#8221; It was almost if I was letting my degree down, and not living up to my training.</p>
<p>Flash forward a few years, and I was finally able to make peace with not having a career in academics. And then, I had an opportunity to switch to a career in academics. For us, it wasn&#8217;t even a choice. Being where we were in life was always sort of a consolation prize. Even though there were several red flags, we took the job, moved all our stuff and jump in face first to a different life.</p>
<a id='bmsyUUffRBxMwlD1RVu5mA' class='gie-single' href='http://www.gettyimages.com/detail/157274730' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'bmsyUUffRBxMwlD1RVu5mA',sig:'XQXFyFa-9dzGylhVxUqbnBr4lrAAkGf0-YputWo9nYk=',w:'507px',h:'338px',items:'157274730',caption: false ,tld:'com',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script>
<p>The problem &#8211; this different life didn&#8217;t fit. It didn&#8217;t fit in anyway. Just like I used to feel that I didn&#8217;t belong in industry, I now felt like I didn&#8217;t belong in academics. Only this time, the feeling was much stronger, more more immediate, and much more screaming &#8220;you must do something about this!&#8221; My new job was not good for me, and not good for my family. The increased working hours, increased stress, and less time with my family, all added up to a big negative that needed to be dealt with.</p>
<p>This year has been devastating to me, my immediate family, and my extended family. We can only hope that this turns out to be the worst thing that happens in our lifetimes. And we faced a series of difficult choices. Stick out what isn&#8217;t working, try to find something and salvage the wreckage, or go back to what was working. We chose to go back to what was working.</p>
<p>It took me until the age of 35 to figure out what I wanted to do when I grow up. Unfortunately this discovery had to come in the form of huge life lessons and undue strain on the relationships in our lives. Now I know, and I can move forward knowing that it is a path we chose.</p>
<p>I don&#8217;t know if these costs will ever be &#8220;worth it.&#8221; We have huge piece of mind in knowing that we tried something. We have huge piece of mind knowing that the life we will be living going forward is not a consolation prize, but a choice to do the best we can in the world every day.</p>
<p>One thing for sure &#8211; it is time to move on. This life isn&#8217;t working, and it is time for one that works.</p>
<p>Just a little bit of insight into what went wrong. We have more to share, but all in good time.</p>
]]></content:encoded>
							<wfw:commentRss>https://mikehelmick.com/2014/04/17/what-the-hell-happened-part-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
						
		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>Long Distance Commuting</title>
		<link>https://mikehelmick.com/2014/03/25/long-distance-commuting/</link>
				<comments>https://mikehelmick.com/2014/03/25/long-distance-commuting/#comments</comments>
				<pubDate>Tue, 25 Mar 2014 16:30:33 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://mikehelmick.com/?p=1416</guid>
				<description><![CDATA[Thankfully this is going to be temporary, but I&#8217;m now scheduled to begin my few weeks of work with some long distance commuting. Lucky for me, I have been hoarding my frequent flyer miles for years, so each trip will only cost me $7.50 in fees for redeeming the award ticket. By the numbers. Over a &#8230; <a href="https://mikehelmick.com/2014/03/25/long-distance-commuting/" class="more-link">Continue reading <span class="screen-reader-text">Long Distance Commuting</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>Thankfully this is going to be temporary, but I&#8217;m now scheduled to begin my few weeks of work with some long distance commuting.</p>
<p>Lucky for me, I have been hoarding my frequent flyer miles for years, so each trip will only cost me $7.50 in fees for redeeming the award ticket.</p>
<a id='w3If712MTb9Ra_g1hVhghg' class='gie-single' href='http://www.gettyimages.com/detail/172272611' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'w3If712MTb9Ra_g1hVhghg',sig:'xHrqw3w_7B5YO7aP1uCDuJ05S4z878u8AAMuFGF4l_M=',w:'508px',h:'337px',items:'172272611',caption: false ,tld:'com',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script>
<p>By the numbers. Over a period of 21 days, I am scheduled to be flying 14656 in 10 flights visiting 5 different airports (CVG, ATL, SJC, LAX, SEA).</p>
<p>Lots of in-flight wifi will be purchased and lots of working from planes / airports / etc.</p>
]]></content:encoded>
							<wfw:commentRss>https://mikehelmick.com/2014/03/25/long-distance-commuting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
						
		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>Private? The false assurances of C++</title>
		<link>https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/</link>
				<comments>https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/#comments</comments>
				<pubDate>Wed, 19 Mar 2014 14:00:25 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://mikehelmick.com/?p=1407</guid>
				<description><![CDATA[Yet another reason I believe that C++ is the wrong language for teaching introductory programming. Because of the way classes are laid out in memory, it is trivial to show (a good thing), but it is also trivial to access those private member variables directly. TLDR? &#8211; View the gist on github Let&#8217;s break this down. We &#8230; <a href="https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/" class="more-link">Continue reading <span class="screen-reader-text">Private? The false assurances of&#160;C++</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>Yet another reason I believe that C++ is the wrong language for teaching introductory programming. Because of the way classes are laid out in memory, it is <strong>trivial</strong> to show (a good thing), but it is also <strong>trivial</strong> to access those private member variables directly.</p>
<p>TLDR? &#8211; <a href="https://gist.github.com/mikehelmick/9634526">View the gist on github</a></p>
<p>Let&#8217;s break this down. We have a class called Point</p>
<p><a href="https://mikehelmick.files.wordpress.com/2014/03/point1.png"><img data-attachment-id="1410" data-permalink="https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/point1/" data-orig-file="https://mikehelmick.files.wordpress.com/2014/03/point1.png" data-orig-size="280,34" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="point1" data-image-description="" data-medium-file="https://mikehelmick.files.wordpress.com/2014/03/point1.png?w=280" data-large-file="https://mikehelmick.files.wordpress.com/2014/03/point1.png?w=280" class="alignnone size-full wp-image-1410" alt="point1" src="https://mikehelmick.files.wordpress.com/2014/03/point1.png?w=788" srcset="https://mikehelmick.files.wordpress.com/2014/03/point1.png 280w, https://mikehelmick.files.wordpress.com/2014/03/point1.png?w=150 150w" sizes="(max-width: 280px) 100vw, 280px"   /></a></p>
<p>The point class in this instance represents a 2D and has the <strong>private</strong> member variables of <strong>x</strong> and <strong>y</strong>.</p>
<p><a href="https://mikehelmick.files.wordpress.com/2014/03/point2.png"><img data-attachment-id="1411" data-permalink="https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/point2/" data-orig-file="https://mikehelmick.files.wordpress.com/2014/03/point2.png" data-orig-size="210,136" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="point2" data-image-description="" data-medium-file="https://mikehelmick.files.wordpress.com/2014/03/point2.png?w=210" data-large-file="https://mikehelmick.files.wordpress.com/2014/03/point2.png?w=210" class="alignnone size-full wp-image-1411" alt="point2" src="https://mikehelmick.files.wordpress.com/2014/03/point2.png?w=788" srcset="https://mikehelmick.files.wordpress.com/2014/03/point2.png 210w, https://mikehelmick.files.wordpress.com/2014/03/point2.png?w=150 150w" sizes="(max-width: 210px) 100vw, 210px"   /></a></p>
<p>If we have, say, a local variable (<strong>Point p;</strong>) we can do some basic calculations. This may be compiler / OS / architecture dependent, but this works in 32-bit linux w/ gcc on i386.</p>
<p><a href="https://mikehelmick.files.wordpress.com/2014/03/point3.png"><img data-attachment-id="1412" data-permalink="https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/point3/" data-orig-file="https://mikehelmick.files.wordpress.com/2014/03/point3.png" data-orig-size="852,100" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="point3" data-image-description="" data-medium-file="https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=300" data-large-file="https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=788" class="alignnone size-medium wp-image-1412" alt="point3" src="https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=300&#038;h=35" width="300" height="35" srcset="https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=300&amp;h=35 300w, https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=600&amp;h=70 600w, https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=150&amp;h=18 150w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>When we run this code, we see that the <strong>sizeof(point)</strong> is identical to the <strong>sizeof(int) + sizeof(int)</strong>. Since classes in C++ are based on structs in C. This is just a tight packing of the member variables.</p>
<p>And if the base pointer for <strong>&amp;p</strong> is <strong>0xa43c</strong> then we see that the address of x is the same, and y is off by 4 bytes (the size of an int).</p>
<p>Now &#8211; if we just try to access the private member variable directly, i.e. <strong>p.x = 27;</strong> the compiler will detect that we&#8217;re trying to do something bad and give us an error (good!).</p>
<p>However, through the magic of memory addresses and pointers we can change that. It is a simple cast. First we get a pointer to our instance of the Point class, and then we re-interpret that as a pointer to an int. From there we can start derferencing and using pointer math.</p>
<p><a href="https://mikehelmick.files.wordpress.com/2014/03/point4.png"><img data-attachment-id="1413" data-permalink="https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/point4/" data-orig-file="https://mikehelmick.files.wordpress.com/2014/03/point4.png" data-orig-size="700,386" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="point4" data-image-description="" data-medium-file="https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=300" data-large-file="https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=700" class="alignnone size-medium wp-image-1413" alt="point4" src="https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=300&#038;h=165" width="300" height="165" srcset="https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=300&amp;h=165 300w, https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=598&amp;h=330 598w, https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=150&amp;h=83 150w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>That&#8217;s it. A simple cast and some pointer math and private doesn&#8217;t mean anything. Who needs encapsulation anyway?</p>
]]></content:encoded>
							<wfw:commentRss>https://mikehelmick.com/2014/03/19/private-the-false-assurances-of-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
						
		<media:thumbnail url="https://mikehelmick.files.wordpress.com/2014/03/point4.png" />
		<media:content url="https://mikehelmick.files.wordpress.com/2014/03/point4.png" medium="image">
			<media:title type="html">point4</media:title>
		</media:content>

		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>

		<media:content url="https://mikehelmick.files.wordpress.com/2014/03/point1.png" medium="image">
			<media:title type="html">point1</media:title>
		</media:content>

		<media:content url="https://mikehelmick.files.wordpress.com/2014/03/point2.png" medium="image">
			<media:title type="html">point2</media:title>
		</media:content>

		<media:content url="https://mikehelmick.files.wordpress.com/2014/03/point3.png?w=300" medium="image">
			<media:title type="html">point3</media:title>
		</media:content>

		<media:content url="https://mikehelmick.files.wordpress.com/2014/03/point4.png?w=300" medium="image">
			<media:title type="html">point4</media:title>
		</media:content>
	</item>
		<item>
		<title>DRY, Shy and Tell the Other Guy</title>
		<link>https://mikehelmick.com/2014/03/18/dry-shy-and-tell-the-other-guy/</link>
				<pubDate>Tue, 18 Mar 2014 21:26:24 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://mikehelmick.com/?p=1405</guid>
				<description><![CDATA[It has been a little while since I&#8217;ve pulled out this article by the pragmatic programmers (Andy Hunt and Dave Thomas), Keep it DRY, Shy, and Tell the Other Guy. I&#8217;m going to use this in the first week of teaching CS 1 students classes (in C++) for the first time. To me, the critical &#8230; <a href="https://mikehelmick.com/2014/03/18/dry-shy-and-tell-the-other-guy/" class="more-link">Continue reading <span class="screen-reader-text">DRY, Shy and Tell the Other&#160;Guy</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>It has been a little while since I&#8217;ve pulled out this article by the pragmatic programmers (Andy Hunt and Dave Thomas), <a href="http://media.pragprog.com/articles/may_04_oo1.pdf" target="_blank">Keep it DRY, Shy, and Tell the Other Guy</a>.</p>
<p>I&#8217;m going to use this in the first week of teaching CS 1 students classes (in C++) for the first time. To me, the critical point is the &#8220;tell the other guy&#8221; part. The way they present it is the more useful of the OO metaphors. It isn&#8217;t <em>calling a function</em> on a object to achieve some goal. It is <em>sending a message</em> to some object, with <em>apathy towards the details</em> of how it is done.</p>
<p>I think this is the key to breaking from procedural programming and moving successfully towards object-oriented programming.</p>
]]></content:encoded>
									
		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>Bowling!</title>
		<link>https://mikehelmick.com/2013/10/24/bowling/</link>
				<pubDate>Thu, 24 Oct 2013 16:48:56 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.mikehelmick.com/?p=823</guid>
				<description><![CDATA[The students in my Computer Science 2 class have recently been coding a bowling scoring program. I decided to see what this looked like in Earlang. I spent over two years writing Earlang code (for work, yes I got paid), and really like the language. Now that I have this done, it makes the c++ &#8230; <a href="https://mikehelmick.com/2013/10/24/bowling/" class="more-link">Continue reading <span class="screen-reader-text">Bowling!</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>The students in my Computer Science 2 class have recently been coding a bowling scoring program. I decided to see what this looked like in Earlang. I spent over two years writing Earlang code (for work, yes I got paid), and really like the language. Now that I have this done, it makes the c++ look long winded and over-complicated with all the conditional checks.</p>
<p><a title="View bowling.erl on Github.com" href="https://gist.github.com/mikehelmick/7140554">https://gist.github.com/mikehelmick/7140554</a></p>
<p>&nbsp;</p>
]]></content:encoded>
									
		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>Big Changes Ahead</title>
		<link>https://mikehelmick.com/2013/06/27/big-changes-ahead/</link>
				<comments>https://mikehelmick.com/2013/06/27/big-changes-ahead/#comments</comments>
				<pubDate>Thu, 27 Jun 2013 21:23:43 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[Family]]></category>
		<category><![CDATA[Travel]]></category>

		<guid isPermaLink="false">http://www.mikehelmick.com/?p=784</guid>
				<description><![CDATA[And I mean big. Today, we are excited to announce many things, but all of them stemming from the first announcement. I have accepted a new job, and this new job is going to cause us to make another 2000 mile, cross country move. If you know me, you know that my dream has been &#8230; <a href="https://mikehelmick.com/2013/06/27/big-changes-ahead/" class="more-link">Continue reading <span class="screen-reader-text">Big Changes Ahead</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>And I mean big.</p>
<p>Today, we are excited to announce many things, but all of them stemming from the first announcement. I have accepted a new job, and this new job is going to cause us to make another 2000 mile, cross country move. If you know me, you know that my dream has been to work in academics, as a professor. I&#8217;ve been working on this dream for 15 years now. I took some detours, and I freely admit that I made some wrong turns along the way.</p>
<p>As proof (?) that hard work and persistence pays off, I have accepted the position of Associate Professor Educator of Computer Science and Informatics at the University of Cincinnati. Yes, that&#8217;s right, we&#8217;re moving back to Cincinnati. I am extremely lucky to be able to return to my hometown to teach and just as lucky to be able to return to the university that I earned my PhD from.</p>
<p>My new position is exciting for several reasons. Primarily, it&#8217;s the &#8220;educator&#8221; tag on the end of my title. My primary role at the University will be to teach. Teaching is what I love to do, and teaching computer science and software engineering is what can only be described as my dream job. School starts August 26th and I&#8217;ll be on campus starting on August 15th to get things ready and settle into my new role. For the truly curious, I&#8217;ll be teaching engineering models I, and computer science II this fall.</p>
<p>I&#8217;m very sad to be leaving my current position at Google. I mean, why would anyone ever leave Google? The only reason I can think of is to teach!</p>
<p>We are also sad to be leaving Seattle. Seattle has been our home for the last 5 and a half years. Seattle is an absolutely wonderful city, and if you&#8217;ve never been here your next vacation should be to the pacific northwest (July or August recommended). This city will always be a special place for us, and I&#8217;m sure that our son, Elliott will be proud to say that he&#8217;s from Seattle when he gets a little bit older. In particular I will miss being surrounded by the natural beauty of the area, water and mountains wherever you go. This area is one of the most beautiful places in the world. Also, the whole family (yes, Cortny too) will be bringing our 12th man jerseys with us, Go Seahawks!</p>
<p>In a lot of ways, Cincinnati is home, at least for me. I grew up in a suburb outside the city, moved into the city for college and worked downtown for a number of years. I spent the first 28 years of my life in Cincinnati, and I&#8217;m happy that our son will grow up where I did and more importantly that he (and any future children, no that&#8217;s not part of this announcement) will grow up around their extended family. I would say that Elliott will have his first skyline shortly after we move back, but of course he&#8217;s already had some.</p>
<p>Now, for some exciting details. We are already under contract to sell our house in Seattle and to buy one in Cincinnati. Both transactions close a little later this month, and we hope that everything continues to go smoothly in this department (remember, always work with a Realtor). In Cincinnati, we will be living in Anderson Township, not far from the intersection of Beechmont and Five Mile Rd. We think we&#8217;ve found an awesome house, and look forward to hosting our friends and families for random get togethers and pool parties. For the curious, pictures are available here: <a href="http://www.amybsells.com/your-new-home/?buyer&amp;listingid=RamblingHills">http://www.amybsells.com/your-new-home/?buyer&amp;listingid=RamblingHills</a></p>
<p>The movers are scheduled to pick up all our belongings in Seattle on July 29 and we&#8217;ll be sleeping on an air mattress until August 1st. That evening, we&#8217;ll be piling into the MINI Cooper and driving across the country Griswold style (moose out front should have told you). We&#8217;re planning on a 4 1/2 day trip, covering 2,400 miles by road with planned stops at Mt. Rushmore, Wall Drug (because I haven&#8217;t yet dug Wall Drug), and Antique Archaeology in Iowa.</p>
<p>To all our friends in Seattle. We&#8217;ll miss you, and if you want to get together before we leave, the clock is ticking!</p>
<p>To our friends and family in Cincinnati, we&#8217;ll see you soon.</p>
<p>To my future students, I apologize in advance for making you learn Erlang.</p>
]]></content:encoded>
							<wfw:commentRss>https://mikehelmick.com/2013/06/27/big-changes-ahead/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
						
		<media:thumbnail url="https://mikehelmick.files.wordpress.com/2013/06/uc_eng.jpg" />
		<media:content url="https://mikehelmick.files.wordpress.com/2013/06/uc_eng.jpg" medium="image">
			<media:title type="html">uc_eng</media:title>
		</media:content>

		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
		<item>
		<title>Half Marathon</title>
		<link>https://mikehelmick.com/2013/06/23/half-marathon/</link>
				<pubDate>Mon, 24 Jun 2013 04:25:37 +0000</pubDate>
		<dc:creator><![CDATA[mikehelmick]]></dc:creator>
				<category><![CDATA[Running]]></category>
		<category><![CDATA[Seattle]]></category>

		<guid isPermaLink="false">http://www.mikehelmick.com/?p=805</guid>
				<description><![CDATA[Yesterday, I ran my first 1/2 marathon, the Seattle Rock &#8216;n&#8217; Roll marathon and 1/2. I really decided to do this because the gym was offering a half marathon training class, so why not? My official time was 2:13:18. My personal goal was 2 hours, even though I knew that 2:10 was a more reasonable goal. &#8230; <a href="https://mikehelmick.com/2013/06/23/half-marathon/" class="more-link">Continue reading <span class="screen-reader-text">Half Marathon</span> <span class="meta-nav">&#8594;</span></a>]]></description>
								<content:encoded><![CDATA[<p>Yesterday, I ran my first 1/2 marathon, the Seattle Rock &#8216;n&#8217; Roll marathon and 1/2. I really decided to do this because the gym was offering a half marathon training class, so why not?</p>
<p>My official time was 2:13:18. My personal goal was 2 hours, even though I knew that 2:10 was a more reasonable goal. Through 10 miles, I was actually on pace to finish in 2:06. That&#8217;s sort have been my problem, I run the first few miles way too fast (7:30 &#8211; 7:45 pace). I&#8217;m sure that sustained speed will be achievable with more training.</p>
<p>How did I get here? Quickly.</p>
<p>Starting April 1st of this year, I hadn&#8217;t run longer than a mile since 2004. That&#8217;s right, I hadn&#8217;t done anything other than short runs in 9 years. And even in my previous attempts at amateur athletics, my distance topped out at 10K.</p>
<p>I can&#8217;t be anything but happy about bringing my run stance from 1 mile to 13.1 miles in under three months. I have a few things to credit for this. First, 5 years of yoga practice, that&#8217;s left me in decent shape to start with. Then a year of crossfit. And, the leaning challenge (that I wrote about before), dropping 20 pounds during my training is really what made this possible. I feel so much lighter when I&#8217;m running. Working with a running coach is also really valuable. The speed training and distance program was great. 8 weeks ago, my all out miles was 7:45 (I was surprised it was that fast), at the end of the program, I logged 6:32. That&#8217;s a number I&#8217;m really happy with. Stringing together fast miles, just needs more time.</p>
<p>In summary, I went from not running to finishing a half marathon with a respectable time in under 3 months.</p>
<p>What&#8217;s next?</p>
]]></content:encoded>
									
		<media:thumbnail url="https://mikehelmick.files.wordpress.com/2013/06/20130623_medal.jpg" />
		<media:content url="https://mikehelmick.files.wordpress.com/2013/06/20130623_medal.jpg" medium="image">
			<media:title type="html">20130623_medal</media:title>
		</media:content>

		<media:content url="https://1.gravatar.com/avatar/71a831b12c6042c4540a5d3667bb5a84?s=96&#38;d=wavatar&#38;r=PG" medium="image">
			<media:title type="html">mikehelmick</media:title>
		</media:content>
	</item>
	</channel>
</rss>
