<?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 Justin Rubin on Medium]]></title>
        <description><![CDATA[Stories by Justin Rubin on Medium]]></description>
        <link>https://medium.com/@justin.rubin?source=rss-9423f2f90e12------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mqFdhVHAG6GfQxQpX2DDtA.jpeg</url>
            <title>Stories by Justin Rubin on Medium</title>
            <link>https://medium.com/@justin.rubin?source=rss-9423f2f90e12------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:46:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@justin.rubin/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[Leather Chair]]></title>
            <link>https://medium.com/@justin.rubin/leather-chair-d60ccd70f92f?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/d60ccd70f92f</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[self-care]]></category>
            <category><![CDATA[self-awareness]]></category>
            <category><![CDATA[reflections]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Thu, 23 Sep 2021 12:46:01 GMT</pubDate>
            <atom:updated>2021-09-23T12:46:01.410Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kT0jf4wpYTx-OmuWl4vr-A@2x.jpeg" /></figure><p>I have a chair I love. It is a small, dark brown with slight wearing, leather chair.</p><p>The placement of our furniture had it in area, off to the side of the room, where I never sat in it. In our house we are always rearranging things to find the right place, or give things a feeling of newness, or feng shui. We moved the chair into a central area in room. Now it was the first thing we noticed in the room and we walked by it constantly. It was moved to a focal point, a point of focus. and now we sit in it every day. We get to enjoy the chair.</p><p>Just like this chair, the thoughts we choose to let occupy space in our mind get “used”. If we spend time focusing on things that aren’t beneficial then it is like my leather chair sitting in the corner, not being used.</p><p>Our thoughts shape the physical world. The world around us, our physical self, our health and our happiness are all a result of our thoughts and how we have chosen to focused them.</p><p>If we want to sit in our favorite chair, if we want to be healthier, happier, feel fulfilled, put those thoughts at the center of our mind. Focus on them and they will begin to manifest in the physical world.</p><p>Take some time to look at the thoughts you are focused on. Take some time to look at your physical world. These two things are connected. If your leather chair has been disregarded then maybe it’s time to rearrange and refocus your thoughts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d60ccd70f92f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Template Literal Engine]]></title>
            <link>https://medium.com/walmartglobaltech/template-literal-engine-87e98f3c1f49?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/87e98f3c1f49</guid>
            <category><![CDATA[ab-testing]]></category>
            <category><![CDATA[walmart-global-tech]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Fri, 18 Dec 2020 20:56:21 GMT</pubDate>
            <atom:updated>2020-12-18T20:56:21.953Z</atom:updated>
            <content:encoded><![CDATA[<p>This blog was co-authored with the help of <a href="https://www.linkedin.com/in/jeanpan/">Jean Pan</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*e4lAoOZtelImD0ADSYDH6g.png" /></figure><p>Building string templates in JavaScript was greatly improved with the introduction of Template Literals in ES6. But building templates the right way can take some thought and even present challenges.</p><p>When building our A/B experimentation platform at <strong>Walmart Global Tech</strong> one of the critical features was identifying when a user <em>qualifies</em> for an experiment. A <em>qualified</em> user is defined as someone who was assigned to the experiment and who saw (as best we can tell) the part of the site being experimented on. In order to determine if a user qualified, we need to query data from our site (Walmart.com) or our native app by a set of predetermined criteria. This predetermined criteria is built during the experiment setup phase and is in the form of a query expression (similar to SQL). These expressions can get pretty complex, as anyone who is familiar with building SQL queries or scalar functions can attest. Additionally, the attributes in the expression are defined by an external system, ie. the site/native app, and therefore are subject to change outside of our application’s control.</p><p>This presents us with two challenges to address. First, we need to <em>templatize</em> the query expressions in a way that values can be substituted in. And second, we need these templates stored outside code base in a configuration file.</p><h4>Con+cat+enation</h4><p>String concatenation in JavaScript was never great. This is especially true when trying to build templates using string concatenation.</p><blockquote>const adjective = “great”;</blockquote><blockquote>“String concatenation is not a “ + adjective + “ way to build a template.”</blockquote><p>If you ever tried to build out a string template and you did one of these, <em>“SELECT ” + fields + “ FROM ” + table</em>, you quickly realized how poorly the design scaled. It turns out JavaScript has an awesome syntax that can help us address our first problem using Template Literals.</p><h4>Template Literal</h4><p>Template literal is an awesome construct within JavaScript, especially when building complex strings such as query strings or multiline strings. Template literals in JavaScript are interpolated strings, meaning they allow for having variables in the string which the JavaScript engine will substitute with values. The end results of the interpolation is a string.</p><blockquote>`Template literal is a ${adjective} way to build a template.`</blockquote><p>Template literals themselves are not type String and therefore are not supported outside the context of JavaScript, for example in a JSON file. Why does this last part matter?</p><h4>Configurations</h4><p>Nearly all applications use configuration files to store data outside of the runtime code. Whether it be for initializing the application, securing API tokens or storing runtime flags. If our application used a JavaScript configuration file “.js” then our story would end here, since we could put our configurable template literal directly into the file. However, many applications utilize JSON files for storing configurations, as is the case for our A/B experimentation tool.</p><blockquote>Tip: don’t let the <strong>JS</strong> in JSON fool you, it’s language independent.</blockquote><p>JSON is a widely used data structure in many programming languages and architectures. Because it is language agnostic, it only supports the data type, text.</p><h4>TempLitSON?</h4><p>Which brings us to our second problem. If template literal is a construct of JavaScript and JSON only supports text, how can we store a template literal configuration within a JSON?</p><blockquote>Obvious Answer: store it as a string</blockquote><p>JavaScript again has a couple methods for evaluating strings to objects or functions or even… template literals! So what are these magic options and how do we choose the best one?</p><ul><li>eval — dangerous because it opens security vulnerabilities, poor performance, and <em>highly discouraged</em></li><li>function constructor — minor security concerns depending on how it’s used, a bit better performance over <em>eval</em>, globally scoped, ie. not lexical to the function where it was constructed</li></ul><p>The function constructor in JavaScript lets us create a new function object passing a string to be evaluated as the function body. More on this later.</p><blockquote><strong>new Function(‘a’, ‘b’, ‘return a + b;’);</strong></blockquote><h4>The Engine</h4><p>Because the function body is evaluated, it can be a string, object, or a template literal. By utilizing this feature of the function constructor we created the Template Literal Engine. We solve both of our challenges above by letting us build complex queries using template literals <em>and</em> letting us store the templates as strings in our configuration JSON.</p><blockquote>We utilize the power of template literals while abstracting the external logic out to a config.</blockquote><h4>Let’s see it in action</h4><p><em>Following walkthrough and code examples courtesy of </em><a href="https://www.linkedin.com/in/jeanpan/"><em>Jean Pan</em></a></p><h4><strong>First Try: String concatenation</strong></h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/948554d6eb7a7596a090cde9d36a68bc/href">https://medium.com/media/948554d6eb7a7596a090cde9d36a68bc/href</a></iframe><p>The above code obviously works but if the string is very long it will become clumsy with single quotes and double quotes wrap the string literal, you need to escape the quotes. It’s very error prone especially when there are more complicated and lengthy strings.</p><blockquote>Can we do better?</blockquote><h4><strong>Second Try: string interpolation</strong></h4><p>Template Literal provides a clean way to allow us to manipulate string literal and it’s easy to read. To use template literals simply wrap the string literal in back-ticks. With that we can refactor our function like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6bdf8a28f8176068f7f32abd1e256e5/href">https://medium.com/media/b6bdf8a28f8176068f7f32abd1e256e5/href</a></iframe><p>When this function is called with url = “www.walmart.com”, it will substitute the <em>${url}</em> with the parameter url which is “www.walmart.com’’ and return the result as:</p><blockquote><strong><em>Page attribute “url” should match “www.walmart.com”</em></strong></blockquote><p>This process of replacing a placeholder <em>${url}</em> with value “www.walmart.com” in the string literal is called string interpolation.</p><p>Since it’s wrapped with back-ticks, you can use either single or double quotes in the template literal, no more ugly escaping back slashes!</p><h4><strong>Third Try: template literal with dynamic function</strong></h4><p>The above code works but it lacks in flexibility. What if the query depends on external variables as in our problem statement above?</p><p>The solution we want is to define the query in a JSON configuration file and load the query at runtime. Now the problem is when the query is loaded it’s a string. How do we convert a string into a template literal and also do the string interpolation?</p><p>The solution is the dynamic function generation using the function constructor.</p><blockquote><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function"><em>https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function</em></a></blockquote><p>The above example can be refactored to:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/30e417caec591df644fd5635491b583f/href">https://medium.com/media/30e417caec591df644fd5635491b583f/href</a></iframe><p>Let’s take a closer look at how it works</p><p>Syntax:</p><blockquote><strong>new Function([args], functionDefinition);</strong></blockquote><p>Calling this newly generated function:</p><blockquote><strong>new Function([args], functionDefinition)(…value);</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i97mu9dDGJn6dc6h9oFctw.png" /><figcaption>Dev Tools console showing evaluated function</figcaption></figure><p>As you can see, the new function generated takes two parameters called <em>url</em> and <em>loggedIn</em> and returns a template literal.</p><p>Notice how we call the newly generated function with (…value). This syntax is referred as ‘rest parameters’ which allows variable number of arguments to be passed into a function. A function’s last parameter can be prefixed with ... which will cause all remaining (user supplied) arguments to be placed within a &quot;standard&quot; JavaScript array.</p><p>See the documentation for details.</p><blockquote><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters</a></blockquote><h4>Conclusion</h4><p>On a daily basis at Walmart Global Tech we work to find elegant solutions that make complex problems simple. With our new Template Literal Engine we used a combination of JavaScript capabilities (string interpolation, function constructor, rest parameters) to solve our problem. We use dynamic function generation built complex queries out of template literals stored as strings in a JSON configuration. Or to state in simpler terms, we’ve made our templates configurable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87e98f3c1f49" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/template-literal-engine-87e98f3c1f49">Template Literal Engine</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forgot about toilet paper, worry about your mental health]]></title>
            <link>https://medium.com/@justin.rubin/forgot-about-toilet-paper-worry-about-your-mental-health-80ece5fff5dd?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/80ece5fff5dd</guid>
            <category><![CDATA[self-care]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Thu, 19 Mar 2020 16:57:17 GMT</pubDate>
            <atom:updated>2020-03-19T16:57:17.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQiRbBQoUu8UVCcWCktOGg@2x.jpeg" /></figure><p>Five days into self quarantine, three days since all schools have closed in California, and eighth days since the CDC declared COVID-19 a pandemic, while sitting at the dinner table with my wife and three boys, I had a brief moment of panic. I was visualizing my future self a few months from now not having been able to go to Target or Costco or see my parents and brothers for family dinner and the panic came over me. It was a feeling like being trapped. A feeling of a freedom being taken. My breathing got heavy and heat rushed over my body. It was only a moment, less than a second, because I looked out the door to our backyard and thought about going outside or going on a run. Looking at my wife smile and boys being goofy at the table quickly distracted my thoughts and brought me back to now.</p><p>Reflecting on this, I’m starting to see the very beginnings of how this social lockdown will effect our mental state, causing us to fall into panic or depression. This scale of events are something my parents generation never faced and it will be especially hard on them. The working baby boomer generation. They don’t have their jobs, social groups or visits from their grandchildren to distract them. Their social networks our much more face to face and not so much facetime.</p><p>For parents with young children, we face the same mental struggles while facing the opposite physical situations. While they have an abundance of distractionless time we face constant distraction. Dealing with kids and trying to do our work from home, and having less and less mental downtime. This is not the personal quiet time you get for a few minutes before falling asleep. This is mental self time you need during the day. My 45 minute commute was a time I could sit with my thoughts twice a day and mentally prepare for, or wind down from, my day.</p><p>In this transition to a new way of life and new routines (this is a new way of life and will be for a long time) we will all need to put aside time for caring for our mental state.</p><h4>Ideas for caring for our mental state:</h4><ul><li>start your day by coming up with some achievable tasks</li><li>go on runs (or walks)</li><li>listen to audio books or podcasts</li><li>clean out or organize your closet or cupboards</li></ul><h4>Find ways to socialize in an closed-social world:</h4><ul><li>daily calls or facetime with family</li><li>online games against family and friends</li><li>post more on Instagram</li><li>work towards building social isolation pods with your extended family</li></ul><p>I’m not going to end with a positive note on how we will all get through this and things will go back to the way they were. Things are going to get much worse and it will have life changing effects on all of us. There will be people we know or even ourselves will get the disease. People we know will die from the disease. Birthdays and births will missed because of the disease.</p><blockquote>We are in a war. Our freedom has been lost. And this is just the beginning.</blockquote><p>At a minimum we have all been given a six month prison term. This will be a journey on self reflection and mental health. We are all in this together and we are all in this alone.</p><p>This is the new reality. Wake up, panic, and then start working on your mental health.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80ece5fff5dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On A/B Testing: Preview]]></title>
            <link>https://medium.com/walmartglobaltech/on-a-b-testing-preview-4f594403c774?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f594403c774</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[a-b-testing]]></category>
            <category><![CDATA[ab-testing]]></category>
            <category><![CDATA[experimentation]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Mon, 01 Apr 2019 16:44:27 GMT</pubDate>
            <atom:updated>2019-04-01T16:44:27.995Z</atom:updated>
            <content:encoded><![CDATA[<h4>Ensuring the expected behavior of A/B experiments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DJ4aUAn-b1DXSagioUfuaA.jpeg" /><figcaption>Photo credit: <a href="https://pixabay.com/photos/telescope-outlook-distant-view-view-3723153/">suju</a></figcaption></figure><p>A/B testing allows you to run experiments that change the behavior of a user’s experience. In a typical experiment you will have one group of users who will see the current, unmodified behavior (control) and another group of users see the modified behavior (variation). Whenever you’re altering behavior that has potential to effect your users experience it is a (really) good idea to be sure the expected changed behavior is the actual behavior the user sees. The tool used by A/B testing systems for giving this assurance is called Preview.</p><blockquote>Preview, you mean like a movie preview?</blockquote><p>Just like a movie preview, previewing an experiment shows you changed behavior before the experiment is released to the end user. Preview basically puts you into the experience that the user will see. This provides a visual assurance that things are working (or not). In some cases you may want to preview into the <em>control</em> to ensure the modified behavior is <em>not</em> showing.</p><p>Complex environments, such as a world class global e-Commerce website, will have many integrated parts and systems. Preview is the end-to-end validation that all the parts are working together as expected.</p><p>At Walmart we have had many experiments that were days and even hours out from going live only to be pulled back because the preview wasn’t showing the expected changed behavior.</p><h4><em>Why is Preview important?</em></h4><blockquote>Preview gives experiment owners the power to verify your behavior in production before starting the experiment.</blockquote><p>Preview allows experiment managers to find issues in the experiment setup, or issues in the development implementation or even failures in end-to-end integration BEFORE putting this behavior out for users.</p><h4><em>Preview vs Multi Preview vs Opt-In</em></h4><p>At Walmart we have a couple interchangeable terms when referring to experiment preview. For one we have a dedicated team that manages the experimentation process at Walmart. The experimentation team likes to use the term “Opt-In” to an experiment. Typically one thinks of opt-in as that little checkbox on a signup form that says you are allowing some business to spam you emails of sales or newsletters. In our context the opt-in is just a way of forcing yourself or whoever is setting up the experiment into a variation to allow them to see the modified experience.</p><p>Walmart’s A/B experimentation platform is named Expo. Expo has, in addition to preview, a multi-preview option. Multi-preview allows an experiment manager to select multiple variations setup on different experiments (which are mutually exclusive, meaning not overlapping) and preview into all at once. For example, there might be an experiment running on the home page of Walmart.com and a different experiment running on a category page and yet another experiment running on the shopping cart checkout. Multi-preview allows the user to opt-in to all these variations at one time so they can verify the user experience across the verticals.</p><h4><em>How does Expo implement preview?</em></h4><p>Without going deep into the magic of Expo, through a UI tool we allow users to manage experiments as well as preview or opt-in to an experiments control or variation. When the user clicks to preview a variation, Expo sends them over to Walmart.com with a URL parameter flag which tells our experiment assignment engine that the variation should be shown.</p><p>From the Expo UI the way to preview a variation looks like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V3D4VMzE7QYISekAQ9CNwg.png" /><figcaption>Experiment Preview in Expo</figcaption></figure><p>Clicking the preview icon will send you over to Walmart.com showing the changed behavior. The image below is a mock experiment where the variation has an altered delivery message with a personalized name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xcuN5a8ZJeyYsQBYWojbKw.png" /><figcaption>Side-by-side of Control and Variation from preview</figcaption></figure><h4>The Preview Assurance</h4><p>Running experiments in a production environment should be ensured just like any other change you would push out to production. Just like you wouldn’t push out a development change without passing unit, functional, and performance tests. Preview is the way to make sure the changed behavior will not present a negative or unexpected experience to the user. I hope this helped show the importance of previewing your A/B test experiments. Now go test some previews!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f594403c774" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/on-a-b-testing-preview-4f594403c774">On A/B Testing: Preview</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons Learned Developing an A/B Experimentation Tool at Walmart Labs]]></title>
            <link>https://medium.com/walmartglobaltech/lessons-learned-developing-an-a-b-experimentation-tool-at-walmart-labs-4000b8bab5d?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/4000b8bab5d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[software-design]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Mon, 30 Jul 2018 23:09:17 GMT</pubDate>
            <atom:updated>2018-07-30T23:09:17.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s4V0oFXzzDHa-XgKfLjFTg.jpeg" /><figcaption>Photo credit: <a href="https://pixabay.com/en/success-challenge-mountain-summit-3521937/">Claire05</a></figcaption></figure><h3>A Metric Challenge</h3><p>This year, Expo, the A/B experimentation platform that was built for Walmart apps and websites has reached five years of maturity. With this milestone has come many challenges designing a platform to support such a massive scale of operations and number of teams. In the early design of our tool we missed out on building in some basic good design principles.</p><p>With one feature in particular we didn’t look ahead to what the feature may become in the future and didn’t start off with a flexible enough design that could evolve to that future. As a result of this early design, this feature became one of the larger challenges that forced us to go through a number of small and large scale redesigns over the years. This feature was <em>metrics</em>.</p><p>In order to understand if we could have avoided, or at least minimized, the large scale redesign of metrics we’ll need to first understand the software environment of Walmart at the time. We’ll get into that in the section “The way things were” as we take a self reflective look back during the early design of this feature. Before we can dive into what we did wrong I need to first explain what a <em>metric</em> actually is at Walmart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzaje3QbQu0jPNgxa0mFmw.png" /><figcaption>One Metric from Expo</figcaption></figure><h3>Metrics</h3><p>I am the front-end tech lead of Expo. My team provides the interface for internal Walmart users to create, run and monitor experiments on the various Walmart apps and websites.</p><p>Metrics are one of core foundations of our tool and an integral part of how things work. With A/B testing you need to be able to track when a user visits a page or when a user has been exposed to a different variation of a page. We call this tracking a <em>metric</em> and we use this metric to report on how a modified version of a page, or variation, is performing against the default version of that page, or a control.</p><blockquote>Metric vs. Measurement Point vs. Beacon</blockquote><p>The word <em>metric</em> has caused much confusion in the past, especially within the Expo team. This is because depending on what phase of the experimentation lifecycle you are in a metric will go by different names. Let me first start off by clarifying some of the terminology we use at Walmart and give an overview the phases these terms fall into.</p><h4>Definitions</h4><ul><li><strong>Beacon</strong> is an object of data sent by different components from Walmart.com fired at various page loads or user actions.</li><li><strong>Measurement point</strong> is used by Expo to track and report on how an experiment is performing. Beacon is one type of data that is evaluated by a measurement point.</li><li><strong>Metric</strong> is typically some numerical count or percentage that is displayed in a reporting graph or chart that provides insight on the performance of the experiment. Metrics are based on measurement points.</li></ul><p>A/B experiments have two primary metrics that are needed: Assigned and Qualified.</p><ul><li><strong>Assigned</strong> are users that visit the Walmart app or site and who get assigned into a running experiment (either control or variation).</li><li><strong>Qualified</strong> are users who have been assigned into a running experiment AND who have visited or seen the page or element containing the different variant or treatment.</li></ul><p>Now lets take a high-level look at the flow of these terms in the different phases of experimentation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mIsSnLujY-bMtpEt_NTgkA.png" /><figcaption>Expo Metric Flow</figcaption></figure><p>In phase 1 an experiment is setup and configured with measurement points. Once an experiment is ready to go we start it, meaning that it is ready for live traffic (ex. customers visiting Walmart.com) to get assigned. In phase 2 customers are assigned to the experiment and the user’s experience (ex. click-through data) is captured via beacons. In phase 3 the user data is analyzed and reported on back to Expo in the form of metrics!</p><h4>Action &amp; Context</h4><p>A measurement point, in the context of Walmart.com, is something that maps to attributes of a beacon. A beacon has many attributes associated with it, one of which is <em>action</em>. The <em>action</em> attribute relates to the page which fired the beacon. Meaning there was an event, in this case a page load event, that triggered a call to a beaconing service API. For example, the homepage has an action of “homepage”.</p><p>In some case we may need a little more context about this event. The beacon object also has an attribute called <em>context</em>. The <em>context</em> attribute on homepage is simply <em>Homepage</em>. In other cases the <em>context</em> attribute may be more descriptive to the event which fired it rather than directly correlating with the action.</p><p>In the early design phase of the Expo these two attributes, primary the <em>Action</em> attribute, made up the foundation for how the tool understood measurement points and metrics.</p><h3>The way things were</h3><p>When I joined the Expo team four years ago our definition of measurement point was very simplistic. App teams developing various pages and components would define the <em>action</em> and <em>context</em> for their beacons. Our Expo team would update our tool to support the new measurement points and metrics. The world was simple and well defined.</p><p>When the UI needed to read reporting data from time series databases it used the defined metrics with <em>action </em>and<em> context</em>. When the UI needed to populate a measurement point dropdown field the values were <em>action </em>and<em> context</em>. Throughout our UI these two attributes were the foundation for much of the code surrounding measurement points and metrics. Because of this early adopted and simplistic definition of a metric much of the early design around metrics in the UI and service was hard coded around the <em>action</em> and <em>context</em> attributes.</p><h4>A Hard Coded Problem</h4><p>Like anything hard coded in a software developer’s world, changes mean new builds. This reality was acceptable when there were only an occasional request every few months for new metrics. Doing a new build wasn’t too much of a hassle. But when we started getting handfuls of requests for new metrics every sprint it went from just an annoying task to eating into the velocity of what we could produce.</p><p>Below is a snapshot of our service and UI code from a few years ago. The service code below defined the <em>actions</em>, what Expo used to map measurement points with beacons, as type-safe enumerations.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/616ffb9eaf6641fc627dc1cfdf6e120c/href">https://medium.com/media/616ffb9eaf6641fc627dc1cfdf6e120c/href</a></iframe><p>And here is how the UI defined a metric to be displayed in the various dashboards and real-time monitors.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3aba6ca25d2072f1326c5c55308fd59d/href">https://medium.com/media/3aba6ca25d2072f1326c5c55308fd59d/href</a></iframe><p>You can see from this code that when a requirement came in to add a new measurement points we had to make code changes in both the service and UI, publish new builds for each, and deploy. (You’re thinking, maybe selfishly they built job security into their tool?)</p><blockquote>Job security = every developers dream?</blockquote><h4>Configuration Based Solution</h4><p>A few years ago I came up with a design to address the front-end UI portion of our hard coded problem (Yes, we partially fixed this problem years ago, sorry job security). At the time, due to external systems that call our service, we didn’t have the option (or high enough priority) to do a redesign of the service enumeration code. Part of this solution I developed was a configuration based metric definition model. This model was a single multipurpose JSON structure that was used by the UI in the following ways:</p><ul><li>In an experiment setup form to populate a multi-select dropdown of metrics to be reported on (see definition on <strong>assigned</strong>)</li><li>In an experiment setup form to populate a multi-select dropdown of metrics to be qualified on (see definition on <strong>qualified</strong>)</li><li>For fetching the analytics data generated by these metrics from three different reporting sources: a time series database (kairos), indexed mapreduced NoSql database (Couchbase), and an older in house stream processing system (mupd8)</li><li>Real-Time dashboard display of metrics from different reporting sources</li><li>24hr monitor display of metric data with ability to display data from different reporting sources</li><li>Experiment results report with ability to display data from different reporting sources</li></ul><p>A core component of this solution was what I called a “metric definition” model. This model is what allowed us to define a metric and this same object could be used in all of the areas listed above in the UI.</p><p>Below is an example of one of the metrics defined in this model. This metric is one for a made up page called <em>TV View</em> and it reports the count to people who visited the Walmart site, were assigned to an experiment AND navigated to this TV page. In the model we have attributes that relate to how to <strong>fetch</strong> data for this metric from different reporting sources and how to <strong>display</strong> data for this metric in different reporting tables.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6475e958312c8559ad6551c092d99713/href">https://medium.com/media/6475e958312c8559ad6551c092d99713/href</a></iframe><p>You can see from the example there is a bunch of duplicate attributes. This model was intentionally designed as a Frankenstein object, a JSON object merged together from many other objects. The goal when designing this model was to present a single configuration point to add a new metric while leaving much of the existing code that uses these object intact. The alternate option was to refactoring many different and complex pieces of the code that use this data. In designing this feature we weighed in the time and effort of refactoring and decided the cost was much greater than going with this metric definition solution.</p><p>This solution worked great for the past couple of years. Because the metric definition was configuration based meant that it didn’t require code changes or deployments for the UI. It was easy enough for the development team to add in new configurations when we got requirements for new metrics or when we had a new tenant that wanted to use our tool, and requests for new metrics were not frequent enough to interrupt our daily work.</p><blockquote>As things go, things evolve</blockquote><p>As things evolved such did the need of a more refined method for identifying a metric. No longer was a simple two attribute model (action and context) enough for more in-depth reporting on events. Soon came the requirement to allow the experimenter to dig into these complex attributes within the beacon object so they could be qualified and reported on. Rather than an ever growing static set of measurement points we found a way these metrics could be defined dynamically.</p><h4>The way things are</h4><p>A couple years after developing the configuration based solution our Expo tool looks very different. This past year our team designed a “smart measurement point” for which we have a <strong>patent pending</strong>. This design no longer has fixed enumerations for measurement points in the service. Measurement points are identified using a <em>dynamic query expression language </em>(the details of which I will leave for a future post by one of my more capable teammates). For now I will just give a high-level overview.</p><h4>Static to Dynamic</h4><p>Most experiments are still setup in Expo with measurement points configured on those two original attributes: action (a) and context (ctx). Which is still supported and can be written as follows as a query expression.</p><pre>query_map[‘a’]==’pageview’ and query_map[‘ctx’] == ‘tvpage’</pre><p>However the real power of this query expression language is that it allows us to dive into that complex beacon object and match on more refined attributes. Below is a partial beacon from Walmart.com from a page with TVs. One note on this, I say partial beacon because I remove about 90% of the beacon data to showcase a simple example.</p><pre>https://beaconserver/beacon?bla={&quot;bla1&quot;:{&quot;i&quot;:&quot;123&quot;,&quot;j&quot;:&quot;TV&quot;}}&amp;a=pageview&amp;ctx=tvpage</pre><p>The corresponding query expression that would match on the above beacon would look something like this.</p><pre>query_map[&#39;ctx&#39;] == &#39;tvpage&#39; and query_map[&#39;a&#39;] == &#39;pageview&#39; and query_map[&#39;bla&#39;].indexOf(&#39;bla1&#39;)&gt;0 and query_map[&#39;bla1&#39;].indexOf(&#39;i&#39;)&gt;0 and (c:extract(query_map[&#39;i&#39;],&#39;bla1.i&#39;) == &#39;123&#39; or c:extract(query_map[&#39;j&#39;],&#39;bla1.j&#39;) == &#39;TV&#39;)</pre><p>You can see the URL parameter “bla” has a value which is an object. Within this object we want to match on a specific set of IDs, in the above example “123” or “TV”.</p><p>As you can see the query expression for digging into the beacon object can get pretty hairy. Searching for index match, extracting data by keys, logical expressions, etc. I assure you the underlying code to get this working is equally as complex and thought out. The team did an amazing job building out this powerful feature and it was no small task.</p><h3>Refections and Take Aways</h3><p>If we had put all this effort in the early stages of building out Expo there is still a chance that we might have got things wrong. Trying to predicting future behavior, especially software behavior, five years out is probably a bad idea (equally as bad to try and predict future human behavior). Additionally, all that design work upfront would have been over-engineered for the 99% of use cases in the past five years. That is not to say there would not have been some level of early adoption of smart measurement points.</p><h4>Look Ahead</h4><p>A good practice during the design phase is to look ahead to the future and be aware of the cost and impacts if you needed a major redesign. But also be careful to not over-design upfront. We have had plenty of features that we over-engineer with features that we never ended up having a use case for.</p><blockquote>Design the tricycle that can become a self-driving car</blockquote><h4>Flexible Design</h4><p>Make sure your initial design is flexible enough for evolution to occur, i.e. be wary anytime your design includes enumeration. We had good reason at the time to build in enumerations to our service, primarily to enforce restrictions on how are APIs were used by external systems. Looking back we could have accomplished these restrictions in ways that didn’t require a code change to add a new action. Would such as design have helped us evolve to smart measurement points with much less pain? The same could be said for the early design of our UI and making considerations for a configuration based design rather than hard coding metrics.</p><h4>Considerations</h4><p>When designing a major feature that impacts foundational elements of your application you should consider the following:</p><ol><li>As the platform evolves what will be the biggest pain points of the current design?</li><li>What are the cost and trade-offs of doing a more future proof design upfront?</li><li>What are the estimated cost and effort of doing a major redesign in the future?</li></ol><h4>Conclusion</h4><p>Expo has come a long way in the past five years. It has evolved a ton, each time becoming increasingly more mature as a platform for Walmart. It has helped launch some of Walmart.com’s largest changes such as the latest redesign of the website launched in May 2018. Requirements will continue to evolve (hopefully for us <em>metrics</em> are done evolving for now). There is no masterful future proof design that will curtail evolution, especially in software. Your best tools are to be thoughtful and aware in your design upfront and minimize the ways you maybe hard coding yourself into a box.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4000b8bab5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/walmartglobaltech/lessons-learned-developing-an-a-b-experimentation-tool-at-walmart-labs-4000b8bab5d">Lessons Learned Developing an A/B Experimentation Tool at Walmart Labs</a> was originally published in <a href="https://medium.com/walmartglobaltech">Walmart Global Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Better Developer: WTF is Reflow?]]></title>
            <link>https://medium.com/series/better-developer-wtf-is-reflow-f91db38210a7?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/f91db38210a7</guid>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Sun, 15 Apr 2018 16:37:15 GMT</pubDate>
            <atom:updated>2018-04-15T16:37:15.806Z</atom:updated>
            <content:encoded><![CDATA[<h3>WTF is Reflow?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/534/1*wTAHxlc6wPGbuS_3H2ZCeQ.png" /></figure><p>Whether you’re a front-end developer, back-end developer, or just some dude that surfs the internet, you have witnessed browser reflow.</p><blockquote>Reflow is also known as layout calculation.</blockquote><p>This is when your browser calculates the positions of all the stuff to show you on a webpage. Like when you scroll down through your endless facebook news feed.</p><h4>Render</h4><p>Reflow is just part of a larger process called <strong>Render</strong>. Which is the magic your browser does to load content done through a thing called the <strong>Rendering Engine</strong>.</p><p>You can see this magic happening first hand by opening your browser’s <em>Developer Tools</em> and taking a look at the Performance tab →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xFskiwm5aGVY91x4YVKvEA.png" /><figcaption>Chrome Dev Tools</figcaption></figure><p>After the rendering engine does its magic (including calculating those layouts) it then <strong>Paints</strong> final the results to the screen.</p><p><em>And whallah…</em> your favorite social media or eCommerce shopping site is ready for your consumption!</p><p>I hope you enjoyed the first part of this series on reflow.</p><p>More to come on other topics with the goal of smartening up front-end developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*WBGTEMO73du00g0vh6PBLg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f91db38210a7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A productive morning begins with a productive night.]]></title>
            <link>https://medium.com/@justin.rubin/a-productive-morning-begins-with-a-productive-night-9aab1c3de66f?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/9aab1c3de66f</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[sleep]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Mon, 19 Mar 2018 03:58:35 GMT</pubDate>
            <atom:updated>2018-03-19T03:58:35.800Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6KSinGmChQgMNLhRAypmZg@2x.jpeg" /></figure><p>When I have a productive morning I set myself up on a positive trajectory for the day. This usually results in a satisfying self reflection on my day. I begin the day with some small victories (paying bills, cleaning out my inbox, going for a run) and these small victories have a positive spiral on my attitude by fueling me with a feeling of accomplishment.</p><blockquote>With the right attitude and a clear focus on whatever the priorities are of the day I achieve better results and are generally a happier human.</blockquote><p>A productive morning is hard when you have interruptions. That is why I have a rule, <em>the earlier the better</em>. The earlier you can wake up, the more time you’ll have before interruptions begin. I’m not one to say I don’t struggle or have trouble finding motivation in the hours before the birds rise. And I don’t at all agree with the mantra of trading sleep for success. On the contrary, <em>sleep is key</em>.</p><h4>Sleep</h4><p>Having a productive night sleep, not just “putting in the hours”. That means putting some effort into self analysis and reflection on your sleep patterns. How much sleep are you actually getting? How restless are you in the night? What are the amount of hours you need at night to feel restored in the morning? A good night sleep will make it easier to focus and help with your motivation. Focus and motivation are key predecessors to a productive start of your day.</p><blockquote>I realized the correlation of a productive morning and my overall happiness of my being.</blockquote><p>I have been getting up at 5am for years. I realized the correlation of a productive morning and my overall happiness of my being. But I had mornings where I could not find motivation and would waste a perfectly good morning half a sleep sipping coffee for an hour.</p><h4>Data</h4><p>It wasn’t until I got a Fitbit (substitute with your sleep tracking device here) which started tracking my sleep patterns that I became aware of the reasons for my lethargic mornings. I finally had some data insights to my sleep patterns. I knew from when I woke up during the weekends that my body typically feels well rested in the morning after I get about 7.5 hours of sleep (when I’m run down or have a cold I typically tack on an hour). So based on that assumption I was typically going to bed between 10pm and 1030pm and waking up at 5am. Once I started looking at my sleep data I realize I was only getting about 6 hours of sleep a night. What I didn’t understand with my routine was that in addition to the 15 minutes or so to fall asleep I had about 30 minutes of restless sleep a night. Based on this new revelation I started adjusting the time I went to bed. I moved my bedtime up to give my body the rest it needed. This has improved my focus and motivation in morning setting myself up for a productive and successful start.</p><h4>Conclusion</h4><p>I won’t say every morning is easy or productive. They typically go out the window when I’m fighting a nasty cold in exchange for rest for my body. Some mornings my boys decide they want an early productive start of their day (see reference to interruptions above). But, on average, mornings are productive, my attitude is positive and I am a more happy human and it all starts with the night.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9aab1c3de66f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Magic: The Gathering — An engineer's guide to happiness]]></title>
            <link>https://medium.com/@justin.rubin/magic-the-gathering-an-engineers-guide-to-happiness-eeaa8cd69f31?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeaa8cd69f31</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Sat, 06 May 2017 04:49:25 GMT</pubDate>
            <atom:updated>2017-05-06T04:49:25.531Z</atom:updated>
            <content:encoded><![CDATA[<h4>An engineer&#39;s guide to happiness and self improvement through the exploration of the unknown.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*g3MRt0qLvTyh8K4_6UbTEQ@2x.png" /></figure><p><strong>Full disclaimer</strong> I’ve never played <em>Magic: The Gathering</em> (nor is this a post on the card game, apologies upfront) however I did have cousins who were obsessed with the game back in the day.</p><h4>Magic</h4><p>Magic is anything we see that we don’t understand, have little knowledge of how it works or how it came to be. The Google search engine, magic. Self driving cars, magic. Amazon same-day delivery, magic. Apple Pay, magic.</p><blockquote>“An observation of magic is a realization of an opportunity for improvement.”</blockquote><h4>Awareness</h4><p>The act of acknowledging something as magic is the first step in being more aware of, present, and interested in the world. The more magic we see in the world the more aware we are of how little we know. This awareness is a good thing. And it is the first step in our journey toward self improvement.</p><p>When our observance of magic has ceased or declines in frequency, when we have stopped seeing magic in our day to day, it is an indicator that our growth and development has become stagnant at least in our current context or environment.</p><h4>Disparity</h4><p>Like many things in life, learning follows ebbs and flows. We start a new job and learning and self growth go up. After a period of time learning typically goes down as we fall into routine. This fall as well as the routine typically coincide with a decrease in the observance of magic. A scarcity in the things we see that make us say “Whow! How’s that work?”</p><p>This decrease occurs when we have mastered a new skill, become sufficient enough at our job to where learning has ceased, or when we outgrow or grow beyond the skill set of our peers. A recognition amongst peers as being an expert is a strong indicator that the learning tide is ebbing. This feeling or encouragement that we have achieved some level of expertise is good to the extend that it bolsters our confidence and rewards our hard work. However it can be dangerous when it fosters a comfortable learning stagnation.</p><blockquote>“If you are the smartest person in the room, you are in the wrong room.”</blockquote><p>Like many, I found myself in this situation at past jobs. I begun to notice the disparity of magic between the 6 to 8 month of starting a job. My team, many of whom had been with the company 10 plus years, had already begun to seek me out as the subject matter expert. Once I realize this I knew I had outgrown my peer group and was no longer in an environment that would foster my growth.</p><p>It is important to have a peer group that will challenge you and make you understand how little you actually know (knock you back to reality) or at least present you with a different perspective. Surrounding ourselves by peers smarter than us is one way which helps allow for an active observance of daily magic.</p><blockquote>“The ability to see magic and seek magic in our daily activities is key to our happiness.”</blockquote><p>Seeking out magic helps bring us back to reality when we fall into the belief that we have mastered something or have become experts in a domain (or feel like we are just darn right amazing). The act of seeking magic begins us on the road to happiness. And the road of self improvement and growth is traveled by knowledge gathering.</p><h4>The Seeker</h4><p>Let’s delve into magic in the realm of programming. Looking at an example from my early experience toying with magic, more specifically JavaScript, which has been my apprenticeship and muse as of the past few years.</p><p>Starting off learning a new language every book on the topic is like a book of <em>witchcraft and wizardry</em>. So much magic, so little time.</p><blockquote><strong><em>Sidebar</em></strong><em>: </em>Spells and Where to Find Them</blockquote><blockquote>A few of the better JavaScript spell-books I’d recommend if you’re just starting out:</blockquote><blockquote><em>- Javascript: The Good Parts</em></blockquote><blockquote><em>- Head First JavaScript Programming</em></blockquote><blockquote><em>- JavaScript &amp; JQuery: Interactive Front-End Web Development</em></blockquote><p>In addition to a good read here and there, the open source community has done wonders for developers of all programming languages. I’d argue none more than for the JavaScript language.</p><p>There are endless libraries of magic to be gathered on sites like GitHub to snippets of code on StackOverflow, some which are very powerful. This leads to lots of novice developers welding these tools with little to no understanding of how they work (I strongly count myself in this group).</p><blockquote>The Planeswalker: Beings capable of traversing the multiverse and performing magic.</blockquote><p>When I joined my team <em>@WalmartLabs</em> they already had an established tool built on a framework. Being a relative n00b to JavaScript I didn’t understand the magic of many of the libraries we were using in our framework.</p><p>Like any good developer I jumped right into coding. I begun developing code in the <em>get-it-working</em> mode welding tools I had little understanding of, tools such as BackboneJS. In debugging this Backbone data object I could see it contained what looked to be my data it just wasn’t in the JSON structure with which I was familiar with accessing.</p><p>I didn’t understand how to get my data from this complex looking object. I new it wasn’t JSON but I didn’t understand the magic that made it what it was or the power of this Backbone model. So I did what any <em>good</em> <em>developer</em> would do and I found a workaround. (I used <em>good developer</em> sarcastically in this context. I really hope I’m in the minority though I fear that is not the case. For the record what I should have been was seek understanding, in this case, through a combination of communicating with peers and researching on Google. Which is almost always the best course of action prior to any scope task. But I digress). What I discovered through much trail and error was that if I just did <em>JSON.stringify</em> and then <em>JSON.parse</em> I now had that JSON object I know and loved.</p><p>Now after a few years of playing with Backbone I have a much better understanding of the library. I have built a good mental model of how it was developed and how I could go about recreating a similar library (at least in part at the most basic level).</p><blockquote>The Mental Model</blockquote><p>A Backbone object, as I have come to understand it, is similar to POJO in java. Maybe build using a constructor pattern, having a constructor (for initializing) as well as accessor methods (getters and setters) for accessing attributes and storing local variables. (The Backbone object has much more magic it can do such as event handling, element binding and is structured to support MVT but I’m focusing on a just a high level understanding.)</p><p>The thought process I use in this example is really all you need to start unraveling the magic. Some level of understanding. The process of creating a good mental model, one which you could describe with some level of detail to someone else or build it at least in part.</p><h4>The Gathering</h4><p>It is not until you start to understand, start to unravel and start to build a good mental image will the smoke and mirrors begin to clear, leaving you with a newly acquired spell/skill. This is the process of gathering.</p><blockquote>Where To Start</blockquote><p>The BackboneJS library is a much more complex example of magic. If you are just starting out I’d recommend trying to deconstruct a library like UnderscoreJS. This library is a basic necessity when it comes to NodeJS or front end JavaScript development. And as long as you have a foundational knowledge of programming (if, else loops etc) you can get a handle, relatively easily, on how you’d go about recreating many of UnderscoreJS’s magical functions.</p><p>Regardless of the library or the language or even the context of programming you can follow these simple steps on your own path towards gathering.</p><ol><li>tag things as magic</li><li>seek to understand them</li></ol><p>As a prerequisite to step one, be sure to put yourself in a context where magic is flourishing. And step two will be accomplished by way of building a mental model.</p><h4>The Street Magician</h4><p>Street magicians have a handful of magic tricks at given time. They will learn a trick and then practice over and over until they can execute it, until they can perform the magic. The trick then becomes a new tool in their box of tricks. A new skill.</p><p>This practice is no different from a software developer learning a new programming language, a library or a design pattern. These things are all magic until we become the magician. Until we understand them enough to have a strong mental model of their composition. Until we can use them to perform the magic. And like a good street magician we must collect these magic tricks and build our skill set.</p><p>It is in the exploration of the unknown and the act of collecting magic that challenges us, gives us purpose and gives us self satisfaction. It makes us happy developers.</p><p>Go forth and gather.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeaa8cd69f31" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[There and Back Again: A software QA’s journey to developer.]]></title>
            <link>https://medium.com/@justin.rubin/there-and-back-again-a-software-qas-journey-to-developer-e92db8ad407c?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/e92db8ad407c</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-developer]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[quality-software]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Thu, 02 Feb 2017 15:59:36 GMT</pubDate>
            <atom:updated>2017-02-02T16:05:15.380Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8zmrSUwc-oN9IYXz_2BrQw.jpeg" /></figure><p>For starters a vast majority of the so called QA engineers out there do development and coding on a daily basis. They have framework design reviews, code reviews, they maintain CI pipelines and check-in code to Git. Especially these days where most companies have some form of functional automation tests. QA engineers are trained to look at the big picture not just the features but the application as a whole from a user’s perspective. They are involved in the software life cycle and the development life cycle.</p><blockquote>I believe more developers would benefit from a strong foundation in quality testing.</blockquote><p>I believe more developers would benefit from a strong foundation in quality testing. I have seen far too many developers push out untested, poorly written code over to QA engineers. Solely relying on the QA engineer to find the bugs. Why and how did this mind set arise that it is the job of the QA engineer to enforce quality? There are two failures that I have seen to lay blame. First the Agile Scrum attempts to track performance of teams and individual developers by velocity, which encourages what I call the “throw it over the fence and see what happens” scenario. Where developers to push poorly written, untested code with little to no unit tests out as fast as possible (forget any type of functional tests) and hope the QA tests more than just “<a href="https://en.wikipedia.org/wiki/Happy_path">happy path</a>”. And second, is that many developers don’t know how to adequately test their code for quality.</p><blockquote>I have always been a late bloomer in regards to the societal norm of my generation.</blockquote><p>My story starts like this. I have always been a late bloomer in regards to the societal norm of my generation. I didn’t start driving till I was 17. Didn’t have my first serious girlfriend until I was 21. Didn’t graduate college until I was 24. Didn’t get married until I was 27. Didn’t have my first child until I was 33. And didn’t become a software engineer (officially) until I was 37.</p><p>I didn’t really get into programming in college. I programmed solely for the purpose of completing an assignment. And even then, in part due an intense social anxiety and in part due to the overcrowded and poorly structured educationally system, handicapped my learning and left me with a lack of confidence in my abilities.</p><p>Adding fuel to fire after graduating I entered an economy that was struggling and a lack of jobs in the engineering field. After many interviews I ended up settling for a contractor position as a QA engineer. For a few years I jumped around between QA engineering contracts.</p><blockquote>I developed a passion for delivering a quality user experience.</blockquote><p>I always had a good technical understanding of software which inherently made me very good at ensuring quality. And finding bugs always came easy to me. But thinking about and testing an application from a user perspective on a daily basis set the foundation for the importance of quality. In addition to this, or as a result of, I developed a passion for delivering a quality user experience.</p><blockquote>As a QA engineer I found a passion for programming.</blockquote><p>At many of the companies I worked at QA engineers typically had periods of downtime. During my time at <a href="http://it-consultants.com/">ITC</a> they still operated waterfall style, with a 3 month development phase followed by 1 month of QA. This extra time allowed me the opportunity to challenge myself with side projects of my own choosing. I spent a lot of time automating tasks with elaborate shell scripts, such as a process monitor that would alert of application failure and auto restart (just our dev instances, we were our own DevOps and this was way before <a href="http://oneops.com/">OneOps</a>). I powered up my bash_profile with alias and functions such as deep find which recursively searched nested directories. And I built tools like a data log parser that charted users click throughs and allowed us to see areas of low usability. Many tech companies these days market this type of work as 20% innovation time. As a QA engineer I found a passion for programming. I sought to exercised this passion in every job I’ve had since.</p><blockquote>The gateway language for me was VBA.</blockquote><p>The gateway language for me was <a href="http://www.excel-easy.com/vba.html">VBA</a>. Microsoft Visual Basic for Applications. Working as a QA engineer at Sony Electronics (another 1 year contracting job) we worked primarily on Sony Vaio laptops. I found that I could launch Excel, switch over to the development editor and build little GUI programs that would change button colors, calculate stats, analyze data, it was awesome. In school I never built anything that didn’t result in some output in a terminal. And Java (the language I primarily used during my undergrad) always required downloading and installing JDKs, JVMs, IDEs and having to set environment and path variables, all of which took away from time spent coding. VBA on the other hand had none of that. It ran right out of Excel. VBA itself was an interested language. It had syntax like JavaScript but it was static, needing to be compiled, and had strong typed variable declarations like Java. That year during periods of downtime I build 3 or 4 micro tools in VBA.</p><blockquote>I worked to blur the lines between QA and development.</blockquote><p>At each job along the way I worked to blur the lines between QA and development. Even when these groups were physically structured by the company under different leadership, as was the case at FICO. I worked to train developers to understand, run, add and fix functional tests build by QA engineers. And as a QA I sat with developers working through code to find bugs. This helped to not only provide both sides with a better understanding of how the other did their job but it also empowered developers to assist in and be a part of the role of quality and vice versa.</p><blockquote>Back Again</blockquote><p>And that brings us to the Back Again. As a software developer I see applications and code through a different lens. One that is rooted in quality. I am still a quality assurance engineer, the only difference now is that day to day I focus on small incremental quality when building code. However I take the time each sprint to step out of my task based focus and look holistically at the application. Forcing myself to see from a quality viewpoint as the user would. This perspective switching is not easy, but another skill which needs to be constantly practiced.</p><p>As developers we naturally are attached to our features and our code because they are our creation. The skill is to detach yourself from a feature and see yourself as an owner of the whole application or even better as a user. On my journey as a developer my hope is that by being an advocate for quality, to lead by example and action, I will help to influence other developers. Software is easy to build but good software only comes with a dedication and focus on quality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e92db8ad407c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do you encourage and inspire an office culture of pathbreakers and peak performers?]]></title>
            <link>https://medium.com/@justin.rubin/how-do-you-encourage-and-inspire-an-office-culture-of-pathbreakers-and-peak-performers-be03e28db213?source=rss-9423f2f90e12------2</link>
            <guid isPermaLink="false">https://medium.com/p/be03e28db213</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[office-culture]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[peak-performance]]></category>
            <dc:creator><![CDATA[Justin Rubin]]></dc:creator>
            <pubDate>Fri, 18 Nov 2016 14:17:40 GMT</pubDate>
            <atom:updated>2017-02-02T16:05:50.146Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>How do you encourage and inspire an office culture of pathbreakers and peak performers?</strong></p><blockquote>Pathbreakers, as Anders Ericsson talks about is his book Peak, are “those experts who go beyond what anyone else has ever done and show us all what it is possible to achieve”.</blockquote><p>How can we breakdown this idea into something that can be applied within the work environment and within teams so we can build a culture pathbreakers?</p><p>The office culture must begin by setting the context. Establish a culture of interaction while encouraging innovation and pushing teams and individuals to be their best.</p><p>First, allowing for team and cross-team building activities and interaction on a daily basis. The foosball table at our office is one way which brings four people together for a brief time in the day for some healthy competition. We have a Slack channel running a bot that allows people to start and join a game as well as post statistics of all players. This builds cross-team sub groups within the office and is one way of encouraging interaction.</p><blockquote>Offering 20% time is a great start but are you encouraging or do know if individuals are using it?</blockquote><p>Next, breaking up the <em>sprint</em> and allowing room for creativity and innovation. Offering 20% time is a great start but are you encouraging or do know if individuals are using it? Are people who are innovating getting showcased and recognized? Establishing and encouraging motivation is a key characteristic of a pathbreaker. Motivation is built from intrinsic reward and self achievement which must be recognized and publicized by the team.</p><blockquote>Goals pay the bills but stretch goals mold the future.</blockquote><p>Finally, is your office culture <em>stretching</em> your team, not with overwork but with challenging and interesting tasks aside from the weekly run of features and tech debt. Goals pay the bills but stretch goals mold the future.</p><p>For software developers hack days are another great way to bring folks together that don’t regularly interact to build and innovate. I would argue however, that hack days don’t have as big as an impact on building an office culture of pathbreakers because of the infrequence of occurrence. Team building, 20% time and stretch goals are woven into the day-to-day and allow for an office culture to, at least begin to, cultivate pathbreakers and peak performers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be03e28db213" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>