<?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 Matthew Oldham on Medium]]></title>
        <description><![CDATA[Stories by Matthew Oldham on Medium]]></description>
        <link>https://medium.com/@MattOldham?source=rss-c87295e8688e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yFR5WJmuzODJLTqVocqbRA.jpeg</url>
            <title>Stories by Matthew Oldham on Medium</title>
            <link>https://medium.com/@MattOldham?source=rss-c87295e8688e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 03:24:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@MattOldham/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[For the love of SQL: why you should learn it and how it’ll help you out]]></title>
            <link>https://medium.com/free-code-camp/for-the-love-of-sql-why-you-should-learn-it-and-how-itll-help-you-out-22fe307a253?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/22fe307a253</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Wed, 03 Apr 2019 21:22:53 GMT</pubDate>
            <atom:updated>2019-04-03T21:22:53.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdnZPs8tLOGbEfECpoh5Kg.png" /><figcaption>SQL Love — created with wordart.com</figcaption></figure><p>I recently read <a href="http://www.craigkerstiens.com/2019/02/12/sql-most-valuable-skill/">a great article</a> by the esteemed <a href="http://twitter.com/craigkerstiens">@craigkerstiens</a> describing why he feels SQL is such a valuable skill for developers. This topic really resonated with me. It lined up well with notes I’d already started sketching out for a similar article about developing a love for data.</p><p>The more I fleshed out my topic, however, the more I realized that many of my points and examples seemed to be centering around SQL. Reading Craig’s article convinced me to redirect my focus and talk more about why I personally have such an affinity for SQL.</p><p>In short, Craig makes the following assertions about SQL (and I quote):</p><blockquote>1. It is valuable across different roles and disciplines</blockquote><blockquote>2. Learning it once doesn’t really require re-learning</blockquote><blockquote>3. You seem like a superhero. You seem extra powerful when you know it because of the amount of people that aren’t fluent</blockquote><p>I’ve found all these points to be true in my own experience, and I’d like to recast and expand on each one.</p><h4>The Versatility Effect</h4><p>The SQL skillset has proven to be an extremely valuable asset in my career. In fact, I believe SQL to be the single most powerful and versatile “programming” language I know.</p><p>I have been able to use SQL to solve many problems, and it’s my go-to tool anytime I face a new challenge. In fact, I keep an instance of <a href="https://www.postgresql.org/">PostgreSQL</a> running on my laptop so I can quickly hop into my <a href="https://www.dbvis.com/">favorite SQL GUI</a> whenever I need to test something out.</p><p>Here are just some of the cool things I’ve been able to do with SQL:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEGgQut_GjK300Z_hEuKaA.png" /><figcaption>SQL FTW!</figcaption></figure><p>Are you having a hard time believing that list above? I promise you there’s not an ounce of exaggeration in it. Now, are there some items there that were dependent upon other capabilities of the RDBMS I was using at the time? Sure. Regardless, each of those solutions was implemented in SQL.</p><h4>The Bicycle Effect</h4><p>While Structured Query Language has certainly undergone changes and has been expanded over the years, I agree with Craig that the fundamentals have not changed. The overall level of volatility compared to other languages has been relatively low.</p><p>I would argue that this fact only strengthens the argument that one should invest the time to learn SQL. You can be confident that you’ll get a lot of mileage out of such an investment without having to look up the latest conventions the next time you need to use it.</p><p>So, learn SQL! Here are some great places to get started:</p><p><a href="http://www.sqltutorial.org/">SQL Tutorial - Essential SQL For The Beginners</a></p><p>There are even interactive tutorials:</p><p><a href="https://sqlbolt.com/">SQLBolt - Learn SQL - Introduction to SQL</a></p><p>There are also some versatile sandboxes out there that allow you to run SQL in various dialects without having to install anything. For example, <a href="http://sqlfiddle.com/">SQL Fiddle</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*3e6M7ZrgRVWDNrsaU-y_vg.png" /><figcaption>SQL Fiddle</figcaption></figure><p>Or, <a href="https://www.db-fiddle.com/">DB Fiddle</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*ENe-VUn-Fws9evlzYVtjdw.png" /><figcaption>DB Fiddle</figcaption></figure><h4>The Superhero Effect</h4><p>I remember a colleague once saying he broke into a cold sweat every time he had to write SQL. 😂</p><p>It sounds exaggerated, but SQL can be intimidating to anyone who properly regards the database as the sensitive asset it is and is not familiar with how to safely interact with it. SQL, being one of the adults in the room, also doesn’t get as much attention as other shiny new programming languages. That means that it remains a less common skillset among contemporary and emerging developers.</p><p>As such, having a solid understanding of SQL and the insight to see the set-based facets of a given problem or challenge provides the opportunity to be a hero.</p><p>One of my favorite personal experiences was helping a customer debug a slow and complex <a href="https://en.wikipedia.org/wiki/SAS_(software)">SAS</a> program. The goal of this program was to extract a list of state transitions from an audit table in order to measure the mean duration a widget spent in each phase of a given business workflow. The implementation of these calculations was complex and required building multiple local data sets.</p><p>I remember reverse engineering this program and realizing that I could solve the problem much more easily using a single SQL query and the magical <a href="http://www.sqltutorial.org/sql-window-functions/sql-lag/">LAG</a> window function.</p><p>The customer was simply blown away.</p><p>Not just because he learned about the LAG function, but because he saw just how powerful SQL can be.</p><p>An even more dramatic example was during a large data warehouse migration where I replaced an entire Java program (that took more than 20 minutes to complete!) with a single SQL query that ran in seconds. The original author of the program was shocked! That was a really good day. 🙂</p><p>So, I encourage you to dive into SQL today and broaden your skillset with one of the most versatile tools I’ve had the pleasure of working with. If you already know SQL and agree, or if I’ve convinced you to give it a try, please consider leaving me a few 👏s below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22fe307a253" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/for-the-love-of-sql-why-you-should-learn-it-and-how-itll-help-you-out-22fe307a253">For the love of SQL: why you should learn it and how it’ll help you out</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to deal with difficult people]]></title>
            <link>https://medium.com/swlh/how-to-deal-with-difficult-people-907f2f90c422?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/907f2f90c422</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[relationships]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Thu, 14 Mar 2019 06:06:00 GMT</pubDate>
            <atom:updated>2019-03-14T06:06:00.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SM6Uf4VRU8auqXiK" /><figcaption>Photo by <a href="https://unsplash.com/@knobelman?utm_source=medium&amp;utm_medium=referral">Yaniv Knobel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>We all face them, eventually. Maybe it’s a boss, a coworker, a customer, or even a relative. They’re just difficult people. Thorny, short-tempered, moody, negative…pick your adjective.</p><p>I know I face them. In my capacity as a software engineer for a startup company, I get to interact with all sorts of personalities and meet people across the nation in a broad range of roles such as analysts, programmers, physicians, hospital administrators, and c-level executives. What a privilege it is to meet so many amazing people — even though mostly in a virtual capacity — and to get a tiny glimpse into such an incredible variety of environments. Most of these fine folks are very easy to work with, but there is certainly the occasional prickly pear.</p><p>I’ve found that most of the challenging individuals I meet are simply products of these respective environments, and have consequently adapted to their toxic cultures by building defense mechanisms to protect them in the face of challenge, criticism, or attack.</p><p>It should come as no surprise, then, that the real hurdle to get over with such people is trust. Their trust has been compromised in the past, and therefore it’s no longer freely dispensed to newcomers. It makes sense when you think about it.</p><p>How do we break through this barrier?</p><p>The avenue through which trust is usually formed is relationship. The challenge in a normal business setting is that there is sometimes very little time or opportunity to build relationship. Digging deeper, what is it about relationship that allows trust to develop? I believe it’s the simple repetition of one person observing how another person behaves and responds. When a person’s positive behavior becomes somewhat consistent and predictable, there is less of a perceived risk in extending trust to that person.</p><p>Said another way, we must show ourselves trustworthy. But how?</p><h4>Honor the person.</h4><p>In a <a href="https://medium.com/@MattOldham/appreciating-people-isnt-hard-here-s-how-to-do-it-in-3-simple-steps-f2468f33ccf3?source=friends_link&amp;sk=bc9805100319a6228d95759e51ff65a1">prior article</a> I wrote about this fundamental principle. Honor is one thing that you can and should show every single person with whom you come in contact. The simple reason for this is that every person has inherent value because they are human beings. Their value, therefore, lies in their personhood, not in their behavior. When facing a difficult personality, there are several ways to show honor.</p><p>The easiest among these is listening. Listen intently to the things they say and be prepared to respond thoughtfully. A thoughtful response will demonstrate that you’re not just tolerating them while you wait for your turn to speak.</p><p>When you do respond, do so respectfully. Showing respect to the individual is a form of honor whereby you consider that they have a unique perspective and contribute valuable history and experience to both the conversion and relationship. Their experience is unique and deserves due deference.</p><p>Lastly, exercise what I call the <strong>mercy/humility rule</strong>. Whey they are wrong about any particular matter, show them mercy. When you are wrong, show humility. The point is that you make room for both their mistakes and your mistakes. Enter every interaction with the keen awareness that both parties have a limited perspective.</p><h4>Be real.</h4><p>Fake is noisy, and fake is really obvious to people who have been burned in the past. When you’ve already chosen to honor a person, regardless who he or she may be, it becomes much easier to be yourself. Get rid of pretense and airs, and just be a real person. Genuineness is what people are looking for, after all, so there’s really nothing to be gained by manufacturing a persona.</p><p>Don’t expect reciprocation here, by the way. That protective mechanism in the other person will likely be in full effect, and one of the manifestations of it can be pretense. Don’t let it throw you off. Determine to be yourself, regardless.</p><h4>Challenge them.</h4><p>Really? Yes! Here’s what I mean. Often a difficult person will be armed with oppositional ammo when they enter a conversation. This can range from negativity and apathy to counter-arguments (valid or not) to all your points.</p><p>To challenge them is to ask them questions and make them backup their claims or produce evidence. Not in a disrespectful or provocative manner, but in a fair and respectful way. I learned this method by watching others achieve success in difficult conversations.</p><p>They would say things like:</p><ul><li>I’d love to see what you’re describing. Would you be willing to share some examples?</li><li>I’d love to learn more about what caused that to happen. When can we schedule more time to discuss this?</li><li>Could you put me in touch with someone on your team who can perhaps share more details on what actually happened?</li><li>Would you be willing to document that in an email so I can research it further?</li><li>If that’s happening, we need to get it resolved. What steps would you like to see us take next?</li><li>I’d love to work through this with you and make things better.</li></ul><p>Responses like these demonstrate that you’re taking them seriously. It doesn’t mean that you’re acknowledging all their claims and arguments are valid. Rather, it shows that you’re willing to listen and invest the time necessary to address their concerns. Sure, this may be committing you to more time with the difficult person, but this is how you break through. Small, consistent investments in the relationship that add up over time.</p><h4>Do what you say.</h4><p>My very first job in the IT industry was with a manufacturing company that had, as one it’s core values, the statement, “Say what we do, and do what we say.” The intent of this statement was the core principle of integrity. You live this principle out by following up, responding, and delivering on the things you committed to deliver in a timely manner. This shows them that <em>you’re</em> serious.</p><p>Building trust is about showing yourself reliable. Be proactive in reaching out to continue the conversation. It’s one thing to survive a single interaction with a difficult person, but it’s another thing altogether to take the first step in re-engaging with that person and being willing to face them as many times as necessary. Do the hard things.</p><h4>Conclusion</h4><p>There’s no avoiding difficult people in life. Remember that the road to building trust with someone can feel long, and you may never reach the destination. But, I believe that sticking to these practices is the shortest path to success where success is achievable. Practicing these things consistently will also help you level up your people skills, regardless of the personalities you face.</p><figure><a href="https://medium.com/swlh"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqDjlKFwScoQYQ62DWEdig.png" /></a></figure><h4>This story is published in <a href="https://medium.com/swlh">The Startup</a>, Medium’s largest entrepreneurship publication followed by +434,678 people.</h4><h4>Subscribe to receive <a href="https://growthsupply.com/the-startup-newsletter/">our top stories here</a>.</h4><figure><a href="https://medium.com/swlh"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouK9XR4xuNWtCes-TIUNAw.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=907f2f90c422" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-to-deal-with-difficult-people-907f2f90c422">How to deal with difficult people</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why creating a README has become my favorite part of development]]></title>
            <link>https://medium.com/free-code-camp/why-creating-a-readme-has-become-my-favorite-part-of-development-7342e1c20220?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7342e1c20220</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Mon, 04 Mar 2019 16:22:57 GMT</pubDate>
            <atom:updated>2019-03-04T16:22:57.153Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3NIuu5ASZCR57ICV" /><figcaption>Photo by <a href="https://unsplash.com/@rawpixel?utm_source=medium&amp;utm_medium=referral">rawpixel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Confession and Resolution</h4><p>My approach used to be total procrastination, and I would wait until the end of a project (if at all) to address documentation. By the end of any decent-sized project, I felt overwhelmed going back to the start of what I had built in order to document it well.</p><p>I even found that my mediocre documentation attempts were failing at times simply because I had lost touch with the evolutionary subject matter understanding I had developed over the course of the project. This evolutionary knowledge is really, really important to capture, because it represents the ingredients for accurate documentation.</p><p>In my ongoing effort to do hard things well, creating good documentation for my projects is something I’ve made a priority. While it may sound tedious or onerous, I have discovered that starting every new development effort with a simple README has completely changed my perspective on documentation.</p><p>I now consider this approach my own mini version of <a href="http://tom.preston-werner.com/2010/08/23/readme-driven-development.html">Readme Driven Development</a>. In fact, it’s become my favorite part of development. Okay, maybe that’s a <em>bit</em> hyperbolic, but this step is certainly among my favorite parts of development. When I cross the finish line on a project and find that the documentation is there waiting on me, 100% complete, it’s a great feeling!</p><p>Why have I become such a fan of the README?</p><h4>It encourages me to start any new project with documentation.</h4><p>We all know that documentation is not considered the most glamorous part of a developer’s life, but we can probably all agree how thankful we are to find existing documentation when we peek into a new code base for the first time. What better way to encourage yourself to document the actual code than by making documentation the first commit to your repo?</p><p>Unlike some developers who are always working on the same type of codebase, I don’t always know what my project directory structure will look like, but I know for sure that documentation is <em>always</em> appropriate.</p><p>These days, the README is my first commit to any new project repository. By committing to put meaningful content in the README at the beginning of a project, I now have a place to capture everything I learn about the project as I learn it.</p><p>And, I’m not just talking about an empty README file so that git add has something to work with. I mean a solid first stab at real, meaningful documentation. I capture everything I know about the project and list every task I can think of. It serves as an ongoing means of reinforcing my understanding of the project and deliverables.</p><p>As a general guideline, here are some easy things to consider including in your first README commit, in no particular order:</p><ul><li><strong>Dates</strong>: Any important dates for this project, such as start date, delivery deadline, or other important milestone dates.</li><li><strong>Author</strong>: This is you! At a minimum, include your name, company (if applicable), and email address.</li><li><strong>Reference Info:</strong> Any relevant project links such as issue lists, background documentation, or reference materials for any newcomer to the project.</li><li><strong>Purpose/goals</strong>: Why is this thing a project? What is the objective and what are the goals by which success can be measured?</li><li><strong>FAQ</strong>: Often an afterthought, FAQs represent some of the most important things to document. List as many as come to mind and then grow this list as new ones arise.</li><li><strong>Conventions</strong>: Less common, but any unique conventions that others may need to understand before digging in.</li><li><strong>License information</strong>: This will likely accompany a real <a href="https://choosealicense.com/">LICENSE file</a> that contains the nitty gritty details, but it never hurts to reiterate the usage restrictions on the intellectual property contained in the repository.</li><li><strong>Todos</strong>: An ongoing list of things that need to be completed for this project to be a success.</li></ul><h4>Bonus: I get to use Markdown, and Markdown is awesome.</h4><p>The general convention for README documentation is <a href="https://en.wikipedia.org/wiki/Markdown">Markdown</a>. If you’ve never used Markdown, I highly recommend learning it. Markdown is a very easy way to transform your plain text files into nicely formatted documentation. Armed with only your text editor and a handful of new syntax conventions you can create very impressive documents without ever opening MS Word or Google Docs. Exporting HTML or PDF is also very easy.</p><p>Markdown has some really cool features. All the essentials are there: Tables, bulleted lists, hyperlinks, inline images, anchors and bookmarks, text formatting, and even more complex things like flowcharts and diagrams. Remember that Todo list I mentioned earlier? You can present those as checkboxes and then check them off as you complete them.</p><p>I’ve just scratched the surface of the capabilities of Markdown. Here are several great references to check out that will give you a much better idea what you can accomplish:</p><ul><li><strong>Markdown Tutorial</strong>: <a href="https://www.markdowntutorial.com/">https://www.markdowntutorial.com</a></li><li><strong>GitHub Markdown Guide</strong>: <a href="https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf">https://guides.github.com/pdfs/markdown-cheatsheet-online.pdf</a></li><li><strong>Mastering Markdown</strong>: <a href="https://guides.github.com/features/mastering-markdown/">https://guides.github.com/features/mastering-markdown/</a></li><li><strong>Markdown Guide</strong>: <a href="https://www.markdownguide.org/">https://www.markdownguide.org</a></li></ul><p><a href="https://code.visualstudio.com/">Visual Studio Code</a> is my text editor of choice, and there are some great extensions that support Markdown. My personal favorite is <a href="https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one">Markdown All In One</a>.</p><p>As of the time of this writing, it’s the most downloaded and is actively maintained. Among other features, it offers real-time preview and intuitive keyboard shortcuts. Other Visual Studio Code extensions offering similar functionality can be found <a href="https://marketplace.visualstudio.com/search?term=markdown&amp;target=VSCode&amp;category=All%20categories&amp;sortBy=Relevance">here</a>.</p><h4>Conclusion</h4><p>I’m sure you’ve been there before. Looking at code that you’re 99% sure you’ve <strong><em>never</em></strong> seen before, yet your name is on it as the author. Things always have a way of coming back around. Always. Long after the project is over, it’s very likely that the documentation you create will be as much a part of your legacy as the source code itself.</p><p>If you’re looking to up your documentation game, I highly recommend starting your next project with a README. This approach has really helped me to strengthen my deliverables and level up my own contributions to projects. Even if you try it and don’t like it, at least maybe you’ll end up with better Markdown skills. Even that makes it worth the effort.</p><p>Are you convinced? If I’ve even partially convinced you to give it a try, please leave me a few claps below. Still not convinced? Leave me a comment below and let’s start a dialogue!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7342e1c20220" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/why-creating-a-readme-has-become-my-favorite-part-of-development-7342e1c20220">Why creating a README has become my favorite part of development</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The power of punctuality]]></title>
            <link>https://medium.com/swlh/the-power-of-punctuality-75513700ceb5?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/75513700ceb5</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[time-management]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[life-lessons]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Mon, 04 Mar 2019 15:59:38 GMT</pubDate>
            <atom:updated>2019-03-04T15:59:38.035Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PNtg-I8i_nKa8aPR" /><figcaption>Photo by <a href="https://unsplash.com/@andybeales?utm_source=medium&amp;utm_medium=referral">Andy Beales</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>You’ve probably heard this saying before, in one form or another:</p><blockquote>“Being early is being on time. Being on time is being late.”</blockquote><p>This is how I live my life. I simply cannot stand to be late for anything. For some it can seem extreme. After all, why show up early if there is a published “start time”.</p><p>I get it.</p><p>I have to admit that punctuality is never something I struggled with. I’m not sure why, honestly. Perhaps it’s because when I was a kid I was always curious and never wanted to miss out on anything. I would consequently be <em>there</em> (wherever there was) waiting to find out what happened next.</p><p>It’s not surprising, then, that lack of punctuality turned out to be one of my biggest pet peeves. It’s always bothered me. I had a hard time articulating why it was such an annoyance until one day when a colleague expressed a similar frustration. He simply stated, “This is disrespectful of my time.”</p><p>Yes! That’s the real issue, I think.</p><p>By not showing up on time, I’m essentially saying that I don’t respect other people’s time enough to <em>not</em> keep them waiting. I’m also sending a subtle message that I am not the most reliable person.</p><p>Not cool. Not for me, anyway.</p><p>Being on time has served me well. I can also say from experience that a consistent habit of never being late has a positive effect on those around me. Even more, though, I believe that my consistent punctuality demonstrates several powerful truths about me that will speak louder than my words.</p><h4>Punctuality shows initiative.</h4><p>By arriving on time, I show that I planned in advance, which means I woke up on time, arranged my schedule accordingly, and did what was necessary to be present. That’s initiative. No one had to remind me to set my alarm clock, no one had to remind me to consider my commute time, and no one had to remind me when and where to show up. This is a simple form of initiative, and initiative is a strength for which I want to be known.</p><h4>Punctuality shows discipline.</h4><p>If I can arrive on time consistently, I’ve demonstrated that— at least in some small way — I am a disciplined person. Again, discipline is one of those things for which I want to be known. It speaks to my willingness and ability as a human being to face the hard things.</p><h4>Punctuality shows commitment.</h4><p>When I am on time, I demonstrate they I’m committed to the task at hand. I did what it took to clear obstacles that would have prevented me from my obligation to be present when I am expected. Commitment comes in many forms and can be expressed in many ways, but I believe an argument can easily be made that it starts with punctuality. Showing up, and showing up on time.</p><h4>Easy solution to consistent tardiness.</h4><p>This is a novice tip and pro-tip all rolled into one. As a kid I was taught that if someone is consistently 15 minutes late, the simple solution is to start 15 minutes earlier than normal. There, problem solved.</p><p>Always arriving at work at 8:15 instead of the desired 8:00? What time did you wake up? Set your alarm 15 minutes earlier than normal. Too hard to wake up? Go to bed 15 minutes earlier. It’s really not that hard 😄</p><p>I even remember a period of time as a teenager where I set the time on my alarm clock 15 minutes ahead so that I always had a built in late buffer. If that sounds too simple to be true, I challenge you to try it.</p><p>You can do it, I promise! 👍</p><h4>Conclusion</h4><p>I believe one of the easiest way to demonstrate you are a reliable person is to always show up and never be late. Sure, there’s a lot more that goes into being a reliable contributor on a team, but showing up is definitely half the battle. If you can do this consistently, your team members will learn quickly that you are a committed member whom they can trust.</p><figure><a href="https://medium.com/swlh"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YqDjlKFwScoQYQ62DWEdig.png" /></a></figure><h4>This story is published in <a href="https://medium.com/swlh">The Startup</a>, Medium’s largest entrepreneurship publication followed by +431,678 people.</h4><h4>Subscribe to receive <a href="https://growthsupply.com/the-startup-newsletter/">our top stories here</a>.</h4><figure><a href="https://medium.com/swlh"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ouK9XR4xuNWtCes-TIUNAw.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75513700ceb5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-power-of-punctuality-75513700ceb5">The power of punctuality</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Prioritization]]></title>
            <link>https://medium.productcoalition.com/the-power-of-prioritization-9e8fbe245114?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e8fbe245114</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Tue, 12 Feb 2019 11:57:54 GMT</pubDate>
            <atom:updated>2019-02-14T23:29:37.452Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KcSEbT1P6hcI-8gA" /><figcaption>Photo by <a href="https://unsplash.com/@jruscello?utm_source=medium&amp;utm_medium=referral">Jessica Ruscello</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4><strong>Task tedium.</strong></h4><p>This is what I call my daily battle with a seemingly insurmountable list of tasks. I feel it captures the state in which I constantly find myself. Facing a pile of to-dos that only grows and never seems to shrink.</p><p>And it truly is a battle. How to manage them, how to organize them, and (most difficult) how to prioritize them.</p><p>From the strategic and complex to the tactical and mundane. My list has them all. Much like naming things in software engineering is hard, I feel that task management is one of those hard things in life.</p><p>Task management is the subject of much debate, pontification, and prescriptive writing. Every time I see the clickbait phrase “task management” in a newsletter or publication, I’m hooked. I recognize it as something I struggle with, so I read as much as I can about it in order to improve.</p><p>There are also a lot of things on my task list that are important. In fact, I would argue that most of them are important, otherwise I would never have included them. This is why it’s critical to prioritize, so that the truly <em>most</em> important things can get done first.</p><p>The one thing I often find missing from the advice I read is on the <em>prioritization</em> aspect of task management. It makes sense if you think about it. An outsider can’t really offer advice on how to prioritize, because much of the determination for doing so is based on context they simply don’t have. It makes sense, then, that prioritization is the part I struggle with most.</p><h4><strong>Light Bulb.</strong></h4><p>I recently had a conversation with a colleague whom I greatly respect and enjoy working with. The subject matter of that conversation was a difficult one where we were trying to figure out how to handle multiple, important tasks that were competing for our time and attention. As we were talking, I received a missive from someone else who had an “urgent” request. I think I even said it out loud, “You’ve got to be kidding!”.</p><p>In the heat of that moment, my colleague said something that made us both pause:</p><blockquote>“Hang on — the person who made this request does not get to determine our priorities.”</blockquote><p>Yes!</p><p>At that moment everything changed. The point he was making is that our priorities had already been pre-determined based on goals that were set outside the context of this particular request. That meant the requestor could not (or should not) be allowed to alter our current focus or direction. They come second. Or third. Or later.</p><blockquote>“That which defines also divides.” — Scott Wilder of Texas</blockquote><h4><strong>The power of saying no.</strong></h4><p>By defining our priorities, we are not only saying one thing <strong>is</strong> a priority — we’re also saying some other thing <strong>is not</strong> a priority, at least not immediately.</p><p><strong>Essentially, prioritizing gives us the power say no.</strong></p><p>Prioritizing also tells us <em>when</em> we can say no. Or at least, when we can say, “not right now, but maybe later”. That doesn’t mean a given item is not important. It simply means I can only accomplish one thing in this moment, and that thing will not be what you want it to be.</p><p>Saying no is quite liberating. The amount of stress that is relieved when you say no is significant. In that moment with my colleague, we were able to completely defuse the most stressing thing on our list by simply saying no.</p><p>Saying no also sets expectations that there are boundaries around my time. Without boundaries, there’s no way to guarantee any task gets the attention it deserves, and therefore there’s no way to guarantee any task will ever be completed.</p><p>The next time you find yourself inundated with important tasks, it’s critical to step back and do whatever you have to in order to prioritize them. Many times there is no right answer. Sometimes the answer may just be to pick one and go with it. Time will tell if you‘ve chosen wisely, but at least you’ll be making forward progress. With priorities defined, you are now equipped for success against the mountain of tasks facing you. You are empowered to stay focused because you know what’s most important right now. When a competing priority tries to interrupt, you have the power to say no.</p><p>Do you find this article helpful? If so, please clap or leave me a comment below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e8fbe245114" width="1" height="1" alt=""><hr><p><a href="https://medium.productcoalition.com/the-power-of-prioritization-9e8fbe245114">The Power of Prioritization</a> was originally published in <a href="https://medium.productcoalition.com/">Product Coalition</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to produce meaningful datasets using only SQL]]></title>
            <link>https://medium.com/free-code-camp/how-to-produce-meaningful-datasets-using-only-sql-394c4781a5e0?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/394c4781a5e0</guid>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[testing]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 16:46:11 GMT</pubDate>
            <atom:updated>2019-01-29T16:46:11.803Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3CLMHKUNd16QPA7p" /><figcaption>Photo by <a href="https://unsplash.com/@mbaumi?utm_source=medium&amp;utm_medium=referral">Mika Baumeister</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Have you ever needed to seed a database with random, yet realistic, data for the purposes of testing, demonstration, or training? It’s a very common requirement, and one I have faced many times.</p><p>It doesn’t take long in the development timeline before someone needs to test with “real” data. Since my role in past projects has almost exclusively been oriented around the data tier of whatever solution was being created, this responsibility rested primarily on my shoulders.</p><p>Where did I turn? Naturally, to the programming language I knew best: <a href="https://en.wikipedia.org/wiki/SQL">SQL</a>.</p><p>It’s pretty amazing — no, fascinating — what you can accomplish out of the box with SQL. Sure, there are some great libraries out there now that can assist with this task. One of my favorites, in fact, is <a href="https://www.npmjs.com/package/faker">faker.js</a>. I have actually converted many of the examples described below to JavaScript using faker.js.</p><p>The goal of this article, however, is to demonstrate what you can accomplish with SQL alone. Before utilities like this existed, SQL was all I had to work with, and working through challenges like these helped me develop a deeper appreciation for the power of SQL. I’m hoping it does the same for you!</p><h4>Conventions and Tools</h4><p>My local testing environment is PostgreSQL on OSX, and all the following tips are primarily written in PG dialect. Many of these tips can be adapted to other relational database platforms or SQL dialects. If you find one in particular that you need help converting, I am happy to help, just drop me a comment.</p><p>You will see that I make fairly regular use of <a href="https://www.postgresql.org/docs/current/queries-with.html">Common Table Expressions</a> (CTE), also known as <em>WITH </em>clauses. I highly recommend you learn about them and use them regularly as well. CTEs are very powerful and serve as building blocks for complex logic that ultimately make such queries very readable and maintainable.</p><p>Other than that, I have a very strong preference for SQL styling that will become pretty clear. Right-aligned and uppercase keywords, uppercase names for built-in functions, etc.</p><p>While all the code below is demonstrated using the PostgreSQL <a href="https://www.postgresql.org/docs/current/app-psql.html">psql command line</a>, you may find it more convenient to use a GUI client that suits your preferences. Also, you’ll need to install PostgreSQL!</p><p><em>Note: Though you can certainly run SQL queries using tools like </em><a href="https://www.db-fiddle.com/"><em>db-fiddle</em></a><em> or </em><a href="http://www.sqlfiddle.com/"><em>sqlfiddle</em></a><em>, many of my queries will actually require creating functions. Unfortunately, I was unsuccessful in attempts to create my functions using those tools. I welcome any comments with suggestions on how to make that work correctly.</em></p><p>For the quickest path to a local PostgreSQL environment on MacOS, here are a couple of tools I recommend:</p><h4><strong>Postgres.app</strong></h4><p><a href="https://postgresapp.com/">Postgres.app</a> will install PostgreSQL as a native application, and is the easiest way to get up and running quickly while also supporting multiple parallel versions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d_An-3rcPVBZ5GAGcU4qvw.png" /><figcaption>Postgres.app with multiple versions</figcaption></figure><p>Postgres.app is also accessible from the menu bar, allowing you to quickly start/stop PostgreSQL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*esoOzqf7YuMo4kxaX8iwkw.png" /></figure><h4><strong>Postico</strong></h4><p>Developed by the same folks as Postgres.app, <a href="https://eggerapps.at/postico/">Postico</a> is a very simple, yet elegant, UI for PostgreSQL. There are a number of other good graphical clients out there, and I personally use <a href="https://www.dbvis.com/">DBVisualizer</a> for most of my development work. Postico, however, is a free client that makes getting up and running very easy. While there are some limitations in the trial version, there is no time limit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tkaRdOGvpTpDh5REtjqddA.png" /><figcaption>Postico</figcaption></figure><p>With those formalities out of the way, let’s dive into the main content.</p><h4><strong>Basic random value</strong></h4><p>The simplest building block for randomization in PostgreSQL is the random function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/78eec8e2a1f429e80d96840b5289c71e/href">https://medium.com/media/78eec8e2a1f429e80d96840b5289c71e/href</a></iframe><p>According to the <a href="https://www.postgresql.org/docs/current/functions-math.html">PostgreSQL documentation</a> the random function returns a “random value in the range 0.0 &lt;= x &lt; 1.0”.</p><p>Building on this simple function, can we generate a random value in a different specified range, like 1 and 100?</p><h4><strong>Random value in a given range</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d8394b195a476e0f39747de1e6e91da7/href">https://medium.com/media/d8394b195a476e0f39747de1e6e91da7/href</a></iframe><p>Nice. To make this reusable for other scenarios that will build upon it, let’s convert it to a function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/67f6408e4efb35872e394246f3946990/href">https://medium.com/media/67f6408e4efb35872e394246f3946990/href</a></iframe><p>Now, let’s test it out:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b4f5731c73274d1b8a22d67284f47c32/href">https://medium.com/media/b4f5731c73274d1b8a22d67284f47c32/href</a></iframe><p>Very cool. Can we get random integers instead of decimals?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ad2e73ee34df1f06b450e9a03783ff9/href">https://medium.com/media/0ad2e73ee34df1f06b450e9a03783ff9/href</a></iframe><p>Great! Now we have something we can use in multiple scenarios. Let the real fun begin!</p><h4><strong>Random boolean values</strong></h4><p>With our new randomNumber function, Booleans now become very easy as well since PostgreSQL recognizes 0as false and 1 as true.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/87a818aebbde4073885c6b3104253b90/href">https://medium.com/media/87a818aebbde4073885c6b3104253b90/href</a></iframe><p>Let’s turn this one into a function as well, which will come in handy very shortly:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72a49192c5e2d183f048d975c93d483d/href">https://medium.com/media/72a49192c5e2d183f048d975c93d483d/href</a></iframe><p>Now let’s give this a trial run to make sure it’s working like we expect:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7c5f861f7a390b405d57442885565d5/href">https://medium.com/media/b7c5f861f7a390b405d57442885565d5/href</a></iframe><p>Half of the random boolean values are TRUE and half are FALSE — perfect!</p><h4><strong>Weighted random booleans</strong></h4><p>Many times you need to simulate authentic variation in your seed data, and weighting is one way to accomplish this. For example, I may want to generate boolean values for a population of data where the majority of values should be false. We’re going to accomplish this with yet another function so that we can easily reference it in SQL:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fdea94ded2777a016b5d7c3ce8e5dd0/href">https://medium.com/media/4fdea94ded2777a016b5d7c3ce8e5dd0/href</a></iframe><p>Now, let’s return to my previous hypothetical scenario. If I want the false values to be the majority, I can simply pass in a lower trueWeight. Since our base randomNumber function returns values between 0and 1, I’ll need to represent trueWeight as a decimal “percentage”. The other part of testing this out is to generate enough values to determine if my weighting logic is working sufficiently over a larger population. For this we’ll use the extremely handy PostgreSQL function <a href="https://www.postgresql.org/docs/current/functions-srf.html">generate_series</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c366151b237e424eabbf6ec78ea02a7e/href">https://medium.com/media/c366151b237e424eabbf6ec78ea02a7e/href</a></iframe><p>So, across 100 iterations, our weighted boolean function generated approximately 75% false values!</p><h4><strong>Random row(s) from a table</strong></h4><p>Another interesting facet of the random function is that is can be used in the ORDER BY clause. Let’s take a look at an example by generating a sample data set (again, using generate_series) with and without a randomized ordering.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e148bd9bb0c3704bbf49f2c6b6ca44cb/href">https://medium.com/media/e148bd9bb0c3704bbf49f2c6b6ca44cb/href</a></iframe><p>Pretty cool! Now we can easily grab a random, single row from any given data set using the <a href="https://www.postgresql.org/docs/current/queries-limit.html">PosrgresSQL LIMIT</a> clause:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/667e0d6399c66b229bcd7a02c77e22e3/href">https://medium.com/media/667e0d6399c66b229bcd7a02c77e22e3/href</a></iframe><h4><strong>Random value from an enumerated list</strong></h4><p>This is one of the most common scenarios I have run across. We need randomized data, but the values should be restricted to an enumerated list that we know in advance.</p><p>For example, say we wanted to return a random value from the list [Cyan, Magenta, Yellow, Black]. The first challenge will be to turn our list into a data set. This is easily done by leveraging <a href="https://www.postgresql.org/docs/current/arrays.html">PostgreSQL ARRAYs</a>. Let’s give it a try:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/51e46d0062d23e9c78ca7d9ad82a843a/href">https://medium.com/media/51e46d0062d23e9c78ca7d9ad82a843a/href</a></iframe><p>Our list of values has been converted to an ARRAY (notice the curly braces {} around the list). But how do we return the values as individual rows? PostgreSQL includes a nifty <a href="https://www.postgresql.org/docs/current/functions-array.html">array function</a> named unnest that does this for us:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed9cb94c35f9cb8bb7653975aa13a303/href">https://medium.com/media/ed9cb94c35f9cb8bb7653975aa13a303/href</a></iframe><p>Building on this concept as well as several of our previous examples, we can create another function that enables us to use this approach for any enumerated list. We’ll make special use of the [] notation for defining a TEXT array, since treating all input values as TEXT will give us the greatest flexibility.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8be77904bff128be798c67cab0574bb0/href">https://medium.com/media/8be77904bff128be798c67cab0574bb0/href</a></iframe><p>Now let’s test out our new function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/169a361141f3f8620ee3f9440d732f84/href">https://medium.com/media/169a361141f3f8620ee3f9440d732f84/href</a></iframe><p>Wow! I hope you’re having as much fun as I am! 😎 🤓</p><h4><strong>Random text</strong></h4><p>This is an interesting one. We can easily generate a <em>random</em> string. Notice I did not say “meaningful”. Here’s one way:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5dd37bf0c41e1c7a655ad775c8dc540a/href">https://medium.com/media/5dd37bf0c41e1c7a655ad775c8dc540a/href</a></iframe><p>We can also shorten it to the desired length (note: using the md5 function will only generate a 32-byte string):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/888249656b812a0edaea736390768ab7/href">https://medium.com/media/888249656b812a0edaea736390768ab7/href</a></iframe><p>We can also manipulate the text case:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/659432cbe73f0ec34878939a06c6e35b/href">https://medium.com/media/659432cbe73f0ec34878939a06c6e35b/href</a></iframe><p>This will only provide limited value, especially if you need longer strings that are more meaningful (e.g. person names, addresses, etc).</p><p>To address the length concern, let’s start with an example I originally found posted by user Lyndon S on <a href="https://stackoverflow.com/a/47321257">StackOverflow</a>. Here is my adaptation, which will produce a random list of 10 characters from the English alphabet:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdc936f1449eeef052fbbbfd7db14ca2/href">https://medium.com/media/bdc936f1449eeef052fbbbfd7db14ca2/href</a></iframe><p>Building on that, we can use our old friend generate_series along with a new friend string_agg to generate random “words” of a specified length. Note that I have artificially limited the maximum string length to 100 characters:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01959c151401e961220d719aa2891f87/href">https://medium.com/media/01959c151401e961220d719aa2891f87/href</a></iframe><p>So we have a working solution for random “words”, but this will not suffice for use cases that require simulated “real” data. To randomly generate truly meaningful strings requires having a list of meaningful values stored in a table. I have done this before by pre-populating a “dummy names” table from which I can, for example, randomly select a random first name and last name for a person. Again, this is also where third party libraries like faker.js come in handy.</p><h4><strong>Miscellaneous use cases</strong></h4><p>Using a combination of some of the things we have learned so far (and a few new concepts), here are several interesting use cases I have come across that required randomized seed data:</p><p><strong>Body Temperature</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b61d5bf29cbe058c30deb90e1e41bb4/href">https://medium.com/media/6b61d5bf29cbe058c30deb90e1e41bb4/href</a></iframe><p><strong>Phone Number</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/40b26dd0cabf68459dcaa5021426806e/href">https://medium.com/media/40b26dd0cabf68459dcaa5021426806e/href</a></iframe><p><strong>Future date in the next 12 months</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dfebf8ee5c00e8e1e997b89a22bc1312/href">https://medium.com/media/dfebf8ee5c00e8e1e997b89a22bc1312/href</a></iframe><p><strong>Random date within the past 30 days</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/49a356320b18778c826c59445bf45946/href">https://medium.com/media/49a356320b18778c826c59445bf45946/href</a></iframe><p><strong>Random date of birth for a person under the age of 18</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/267c62050d73f6822ce52ae24f6b2ddf/href">https://medium.com/media/267c62050d73f6822ce52ae24f6b2ddf/href</a></iframe><p>I hope this gives you an idea just how easy it is to accomplish some pretty powerful things using basic SQL. All the SQL Tips in this article (plus more in the future) can be found <a href="https://github.com/matthewoldham/sql-tips">here</a>. I’d love to hear your favorite tips and clever SQL solutions, so please share them in the comments below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=394c4781a5e0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/how-to-produce-meaningful-datasets-using-only-sql-394c4781a5e0">How to produce meaningful datasets using only SQL</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Designing Databases with Forethought]]></title>
            <link>https://medium.com/@MattOldham/designing-databases-with-forethought-fa05fc9effbf?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa05fc9effbf</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Mon, 21 Jan 2019 12:01:00 GMT</pubDate>
            <atom:updated>2019-01-21T12:01:00.932Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SO3zAnPmswVUZgRT" /><figcaption>Photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>This article was first written in 2009 during my time as a consultant for a boutique data and analytics firm located in the DFW Metroplex area. Originally titled, “<em>OLAP Friendly OLTP Design: Planning Ahead For The Inevitable Data Warehouse</em>”, the points were simply that data has inherent value, you’re collecting it in a database for a reason, and eventually someone will either love you or hate you when they are tasked with extracting it from this database you’re designing, so do it well.</p><p>When I dug up this article recently, I thought it was interesting to see how things really haven’t changed much in this industry. Relational databases still play a key role in the analytics space, basic relational database design techniques are still 100% valid, and the value of data is higher than ever.</p><p>While some of these design concepts seem mundane and even obvious, it’s amazing how often they are omitted. Whether you’re a software engineer, database administrator, or aspiring data scientist, I hope you’ll appreciate a review of some of the basics for sensible database design.</p><p>Regardless of what data you are collecting and storing in your OLTP applications, someone is going to want to report on it eventually. As mainstream as email in corporations today, the data warehouse has become one of the pillars of IT infrastructure. If your company does not have a data warehouse, chances are either they really do but you just aren’t aware of it, or there are plans in place for a data warehouse of which you have not yet heard. This means that you will eventually discover I/O intensive queries pounding your OLTP databases in eerily periodic fashion at odd hours of the night.</p><p>If your design is worth its salt, and if the designers of these intensive queries are as good at design as you are, you will also hopefully discover that the duration and impact of these queries is minimal. The first discovery I have described is inevitable. The second discovery will be determined by you, the OLTP designer.</p><p>That being the case, we must begin to architect our applications and databases with the expectation that they will be tapped for corporate information by the data warehouse. I firmly believe that we must make this a habit and core development practice. Whether you are a database designer, a pure middleware (i.e. Java/NET) programmer on the back end, or a “user experience” designer on the front end, you have a role to play in good OLTP design.</p><p>The following list of practices is presented in no particular order and is not intended to be exhaustive. My hope, in fact, is that the list grows as experts such as you read this article and respond with anecdotes of best practices you have found to be effective in your own experience.</p><p>I will also say that as the list grows, the less practical it will become to incorporate all of these practices into every single design. You will encounter limitations caused either by the technical infrastructure in which you are implementing, or by existing IT policies to which you must adhere. I can, however, offer you the hope that once these practices become a pattern in any such environment, they will be noticed, they will be leveraged, and they will be a catalyst for change in the right direction.</p><h4>Use Audit Date Stamps for Change Data Capture (CDC)</h4><p>Change Data Capture. The ability to determine what data has changed since last I queried it. This is a critical function of most data warehouse Extract, Transform, and Loading (ETL) architectures since it dictates whether or not one can incrementally update data warehouse tables using only source system activity that transpired in the last 24 hours as opposed to rebuilding these tables from the ground up each night with all historical activity. The difference in batch processing time and CPU cycles between these two approaches can often be measured in orders of magnitude.</p><p>Recent product releases by large ETL and RDBMS vendors tout new features supporting this functionality. Some of these features are quite complex in their implementation and require enabling certain product options that have their own implications and must be carefully considered prior to flipping the CDC switch. One basic design consideration that will solve most of the CDC challenge for your designs is the consistent use of audit date stamps on your tables.</p><p>Virtually every table I create in my designs has two standard columns: INS_DTTM and UPD_DTTM — when the row was first inserted, and when the row was last updated, respectively. When possible I also populate these columns using pre-insert and pre-update triggers on the table. This removes any dependency on the application code to populate them, and also ensures that they do not get populated incorrectly. This concept can be extended to include the name or ID of the user who triggered the create action for the row, as well as the name or ID of the user who last updated the row.</p><p>As of late I have also begun incorporating an “audit version” column in my table designs — something I learned from one of our clients. This attribute is also maintained by pre-insert/pre-update table triggers. Audit version (or, AUD_VER) is initially populated with a value of 1 when the row is first inserted, and is incremented by 1 for each subsequent update operation. Not only does it tell me when the row was inserted and when it was last updated, but I now know how many times the row has been modified since its creation.</p><p>This nifty little attribute has come in very handy during test phases when performing analysis on what data has changed. In applications where workflow is involved, AUD_VER can also be quite useful in identifying where a particular row is in the state transition process. I have even begun carrying this attribute forward into my data warehouse designs. Simple, elegant and unobtrusive, audit columns like these I have described are a small price to pay for an effective CDC strategy.</p><h4>Take Advantage of Table Partitioning</h4><p>One of the most seamless and yet positively impacting improvements to many RDBMS platforms in the recent past is the table partitioning option. While not an available feature in all RDBMS’s, table partitioning has performance and administrative benefits that we as OLTP designers should consider for the long term success of our underlying databases.</p><p>The relevant benefits that this option brings to the table for us are improved performance and easier administrative operations. You might be thinking to yourself, “I’m not a DBA, so why should I care about administrative tasks?” Well, as advantageous as table partitioning is, even good DBAs don’t always think about it. The more you know about the capabilities available to you the better off your applications will be.</p><p>From a performance perspective, the benefits of table partitioning are very significant. Consider a table in your OLTP application that contains sales orders. Using Order Date as the key partition column, the table could be range-partitioned by week, month, or even year, depending on your needs. A query selecting orders for a particular month, for example, would only access the partition containing the data for that month. If the query selected orders over a window of two months, only two of the partitions in the orders table would be accessed.</p><p>This process of query isolation is called partition pruning. The database does the work of determining which segments (partitions) of the underlying table are needed to service the query. When Data Warehouse queries begin to access the orders table, the impact to the OLTP database is now much more likely to be limited in scope. When combined with the ability to partition indexes and leverage parallel execution in some database platforms, table partitioning brings a lot to the table.</p><p>From an administrative perspective, table partitioning introduces the ability to perform common maintenance task such as backup and recovery, statistics generation, index rebuilds, and bulk data loads on a per-partition basis as opposed to the entire table. This provides improved efficiency and reduces the impact of administrative activity in the database.</p><p>And, I have saved the best for last. Accessing a partitioned table from your application is identical to accessing a non-partitioned table for normal DML (i.e. CRUD) operations. That means you can partition an existing table underlying your OLTP application without having to change a single line of code. It is fair to say, however, that the degree of performance improvement you experience in your application as the result of partitioning is determined by a number of factors. If your tables are small, and/or if you have partitioned on a key column that is not used in any query generated by your application, it’s likely you won’t see any improvements in performance. This is all the more reason to educate yourself early on the capabilities of your underlying database. If you design with partitioning in mind you can be sure you will be recognized by others as that sage architect who was thinking long term.</p><h4>Use Surrogate Primary Keys</h4><p>Without a question — in all cases and at all times — use single column, sequence-generated (i.e. surrogate) primary keys on your tables. The primary reason to do this is that legacy numbering schemes or natural keys (e.g. Customer ID, PO Number, etc.) that originate in operational systems are outside of your control and should therefore not be trusted or relied upon. As soon as you make your design dependent on something you don’t control, trust me, it will change and your design will break. Save yourself and those you leave behind in your wake the headache of such a scenario and use surrogate keys from the beginning. If your RDBMS supports sequence generators or IDENTITY columns, use them. That’s what they are there for. I typically let my pre-insert/update table triggers manage this work for me since they are already in place as part of my CDC strategy.</p><p>Now, having said that all of that, it is still important to take care of those natural keys by preserving their integrity and indexing them appropriately. The Data Warehouse will rely upon them heavily when creating Slowly Changing Dimensions (SCD). Once your data makes it to the Data Warehouse, natural keys are the usually the last surviving link back to the originating operational system.</p><h4>Rationalize as you Normalize</h4><p>A wise DBA once told me:</p><blockquote>Normalize ‘til it hurts, de-normalize ’til it works.</blockquote><p>I have found this strategy to be very practical in my own designs. The key is finding the right balance. Reduce or eliminate as much redundancy as is feasible, and leave as much as you need to make the application intuitive and well performing. A healthy level of de-normalization will also benefit report writers and, ultimately, data warehouse ETL developers. There is no hard and fast rule to defining “healthy” for any particular design, but a good designer will recognize excessive normalization and be forward-thinking enough to trim it down. As outlined in the previous section, one particular strategy to keep in mind when it comes to normalization is the use of single column primary keys as opposed to multi-column (composite) primary keys.</p><p>Here’s a general rule of thumb: if, while writing SQL against your database design, you find the number of join criteria exceeding the number of tables in the FROM clause, you have probably over-normalized. It’s very easy to let your data modeling tool propagate foreign keys to resolution tables (i.e. the entities that resolve many-to-many relationships) as the primary key of the table.</p><p>There are a few problems with that approach, however. First, it violates your surrogate key design practice which dictates that you always use sequence-generated primary keys on your tables. You may be thinking to yourself, “What could one or two resolution tables with multi-column keys hurt? If I do reference them in a SQL statement, it’s only one extra join criteria anyway, right?”</p><p>Well, not always.</p><p>More times than I expected, I saw resolution tables I designed grow into parent entities to new tables that cropped up as the business evolved and the application matured and was extended. As this happened, my once leaf-node-like tables became branches to other segments of the database that I now could only access by referencing those extra primary key columns for every ancestral entity of the original resolution tables. Had I initially implemented a single column primary key as the identifier of these resolution tables, the resulting SQL statements would be much simpler — both for me and for every other poor SQL writer who queried my database.</p><h4>Put Referential Integrity Where It Belongs — In the Database</h4><p>Referential Integrity, or RI, is the set of rules that prevent inconsistent data in a database. This set of rules belongs in the database, not in your application. Early in my IT career I worked with a very large ERP application. This was a fantastic opportunity, and I am grateful for the experience I gained from it, as it opened the door to many other great opportunities. I remember thinking to myself as I dug into the internals of that particular package how well it was designed. What I did not realize at the time but soon learned was that all of the referential integrity in the application was embedded in the application code — not in the robust database on which it was deployed.</p><p>As a result, I began to see distinct job titles of the flavor “Application DBA” appear on the job boards over time as customers who had implemented this application were faced with addressing the major performance and maintenance issues to which this design led. I now appreciate the benefits of database constraints (or, declarative RI). We cannot rely on the application alone to preserve data integrity. It may be the single point of entry now, but what happens when a third party application or interface is introduced that influences the data in some way? All of the sudden that cleverly designed layer of application-level RI is of no effect. Regardless of what a developer does to the application code, I know I can rely on the database constraints to protect the consistency of my data.</p><p>That’s right, you heard me correctly. I said “my data”.</p><p>As OLTP designers we have to take ownership of the data and become stewards of it to preserve its integrity at all costs. It does not matter which role you play in the OLTP design. If the application design to which you contribute (and with which you are now forever associated) results in inaccurate reporting or inadequate user confidence due to poor data quality, consider the consequential “black eye” your own. It is your reputation as an application designer that will suffer as much as the end user of the application you helped design.</p><h4>Enforce Data Quality Constraints</h4><p>Continuing the thread of data stewardship, we must also enforce data quality constraints in our OLTP designs. Unique to this practice is the fact that it can be applied at all layers of the design. For example, the UI can protect data quality in the form of “edits” which are invoked at the data- entry level and prevent data from ever getting to the database. Likewise, the database can (and should) implement NOT NULL and other various CHECK constraints to prevent invalid data from getting into the database.</p><p>Regardless of where it gets implemented, we must prevent bad data from ever getting into the database. Once it gets in, there will forever be an exception that must be considered when analyzing the data. While it is true that data cleansing can be applied at the ETL layer prior to loading the Data Warehouse, data cleansing rules are difficult to establish and will immediately introduce a difference between the data in the two systems. Such differences always raise questions and will therefore implicate the need for an accompanying set of explanatory documentation outlining the reasons for the differences.</p><p>Another practical reason to prevent invalid data is the sheer effort in CPU cycles and ETL batch processing hours required to parse and cleanse data. This valuable time will better serve the cause of CDC and other necessary extract, transformation and loading activities.</p><h4>Don’t Forget Indexes</h4><p>Indexing in OLTP designs is often an afterthought, especially as new systems are deployed to ever improving multi-CPU hardware platforms. Fast hardware will mask performance problems related to lack of proper indexing for only so long, however. Data volumes will inevitably increase, and data consumers will contrive unique ways of getting data out of your database that very quickly point out the need for indexes.</p><p>Specifically, Data Warehouse ETL processes will inherently leverage an appropriately indexed OLTP design. For example, remember those CDC columns we discussed earlier? They are perfect examples of columns that should be indexed to support ETL processing. And don’t forget about all those foreign key columns that are now part of your RI regimen. Many RDBMS platforms will automatically index primary key columns, but foreign keys are usually overlooked. Not only will such indexes make ETL processing fast, but the I/O impact on your OLTP system will be greatly mitigated because a quick index scan will likely replace the full table scan that would otherwise have been required.</p><h4>Use a Consistent Database Object Naming Convention</h4><p>Every database designer has their preference when it comes to object names. I believe an effective table naming convention is of particular importance as you create your forward- thinking design. As an ETL developer, many times I have found myself trying to infer meaning from an OLTP database by perusing the data dictionary. One of the biggest contributing factors to my understanding of these models was the table naming convention.</p><p>If I see a table named ORDER_DTL, a couple of things become immediately clear to me. First, I have in all likelihood just found the Order Detail table, and second, I should easily be able to find another ORDER-related table that serves as the parent entity to ORDER_DTL. Maybe ORDER, or perhaps ORDER_HDR? Either way, I just put together an important piece of the puzzle. A quick internet search will result in a plethora of thoughts around how to name your objects. As a matter of personal preference I like to see objects named in such a way that the <em>prefix qualifies</em> and the <em>suffix clarifies</em>.</p><p>Taking the example or ORDER_DTL, I immediately discern that the table contains order data and further that this particular table contains the detail information for orders. Other common suffixes I use are _LOG for log tables, _STG for staging tables, _LKP for code and description lookup tables, and the list goes on. Another benefit to using the object prefix as the qualifier is that when viewing a list of sorted object names, those of the same subject type sort together and one can get a quick idea of the extent of the subject-related data in the database.</p><p>This concept carries over to other objects types as well. In the ORDER_DTL table, I would expect to see a column named ORDER_ID, which constitutes the foreign key referencing the primary key of the parent entity ORDER, and ORDER_DTL_ID, which is the primary key of the ORDER_DTL table. This paints a picture of the relationships inherent in the design. Don’t discount the importance of the decision for how to name your database objects.</p><p>It’s worth the time up front to establish a convention that is informative. It doesn’t have to be fully complete or extensive to begin with, but a little forethought in the data modeling phase is a small price to pay for the time savings you and others will realize down the road.</p><h4>Metadata — Not Just For Data Warehouses</h4><p>Metadata is not just for data warehouses — it begins with the source system. At least to some degree, an effort should be made by every OLTP designer to deliver a data dictionary containing business definitions of all entities and attributes along with the database. A data dictionary is the simplest form of a metadata repository, and will naturally flow downstream to the Data Warehouse.</p><p>Business definitions are a critical component of solid data warehouse architectures, and should originate from a well designed OLTP source system. Collect them early on in your design and expose them in a fashion that allows end users access to them. It is true that one of the major downfalls to any data dictionary effort is the failure to keep it updated as things change, however if you incorporate metadata-type documentation into your development methodology, it mitigates exposure to this risk.</p><p>One easy way to incorporate business definitions is by tagging your database objects with comments. RDBMS platforms such as Oracle and SQL Server support such comments nicely and in a way that makes them accessible to users with SELECT access to the data dictionary.</p><p>Leverage these features.</p><p>I am pretty religious about creating table and column comments simply because it is more or less a “metadata freebie”, compliments of the RDBMS vendor. A valuable side benefit of doing so is that I force myself to understand the data I am storing because a business definition must be gathered for every element of my database design before my build script will complete successfully.</p><h4>Maintain Lookup Tables</h4><p>This may sound obvious, but be sure to store codes (or enumerated lists) in properly designed lookup tables. These lookup tables should contain corresponding description columns which contain accurate business descriptions for each respective code. There are many schools of thought and preferences over how to design such lookup tables.</p><p>For example, one could decide to break it down into short name, long name, short description, long description, etc. However far you ultimately decide to take it, just keep in mind that a code without a description is only valuable to your application code — not to an end user or data analyst assigned to report on this data.</p><p>Further, each code in an encoding scheme (or lookup table) constitutes a natural key. When a Data Warehouse dimension table gets built to store such codes, the descriptions are typically extracted alongside the codes in order to provide a means of CDC within the code set. In the case of a Slowly Changing Dimension table, a change in the description for a particular code would trigger the inactivation of one dimension record for the prior “version” of that code, and the creation/activation of the new version.</p><p>Also part of the design debate for lookup tables is whether to have one table per code set, or instead a single generic lookup table (also known as the “One True Lookup Table”, or OTLT) to store all code sets. I encourage you to research this debate on your own to learn about the pros and cons of the OTLT approach, but I will offer one of the reasons I choose not to revert to this type of design.</p><p>Having separate lookup tables for each code set affords me the ability to specialize each of them for the respective code set. For example, my “state/territory code” lookup table needs a time zone attribute in order to satisfy a certain business requirement. At the same time, my “status code” lookup table needs an attribute that indicates whether or not a particular status code is active (let’s call it “active indicator”). If I were using the OTLT design, each state/territory code would have to also maintain an “active indicator”. Likewise, and perhaps even worse, each status code would have to maintain a time zone attribute. Not only is this confusing and nonsensical, it is also very inefficient.</p><p>Further, any specialization requirements that get introduced for a single code set automatically affect every other code set since all are stored in the same table. In my opinion this is a bad idea and I recommend avoiding the OTLT approach altogether.</p><h4>Conclusion</h4><p>Do you hear the recurring theme? It’s simply this — <em>design with forethought</em>. The bottom line is that you will eventually have to eat your own dog food. Like it or not, your expertise and assistance will be sought after at some point in order to help those tasked with extracting and/or reporting from your application database. You may even be the one asked to develop the reports. Make it easy on yourself, your fellow team members, and those you leave behind to support your applications, by designing with forethought.</p><p>The incorporation of relatively simple design concepts can mean the difference between a highly accessible, rich data set, and a closed system that limits corporate information accessibility. Make reporting from your applications an intrinsic possibility by laying an appropriate foundation. Things have a way of coming around full circle, and you will eventually thank yourself for doing things the right way the first time.</p><p>What are your favorite conventions and practices? I’d love your feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa05fc9effbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t get frustrated when someone doesn’t get it. Use it as an opportunity.]]></title>
            <link>https://medium.com/@MattOldham/dont-get-frustrated-when-someone-doesn-t-get-it-use-it-as-an-opportunity-74253c2831b4?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/74253c2831b4</guid>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[career-advice]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 12:01:01 GMT</pubDate>
            <atom:updated>2019-01-03T12:01:01.101Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to use gaps in understanding as an opportunity to educate.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YyZEZXmSyOgCergL" /><figcaption>Photo by <a href="https://unsplash.com/@rankandfiledostoevsky?utm_source=medium&amp;utm_medium=referral">Vance Osterhout</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Tell me if you’ve been here before. You’re in a meeting or on a conference call, and you’re in the groove. You’re deep into the weeds, talking details about the matter at hand with your colleagues. You’re actually making progress.</p><p>Then it happens.</p><p>It suddenly becomes immediately clear that not everyone is on the same page. You thought they were right there with you, and perhaps they were…up to a point. Then comes a question that makes it obvious you lost them a while back. Ugh.</p><p>Don’t get frustrated! You have just uncovered a gap in understanding that needs to be addressed. It’s okay. Everything’s going to be okay.</p><p>You’ve been around long enough to know is that this kind of gap in understanding is going to stick around and rear its head again. It’s inevitable.</p><p>The question is, are you willing to do something about it? You have several options at this juncture:</p><h4>Ignore the opportunity and plow ahead.</h4><p>With a slightly detectable level of irritation in your voice, you quickly rehash the concept, decide that should be enough for them to go on, and then you plow ahead.</p><p><strong>Result:</strong> Your rash re-hash was not, in fact, enough for them to go on. All your cogent points thereafter are lost on deaf ears. You’ve once again left then in the dust and moved on. You feel frustrated, they feel patronized. The whole conversation is now likely a complete waste of time.</p><h4><strong>Start from the beginning. Again.</strong></h4><p>With a less slightly detectable level of irritation in your voice, you pause the conversation and once again give them the long form explanation.</p><p><strong>Result:</strong> You’ve forgotten where you were going. You’re frustrated, and they’re alienated. The conversation has been derailed and rendered far less productive than everyone needed it to be.</p><h4><strong>Solve the problem once and for all.</strong></h4><p>You imagine how you’d feel if your positions were reversed. You decide this is an opportunity to do hard things well. An opportunity to be solution-focused. You pause the conversation and propose everyone reconvene after you’ve had a chance to create some helpful material to guide the next conversation.</p><p><strong>Result:</strong> Read on. 😎</p><p>If you chose wisely, then you’re now ready to solve this problem once and for all. It’s time to educate. But how?</p><p>Here are a few ideas, in order of increasing level of effort:</p><ul><li>Create a quick illustration</li><li>Create a bulleted list of key points</li><li>Write a short narrative</li><li>Write a blog article</li></ul><p>You’ve got plenty of tools at your disposal. Google Draw is great for simple diagrams or flowcharts. If you need something really quick and dirty, using a whiteboard to capture the concept and then snapping a photo with your phone is an easy way to get the job done. Need a mix of narrative, diagrams, or bulleted lists? Google Slides or MS Powerpoint are handy in such cases.</p><p>Sometimes, however, it makes sense to write something a little more formal. Whether or not it’s for public consumption outside your company, I suggest approaching these cases like a blog article. My go-to method is <a href="https://en.wikipedia.org/wiki/Markdown">markdown</a>. It’s good for bulleted lists, handy for linking to other references and images, and is easily converted to a PDF or imported into blogging platforms.</p><p>The real answer to <strong><em>how</em></strong> is simple: whatever it takes to produce an explanatory reference that people can refer back to on their own, or (more likely) that you can re-reference when they inevitably ask the same question again in a month.</p><p>Here are some quick tips for making your material effective:</p><ul><li>Don’t write a novel.</li><li>Get something out the door quickly. Hit the key points, and fill in the gaps later.</li><li>Post it in a place where people can find it. Use a company wiki, a public channel in Slack, even a company or personal blog.</li><li>Include a “last updated” date so that it’s easy to tell how dated the information is.</li><li>Make it editable so others can contribute.</li></ul><p>Once you’re finished, step back for a minute and consider the dividends of all your proactive effort:</p><h4><strong>You’re better for it.</strong></h4><ul><li>You have forced yourself to think through the question, and in the process are reminded that there’s no such thing as a dumb question.</li><li>Your understanding is better because it’s been thought out and explained to others.</li><li>You demonstrated leadership by taking initiative.</li><li>Your frustration level is lower because you directed that energy toward solving the problem.</li></ul><h4><strong>The other person is better for it.</strong></h4><ul><li>You showed them you expended effort to answer their question, meaning you took it seriously.</li><li>You demonstrated that you’re capable of analyzing a problem and putting forth a well thought out solution. In other words, you are a successful problem solver, and they’ll remember that.</li><li>You have helped increase their overall confidence level in the subject matter.</li></ul><h4><strong>Your team is better for it.</strong></h4><ul><li>The collective knowledge well has been deepened.</li><li>Great reference material has been created for new team members. Add it to your on-boarding documentation.</li><li>Your constructive, solution-focused approach has strengthened relationships.</li></ul><p>So, the next time the inevitable happens and someone asks the same question, don’t get frustrated! Just pull up your handy reference, thank yourself silently for the time you spent creating it, and use it as a script to keep up the momentum in your conversation.</p><p>What better way to start the new year than by developing new disciplines like being solution-focused and doing hard things well?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74253c2831b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Appreciating people isn’t hard. Here’s how to do it in 3 simple steps.]]></title>
            <link>https://medium.com/@MattOldham/appreciating-people-isnt-hard-here-s-how-to-do-it-in-3-simple-steps-f2468f33ccf3?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2468f33ccf3</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[people]]></category>
            <category><![CDATA[appreciation]]></category>
            <category><![CDATA[honor]]></category>
            <category><![CDATA[how-to]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Mon, 24 Dec 2018 12:01:03 GMT</pubDate>
            <atom:updated>2018-12-24T13:00:21.326Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IpfqYysQgovqkbdD" /><figcaption>Photo by <a href="https://unsplash.com/@breakyourboundaries4?utm_source=medium&amp;utm_medium=referral">Matt Collamer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>If you’re reading this, chances are something about the title tugged on your conscience.</p><p>How many times do we go through the day ignoring the strangers that pass us by. How many times do we merely tolerate the people in our lives who aren’t strangers? I get it, people can be very difficult.</p><blockquote>“Life would be easy if it weren’t for all the other people.”</blockquote><p>Well said, whoever it was that said that. It’s true that dealing with people is one of the most challenging aspects of life. But, unless you have walled yourself off from all human interaction, dealing with people is a reality we must all face.</p><p>I’d like to share some simple steps that I believe will change your perspective about people — for the better. First, though, you need the key to being successful at these steps!</p><p><strong>It’s not 50–50.</strong></p><p>Nope. You’re going to have to go all in…100-0. All the effort must be yours. You have to go into this expecting nothing in return. You’ll just have to trust me that the reward will be there in the end.</p><p>There — now you have the key to success here. Let’s proceed.</p><h4>Value the person.</h4><p>Whoa, whoa, whoa — I thought this was going to be simple?! Trust me, this is where it all starts. It’s the underlying principle of honor that’s forms the foundation for true appreciation.</p><p>Honor is simply placing value on them as a person. And the only way we’ll ever be able to truly value a person is to separate the person from their behavior. There is an unending list of factors that will affect a person’s behavior, because after all, they are human. That’s the real point here, though — <em>they are human beings</em>.</p><p>If we can look past the behavior and value the person for who they are as a unique, one of a kind, amazing creation, then we can more easily set aside their erratic behavior and not let it affect the way we treat them. If we’re honest, this is the way we want to be treated by others, right? Sow bad seed, reap a bad harvest. Sow good seed, reap a good harvest.</p><p>Another key point here is that you don’t have to <em>know</em> a person to value them. Remember, they are human, therefore they have inherent value.</p><p>Honor is an amazing principle in itself, and I could not do it justice in this brief article. If you spent any amount of time outside this story studying the principle of honor, it would be time well spent.</p><h4>Say thank you, and mean it.</h4><p>How hard is it to say thank you, after all? It’s not hard. <strong><em>Meaning it</em></strong>? Ah, there’s the rub. How in the world do I say thank you and <em>mean</em> it?</p><p>Well, to be sincere in any sentiment, you have to believe in the object of that sentiment. In this case, it’s a person. See step 1 above. You have to value the person. If you truly appreciate someone, then it’s really easy to thank them for the simplest things and actually mean it. In fact, this is the key to ridding your personality repertoire of every fake smile and manufactured kind sentiment.</p><p>If you’ve never done it, I promise you will be amazed to see what happens when you offer a simple, yet intentional, “Thank you” to the barista, the door greeter, or the bus driver. Also, practice makes perfect. Just start doing it and it’ll get easier.</p><h4>Show sincere gratitude.</h4><p>Remember, I said simple…not easy! What’s the point here? Verbalize your gratitude for something they do or something about them you admire. This is more specific than a simple “Thank you”, and applies to a more narrow audience.</p><p>I’m talking about providing real feedback to people you know and interact with regularly. These are people like your boss, employee, coworker, professor, or significant other.</p><p>For example, I work with a guy who approaches his work with such an amazing attitude. Every. single. day.</p><p>After years of experience working with him, I have come to take this very admirable quality for granted. Honestly, it’s his consistency, even during stressful times, that is so fascinating. Anyway, I recently saw an opportunity to express my gratitude for his attitude, and I took it. I didn’t do it for me, so that he would then say in return, “Wow, Matt, you’re such a nice guy.”</p><p>No, I did it for him, because he’s an amazing person. I really am better for my time with him.</p><p>And, I’m not talking about a staged performance here. Genuine appreciation is not a performance, it comes from “the well” inside you.</p><blockquote>If it’s in the well, it’s going to come up in the bucket.</blockquote><p>Oh, you’re not feeling it? Perhaps you just need to stop and think about what your life would be like without that person? Again, not the negative stuff — not the behavior. The <strong>person</strong>.</p><p>Here’s the bottom line: these steps are simple, they just take a choice and a little will power. We simply must choose, as an act of our will, to do them. I fail at this miserably some (most?) days. Other days I do better. I can say with complete honestly that the days I do better, those are the days I feel better. Better about myself, better about others, and better about life in general.</p><p>I’ve seen people come alive, come out of their shells, come out from under a dark cloud, simply by offering a smile and showing them true honor and appreciation. It’s really not that hard to leave someone’s world a little better than the way we found it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2468f33ccf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Lessons I Learned From a Large Infrastructure Migration]]></title>
            <link>https://medium.com/@MattOldham/4-lessons-i-learned-from-a-large-infrastructure-migration-9acb69f83f33?source=rss-c87295e8688e------2</link>
            <guid isPermaLink="false">https://medium.com/p/9acb69f83f33</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[healthcare-technology]]></category>
            <category><![CDATA[anesthesiology]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[lessons-learned]]></category>
            <dc:creator><![CDATA[Matthew Oldham]]></dc:creator>
            <pubDate>Mon, 17 Dec 2018 17:05:16 GMT</pubDate>
            <atom:updated>2018-12-20T19:31:33.080Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zSr37QmWf435mLTU" /><figcaption>Photo by <a href="https://unsplash.com/@kallek?utm_source=medium&amp;utm_medium=referral">Kalle Kortelainen</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>It’s hard to believe that 2018 is coming to a close, and I’m reflecting back over all that we have accomplished this year as a company. From my vantage point at Graphium Health, I can see so many great accomplishments this past year. Given my area of primary responsibility, I feel it’s only fitting to highlight the large scale infrastructure migration we completed in November as my personal favorite among 2018 feats. Not only is it a feather in the cap of Graphium Health and our team of engineers, but it offers a rare peek behind the curtain to anyone interested in the technical operations that underpin <a href="https://graphiumhealth.com/tour/">the Graphium Health platform</a>.</p><p>We are a partnership of <a href="https://graphiumhealth.com/2015/04/21/interoperability-healthcare-3-reasons-technologists-must-engage-doctors-designing/">clinicians and technologists working side by side</a>, which I believe is one of the things that makes us unique as a company. We are innovators who love to do so in the healthcare space, specifically anesthesia — but not just for the sake of innovation. We are driven to simplify common workflows that have been neglected for too long. On one hand, the bar is low for the specialty of anesthesia, at least in the realm of innovation. It’s been largely ignored by the big EHR vendors.</p><p>On the other hand, however, these “common” workflows in both the practice <strong><em>and</em></strong> business of anesthesia can be very complex. That’s why we always try to stay focused on making sure our technical innovations don’t get in the way. We believe technology should be simple. Achieving that goal means we often bear the burden of simplification for our end-users in order to keep the hard parts behind the scenes.</p><p>That’s why this migration effort is so relevant. I have been working with data, systems architecture and systems integration over the course of my entire career. As a former consultant for Fortune 500/1000 companies, I had also performed much larger scale data migrations.</p><p>But this particular migration was different.</p><p>This migration was much more operationally complex since our platform never stops. Our users are spread across the nation in every timezone, and surgeries are obviously being performed around the clock. Likewise, our real-time integrations with customers and their facilities never stop. If they do, we’ve got problems, and alerts are likely going off somewhere!</p><p>Additionally, there are a lot of moving parts. As such, this effort had been at least two years in the planning. We knew there was going to be downtime, and we knew it would impact every one of our customers to varying degrees. We set an ambitious goal of completing it before the end of the year, and efforts ramped up significantly as we entered Q4.</p><p>While it was honestly grueling at times, it was also very exciting. We had to tackle difficult problems, yet we were able to leverage very cool technology for solutions. We were faced with the realities of early design decisions in our platform, yet we observed how well the vast majority of our original design had stood the test of time.</p><p>And, it is here I must pause and pay homage to our legacy infrastructure provider — you know who you are. We had a significant set of infrastructure components that had run flawlessly for over 6 years without any outages. That’s a lot of uptime, folks!</p><p>Here are some key lessons I personally learned (or was at least reminded of) throughout this process. I believe these lessons are universal in the sense they can be applied to any challenge we face.</p><h4><strong>There’s no such thing as over-planning.</strong></h4><p>Regardless of how much you prepare, things will still go wrong. Did things go wrong for us? At points along the way, yes. The first migration window, in fact, went three times as long as originally scheduled. We hit a snag we had just not planned for. All that planning and preparation, and yet we still found a scenario that had never occurred to us.</p><h4><strong>There’s no such thing as over-communication.</strong></h4><p>Regardless of how much you communicate, someone will still miss the message. We opted to break our communication plan into both global and customer-specific missives that aligned with our incremental migration strategy. We spent combined hours preparing and reviewing contact lists for each customer to make sure no one was missed. Yet, at the end of the day, some people were surprised by the outage. Things still worked out well, however. In fact, the vast majority of our customers experienced a much shorter downtime than was originally allotted.</p><h4><strong>There’s no need to be afraid of the hard things.</strong></h4><p>Instead, choose to do hard things well. We certainly were forced to tackle some hard things: Technology decisions with significant performance, scalability, and cost implications; Decisions that, if made incorrectly, could haunt us for years into the future; And any time data is involved (and to be fair, when <em>isn’t</em> it?), there is the potential for things to go very badly if not handled with extreme care. We had to do a lot of testing, a lot of trial and error, and a lot of contingency planning in case we were forced to rollback at any time. The point is, we faced the hard things and pressed through to the end.</p><h4><strong>There’s something to be said for trusting your gut.</strong></h4><p>When we were originally designing the platform, there were honestly times we struggled wondering if we were over-engineering certain features. It sure seemed as if we were, yet our collective gut told us to be prepared for growth. Fast forward 6 years, and I remain convinced we chose the right infrastructure partner in the beginning. I also remain convinced we chose the right multi-tenancy architecture. This architecture allowed us to migrate customers incrementally, in batch sizes of our choosing. That alone made it possible for us to afford the proper sensitivities to our larger customers when it came to downtime planning.</p><p>What was the final result? Over 100 database and applications components were successfully migrated, including our primary data and service tiers. We were delighted to see API response times drop to half their previous averages, and the consolidation of services was already projected to bring a similar reduction in infrastructure spend.</p><p>We completed all the core migration efforts right before Thanksgiving, ahead of schedule and under budget, giving all of us one more very big thing for which to be thankful. In fact, the long Thanksgiving weekend was worth all the work leading up to it, because it was one of the quietest “ops” weekends in recent memory.</p><p>So, hats off to the team at Graphium, as well as to all of our customers who endured their respective periods of downtime during this migration. I’m thankful for everything we accomplished together in 2018, and I look forward to the exciting things coming in 2019.</p><p><em>Originally published at </em><a href="https://graphiumhealth.com/2018/12/17/a-peek-behind-the-curtain-a-personal-perspective-on-2018-from-graphium-health-engineering/"><em>graphiumhealth.com</em></a><em> on December 17, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9acb69f83f33" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>