<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rich Haase on Medium]]></title>
        <description><![CDATA[Stories by Rich Haase on Medium]]></description>
        <link>https://medium.com/@haaser?source=rss-7ce6d0e5200------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zZi2GDHIzeJPp0Ydzs8NLg.jpeg</url>
            <title>Stories by Rich Haase on Medium</title>
            <link>https://medium.com/@haaser?source=rss-7ce6d0e5200------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 15:39:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@haaser/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Code is for HUMANS]]></title>
            <link>https://medium.com/making-next-big-sound/code-is-for-humans-c97b146c1400?source=rss-7ce6d0e5200------2</link>
            <guid isPermaLink="false">https://medium.com/p/c97b146c1400</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Rich Haase]]></dc:creator>
            <pubDate>Sat, 26 Mar 2016 14:37:13 GMT</pubDate>
            <atom:updated>2016-06-08T00:43:37.661Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IuHPKHwRbJVwxiuiOK5tQ.jpeg" /></figure><p>The other day I was having a discussion with some coworkers about code style. I wanted us to implement style checking for all of our Java code. Not everyone agreed that code style was important, and the point was made that differences in code style were like a fingerprint for the programmer who wrote the code. At the time I didn’t have a good response. Yet I felt that this kind of uniqueness was a bad thing.</p><p>I’ve thought about it some more and I have come to a conclusion. <strong>The reason variance in code style is bad within an organization is that the code we write is for other people.</strong></p><p>This is an important point, so I am going to repeat it:</p><blockquote>Code is for humans. Programming languages are for the convenience of people, not for computers.</blockquote><p>If all of our code was written in the most optimized possible form for a computer we would write all of our software in binary. Maybe there’s someone out there who still does this, but most programmers use high level programming languages like C/C++, Java, Python, JavaScript, etc.</p><p>There are myriad articles about how code is read more often than it is written and that most programming jobs are more about maintaining existing software rather than writing completely new code. I don’t want to try and reproduce those articles. Instead I want to talk about what makes code readable.</p><p>If you agree that code is written for other people to read, then it follows that we should be optimizing our code for readability. This is where my argument in favor of style checking comes in to play. Having a common style for code allows you to ignore boilerplate and focus on logic.</p><p>Consider this terrible Java code:</p><pre>for ( int idx=0; idx&lt;limit; limit++ ) <br>{<br>  if (thing == null) <br>    throw ThingIsNullException;<br>  else {<br>    doThing();<br>  }<br>}</pre><p>Aside from the fact that this code doesn’t do anything, what makes this code so bad? It would compile. It’s syntactically correct. But it takes more time to read than it should because your brain is being forced to remember all the valid possible syntax for Java. If this code had a single style throughout you would be able to largely ignore the control structures and just think about what logical operations are being performed. This may not seem like much of a problem to you from that tiny snippet, but try to imagine a variety of styles across a million lines of Java. Think about how much extra cognitive load is being put on you when you have to read and comprehend all of the boiler plate. Imagine reading a novel written by multiple authors where each author wrote a paragraph or two, then handed the next section to another author who completely changed the style. This would make for a novel that was very hard to read because you’d be constantly adjusting to different writing styles instead of enjoying the story. Confusing your readers is not a nice thing to do in any medium.</p><p>This is why code style matters.</p><p>If everyone uses their own preferred style then eventually the code will look like a mess and any future programmer will have to take on the added cognitive load that comes with trying to read messy code.</p><p>Great. We’ve established that a problem exists. What’s the solution?</p><p>This is where things get a bit fuzzy. There are lots of opinions about what makes for “clean code”. Here’s my definition of clean code:</p><blockquote>Uniform style, proper use of language idioms, and clear <a href="https://en.wikipedia.org/wiki/Separation_of_concerns">separation of concerns.</a></blockquote><p>Having a uniform code style that is enforced by a style checker is the easiest of part of my definition to implement. Most programming languages have a mechanism for checking code style. Java has <a href="http://checkstyle.sourceforge.net/">checkstyle</a>, Python has <a href="https://pypi.python.org/pypi/pylint">pylint</a>, etc. <a href="http://blog.golang.org/go-fmt-your-code">Go went so far as to build style checking into the language</a> for many of the reasons I’ve discussed. So there is really no excuse for not having a uniform code style in an organization. Personally I think adopting the most commonly used code style of any language I use is the right approach, however<strong> having a uniform code style is far more important than the style itself.</strong></p><p>The rest of my definition is a bit more difficult to enforce since it requires experienced programmers rather than good tools. As anyone who has ever tried to learn a foreign language knows it’s hard work to learn the idioms of a language. However, once you learn the idioms of a language you are truly fluent and better able to communicate with native speakers of the language. The same is true in programming. Using idioms you learned in Lisp won’t necessarily translate to Java or Ruby. So it takes time and experience to learn to program idiomatically in any language. The is also true for learning how to use the abstractions of a language to properly separate concerns.</p><p>There are a couple of things you can do to improve the overall use, and quality, of idioms and abstractions. The first is code review. In a good code review process programmers can help each other make their code more idiomatic while making use of the right levels of abstraction. Pair programming is another tool that can be useful for creating clean code. I also find that writing unit tests can be very valuable. When I write tests I often find ways to improve the code I am testing. This isn’t quite as good as having another programmer look at my work, but it’s better than nothing. As an added bonus unit tests provide proof that my code works, and they can serve as examples of how the code should be used when the next programmer reads it.</p><p>Writing code that works is nice, but it’s not enough. Really great programmers write code that is simple for the next programmer who needs to use, modify, or maintain it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c97b146c1400" width="1" height="1" alt=""><hr><p><a href="https://medium.com/making-next-big-sound/code-is-for-humans-c97b146c1400">Code is for HUMANS</a> was originally published in <a href="https://medium.com/making-next-big-sound">Making Next Big Sound</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Questioning the American Dream]]></title>
            <link>https://medium.com/@haaser/questioning-the-american-dream-3e5d417b2a5?source=rss-7ce6d0e5200------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e5d417b2a5</guid>
            <category><![CDATA[first-world-problems]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[minimalism]]></category>
            <dc:creator><![CDATA[Rich Haase]]></dc:creator>
            <pubDate>Thu, 25 Feb 2016 02:35:51 GMT</pubDate>
            <atom:updated>2016-02-25T02:35:51.694Z</atom:updated>
            <content:encoded><![CDATA[<p>I was born in January of 1980. Depending on who you ask this either makes me one of the last of the Gen X-er’s, or one of the first of the Millennials. I’m not sure it matters in the context of this post, but I’ve heard it said that Millennials are <a href="https://www.google.com/webhp?sourceid=chrome-instant&amp;ion=1&amp;espv=2&amp;ie=UTF-8#q=minimalism%20millennials">trending towards minimalism</a>.</p><p>When I was growing up I remember hearing about the American dream. It was like a magical checklist for a successful life, and it went something like this:</p><ul><li>get a good education, so you can get a good job</li><li>get married</li><li>buy a nice house</li><li>get a pet</li><li>have 2.5 kids</li><li>retire comfortably</li></ul><p>Implicit in this dream is the idea that you should collect more, and more nice stuff. Just watch TV for half an hour. Both the shows, and commercials all suggest some new stuff that should get.</p><p>For me that list was one of those things you always heard. It’s kind of a social measuring stick. Something you could use to compare yourself to everyone else. The problem is that the older I get the less I want any of those things.</p><p>Let me explain. Or at least try to explain.</p><p>This time last year I had a large house, and lots of stuff to fill that house. I was also married, but that’s a totally different story. This year I live in an 850 square foot apartment, and I still feel like I have too much stuff. Why do I feel this way? Simple. I don’t use most of this stuff, <em>and I feel like I should</em>. I’m the custodian of all sorts of things I don’t even want!</p><h4>Education</h4><p>When I graduated from high school I was pretty certain that our education system was an complete f@&amp;%ing waste of time. I’m even more sure of that now. I failed, quickly, out of college due to lack of attendance, and started working as a low end techie in a law firm. I’ve always had an aptitude for math, and logic, so it didn’t take me long to find that I liked working with computers. Over the course of the following two decades I’ve built a successful career as a software engineer, and, picked up a CS degree along the way. It was a very expensive way to spend my evenings for 7 years.</p><h4>Jobs</h4><p>I’m passionate about my work. I think that’s important. If you work a minimum of 40 hours a week then, at least, a quarter of your life is spent working. I feel very fortunate that I have more than just a “good job”.</p><h4>Kids</h4><p>Since my early 20s I’ve known, not thought, <strong>known</strong> that I didn’t want to have kids. I have a wonderful niece, and nephew who I love dearly (thanks sis!). I just don’t want to have any of my own. I can’t tell you how many times I’ve heard</p><blockquote>just wait, you’ll want kids <em>&lt;insert knowing look here&gt;.</em></blockquote><p>Nope. Not me. Don’t we already have the makings of a population crisis? Shouldn’t people who want kids be thanking me for helping to make their kids future less crowded? I’m pretty sure I deserve a goddamn medal, or something.</p><h4>Pets</h4><p>I’ve had them. They are damn cute, and often cuddly. They also mess up your furniture, wake you up at night, and expect unreasonable shit like attention, and food, and a clean place to poop. Kind of like kids, except they’ll never pay for your nursing home under any circumstance. So, again, not for me.</p><h4>Marriage</h4><p>As mentioned above I’ve been married. I’m not anymore. The details are none of your business.</p><p>I’m not saying I’m opposed to marriage. Like most other humans I want to love, and be loved. I just don’t think it’s quite so simple. Maybe the choices are more nuanced than <em>be married</em>, or <em>endure an incomplete life</em>?</p><h4>Retirement</h4><p>Okay. You got me. I would like to retire comfortably to a Caribbean Island, or the south of France someday. The problem is that I don’t think the world works that way anymore. People are working further, and further into their old age. At least that’s true of my parents generation. Why would I assume it will be different for me? Sure, I save money. I even have 401Ks, plural. I’m just not sure that I will ever really get around to retiring. What’s more I’m not sure I’ll want to retire! I love the work I do. It’s fun for me. Why would I want to flat out stop doing something I love? Maybe it would be better for me to enjoy the south of France now. I bet I could even write some code on the plane.</p><h4>Minimalism</h4><p>To me the idea of being a minimalist is simple. All of the stuff I’ve accumulated distracts me from the things I really care about. <em>I feel that I should be doing something with all of the stuff I have.</em></p><p>To illustrate my point I’ll the share list of things I that really a <strong>need</strong> to own. It’s really short.</p><ul><li>Clothes</li><li>Laptop</li><li>iPhone</li><li>Messenger bag</li><li>Coffee pot</li><li>Bed</li><li>Couch</li><li>Comfy chair</li><li>Golf clubs?</li><li>TV/Playstation?</li><li>Car?</li></ul><p>I’ve spent hours staring at this list, because it seemed like there had to be more. Certainly there are other things that I need for my daily convenience, like a washer, and dryer. I left those off the list since I don’t absolutely need to own them. I rent them now, and presumably I could rent a lot more if I wanted. Seems to work for this <a href="http://sivers.org/gifts">guy</a>, why not me?</p><p>I doubt I will ever reduce my possessions to a list that small. However, it is an illuminating exercise to learn just how much of my stuff didn’t make the list.</p><p>This brings us to my point. I have spent a lifetime collecting stuff. Essentially, I have built a life around this idea of what my life <strong>should</strong> <strong>be</strong>. And I think I’ve been doing it wrong. So, I’m trying something new. I’m getting rid of all the excess stuff in my life.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMvgN5gCuLac%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMvgN5gCuLac&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMvgN5gCuLac%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/39c4d6970dd3f3f6112f925b411f4c96/href">https://medium.com/media/39c4d6970dd3f3f6112f925b411f4c96/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e5d417b2a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>