<?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[Home Depot QuoteCenter - Medium]]></title>
        <description><![CDATA[Quoting. Simplified. - Medium]]></description>
        <link>https://medium.com/home-depot-quote-center?source=rss----848db73781cb---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Home Depot QuoteCenter - Medium</title>
            <link>https://medium.com/home-depot-quote-center?source=rss----848db73781cb---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 21:46:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/home-depot-quote-center" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How about this instead?… Or, The Art of Redirection]]></title>
            <link>https://medium.com/home-depot-quote-center/how-about-this-instead-or-the-art-of-redirection-386bf2056a2e?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/386bf2056a2e</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[saying-no]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Michael Berkompas]]></dc:creator>
            <pubDate>Fri, 13 Oct 2017 20:12:32 GMT</pubDate>
            <atom:updated>2017-08-17T23:23:19.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KzSzDFTAFqkbM9Z9KLlxAg.jpeg" /></figure><p>Saying “no” to a co-worker’s crazy idea may not always be the right answer. If you’ve ever been in a strategic decision making role such as that of a Product Manager or any other type of leader, you will be faced with many situations where the technical answer is a firm “no,” but the circumstances dictate a more nuanced approach. In fact, you may have even developed the skill of how to “say no nicely.” If so, this technique may be old hat for you, but for those of you looking to develop your leadership skills, you need to learn and practice The Art of Redirection.</p><p>How many times have you told someone “no,” to have them complain to their boss, go around your back, or build up barriers between you and them in the future? Team success depends on the level of trust between members of the team. When trust is low, bureaucracy and process abound. When trust is high, liberty and unhindered decision making flourishes. With every interaction on the team, you want to work to build trust. However, that naughty “no” word often gets between you and the very members of the team you depend on the most. These are the high energy people constantly coming up with new innovative (and often crazy) ideas eating up your valuable time as they push for the urgency and importance of acting on their latest idea NOW! Instead of seeing this as a drain on your limited time and mental capacity, however, you should begin to consider these people as a gift.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*smDqOtLA8R4-AH29bST5FA.jpeg" /><figcaption>Me and my 2 1/2 year old filly, Stardust</figcaption></figure><p>Let me explain with a metaphor. One of my hobbies is riding and training horses. Now, there are many similarities to working with horses and leading people. Take for example training an unstarted colt we’ll nickname, “Sludge.” Sludge has the body mass and muscle to work hard and do well in his life as a horse. Unfortunately, however, Sludge is as dull as a sledgehammer. His attitude towards life appears calm on the outside, but that’s only because he intends to only ever do the absolute least amount of work he can get away with. Ask him to work and you will see a very different side of Sludge as he tries to buck you off, bite your leg, or remove the pressure you’re putting on him in many other ways. Sludge may look like a good horse out in the pasture, but he is one of the most difficult to train because he doesn’t have something we horse people call, “Try.” Now, compare Sludge to another horse out in the pasture. Her name is “Skitz”. Skitz never seems to grow no matter how much food you feed her. She doesn’t look pretty with her bony frame and poor breeding and she hasn’t been started yet either. When you ride her for the first time, she zig zags all over the place alternately going every speed imaginable. Skitz fits her name well and doesn’t look safe or beautiful, but inside she has an attitude worth it’s weight in gold. You see, Skitz has “Try.” She doesn’t know what the right thing is to do yet, but that’s what the trainer teaches her as she develops. How? By redirecting her energy from the wrong things to the right things. That energy is a gift to the horse trainer. A gift Sludge will never give. At the end of the day, despite her poor appearance, Skitz will be the one winning the competitions while Sludge will be lucky if he ever makes it to a higher level than that of a trail horse.</p><p>Applying that back to our discussion about saying “no” and the Art of Redirection. Your co-workers with crazy (innovative) ideas are like the horse, Skitz. They don’t need to be told “no,” they need to be asked a question. And that question is simply this: <em>How about we do ______ instead?</em> The key here is to redirect the gift of their energy and ideas into something useful. When you’re successful at doing that, you’ve avoided ever having to say “no,” and you’ve built a partnership of teamwork and trust. Next time you need to say “no” to a co-worker, how about redirecting them in another direction instead? You might just discover the gift of co-workers with crazy ideas…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=386bf2056a2e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/how-about-this-instead-or-the-art-of-redirection-386bf2056a2e">How about this instead?… Or, The Art of Redirection</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservices: Passing Parameters]]></title>
            <link>https://medium.com/home-depot-quote-center/microservices-passing-parameters-96ecbbe9ca5d?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/96ecbbe9ca5d</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Jesse Johnston]]></dc:creator>
            <pubDate>Tue, 19 Jul 2016 17:19:03 GMT</pubDate>
            <atom:updated>2016-07-19T22:51:53.898Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the time your microservice API methods will take parameters. This post will review how we send parameters with a web request and how we interpret those parameters correctly on the server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F2G8eNC_Uv3mN76uDe9AuQ.jpeg" /></figure><h3>Passing Parameters in a Web Request</h3><p>Let’s consider how information might be communicated in a web request. First, what are the components of a web request? We have:</p><ul><li>The request verb and URL</li><li>Request headers (including cookies)</li><li>The body</li></ul><p>Below is a sample request. Since HTTP is a text-based protocol, I’m including not just the URL but also the headers and body as they would appear in the request (some headers have been omitted for clarity):</p><pre>POST <a href="http://api.teamjohnston.net/services/HomeDepot.Platform.Issues.Microservice/1.0.1/Issue/resolve/42?notify=all">http://api.teamjohnston.net/services/HomeDepot.Platform.Issues.Microservice/1.0.1/Issue/resolve/42?notify=all</a></pre><pre>Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVC...<br>Content-Length: 16 Content-type: application/json</pre><pre>{&quot;restart&quot;:true}</pre><h4>The Request Verb</h4><p>In the above request, the verb is POST. Verbs have distinct meanings. GET implies that we are reading or querying information. POST means that we are creating data (although POST is commonly used to update existing data as well). PUT specifies an update, and DELETE of course signifies a request for data to be removed.</p><p>By itself, the verb doesn’t communicate parameter information, but it does constrain our choices in how we specify parameters. A POST or PUT can include a request body, but a GET does not. Technically a GET request could include a body, but web servers will always ignore it.</p><h4>The URL</h4><p>At a minimum, the URL specifies the destination of the request, including a host (here api.teamjohnston.net) and optionally a port. By default, HTTP requests are sent on port 80 so no port is included in our example URL. The remainder of the URL are segments delimited by the / (slash) character. Typically the first few of these identifies a <em>route</em> for the request, which is information that the web server uses to determine what to do with the request. In our example, /services/HomeDepot.Platform.Issues.Microservice/1.0.1/Issue/resolve is the route information, which the server interprets as a request to the Resolve() method of the Issue class in version 1.0.1 of the Issues microservice.</p><p>Following any routing information, we might include segments of the URL that are parameter values. The remainder of our example URL is 42?notify=all. The question mark separates the URL path segments (on the left) from the query string on the right.</p><h4>Headers</h4><p>Following the verb and the URL, a request may contain headers, each consisting of a key and value. In our example, one of the headers has a key of “Authorization” and a value beginning with “Bearer”. Most headers have purposes that are predefined by the HTTP protocol. We can add our own headers however.</p><h4>Cookies</h4><p>Cookies are just a header where the key is “Cookie”. Cookies are returned in the response to a web request, and are then automatically included by the web browser in future requests to the same internet domain. Because cookies are specific to an internet domain, a cookie from teamjohnston.net will never be sent by the browser to facebook.com or any other domain.</p><h4>URL segments</h4><p>The URL path segments that are not host, port or routing information are interpreted as parameters by our microservice framework. In our example, there is one such value, 42. Only certain characters are allowed in a URL (letters, digits, dash, dot, underscore, tilde). Other characters (such as spaces) must be <a href="https://en.wikipedia.org/wiki/Percent-encoding">url-encoded</a> with a % notation.</p><h4>Query string</h4><p>A URL can end with an optional query string that is specified by a question mark and one or more pairs of keys and values. In our example, we have one pair: the key is “notify” and the value is “all”.</p><h4>POST body</h4><p>When the verb is POST or PUT, a request could also include additional text. This is known as the request body. The format of this text is specified by the Content-Type header. Our microservice framework expects POST body data to be in <a href="http://www.json.org/">JSON</a> format.</p><h3>Interpreting request parameters on the server</h3><p>Once a microservice API web request is sent to the server, the web server must read the API function parameters from the request URL, headers and body and map them to the parameters expected by the function. In the example above, we have the following possible parameters:</p><ul><li>42 (the last URL path segment)</li><li>notify=all (the URL query string)</li><li>{“restart”:true} (the request body)</li></ul><p>Note that I didn’t include any headers in the above list of parameters, as all of the headers sent had predefined HTTP purposes.</p><p>Let’s assume that the API method that we’re calling is Issue.Resolve(). See my previous post about <a href="http://teamjohnston.net/blog/2016/06/19/microservices-type-discovery/">type discovery and instancing</a> for details about how we determine which microservice class and method to call based on the request URL.</p><p>Once we have received the parameters, we need to associate them with the method arguments and convert them from their text form in the request to the types expected by the method.</p><h4>Which argument is it?</h4><p>Some request parameters are named. In the query string pair notify=all, we can deduce that the argument name is “notify”. Similarly, since the request body is formatted as JSON, we have keys that can be mapped easily to argument names (“restart”).</p><p>When a parameter is a positional URL segment, such as “42”, we need a little help. We don’t have explicit information about the name of the parameter in this case, so we use a left-to-right mapping convention to guide us in matching positional parameters in the URL with the method arguments. But this gets complicated when some of the arguments come from the POST body or the query string.</p><p>Rather than rely purely on convention, the Forge microservice framework uses server-side method annotation (and sensible defaults) to specify the source of method arguments. For example, the Issue.Resolve() method looks like this:</p><pre>[APIContract(APIContractVerb.POST)]<br>public async Task Resolve([APIQueryStringParameter] NotifyGroup notify, bool restart)<br>{<br>    ...<br>}</pre><p>Here we are specifying that we expect a POST (indicated by the [APIContract] attribute) and that <em>by default</em>, all the arguments to the method will be in the POST body. Any arguments that will appear in URL path segments or in the URL query string will need to be specifically annotated.</p><p>The notify parameter is specified as a query string parameter, and restart is not annotated, so we know that it will be present in the POST body. But what about the parameter “42”?</p><p>I mentioned in my previous <a href="http://teamjohnston.net/blog/2016/06/19/microservices-type-discovery/">post</a> that microservice API methods that are instance methods of a domain entity class require a specific instance Id parameter be supplied with the request. This lets us identify the correct instance to call the API method on. By convention, the URL for all Forge API instance methods contains the instance Id in the path segment following the API method name. So in this case, “42” is an implicit parameter that is used by the Forge framework, but is not passed to the API method itself.</p><p>For POST requests, the default parameter source is the request body. Since GET and DELETE don’t have request bodies, we expect parameters to appear in URL path segments by default, and we map them to the method arguments from left to right. Consider a method like:</p><pre>[APIContract]<br>public IEnumerable&lt;Movie&gt; GetAll(string title = null, string director = null)<br>{<br>    ...<br>}</pre><p>This API method appears on a repository class that represents a collection of entities, rather than an instance method of an entity class. That just means that there is no instance Id in the request URL after the /getAll segment. Thus, we expect that the URL might look like:</p><pre>/services/movieService/1.0.0/movies/getAll/Reservoir%20Dogs/Tarantino</pre><p>and result in the method call: GetAll(“Reservoir Dogs”, “Tarantino”)</p><p>Note that default values are present in the method signature, so for example if the director was not specified in the URL, the call to GetAll() would receive a null value for the director parameter. Note also that the default verb (if not specified in [APIContract]) is GET.</p><blockquote><em>Nullable parameters and default values</em></blockquote><blockquote><em>If a parameter type is nullable or has a default value in the method signature, extra care must be taken in designing the method signature. When specifying that such parameters will be in URL path segments, remember that the last segment included in the URL defines the last parameter value that will be provided to the method. The remaining arguments will receive null values (if nullable) or default values if a default was specified in the signature. This constraint doesn’t apply to query string parameters or POST body parameters since they don’t need to be ordered in the request.</em></blockquote><p>If GetAll() specified any parameters that should appear in the query string instead of URL path segments, we would ignore those when mapping the parameters found in the URL path. For example:</p><pre>[APIContract]<br>public IEnumerable&lt;Movie&gt; GetAll(string title = null, [APIQueryStringParameter] string filter, string director = null)<br>{<br>    ...<br>}</pre><p>A call to this version of GetAll() might be represented as this URL:</p><pre>/services/movieService/1.0.0/movies/getAll/Reservoir%Dogs/Tarantino?filter=Keitel</pre><p>Here we would still use the first URL path segment after /getAll as the title parameter and the following segment as the director parameter, even though filter is the second argument in the method signature.</p><h4>URL Method Templates</h4><p>The last mechanism Forge provides to determine how to match request parameters to method arguments is the URL method template. This template specifies the order of parameters that will appear in the URL path segments. You can also override the name of the method that should appear in the URL. For example:</p><pre>[APIContract(APIContractVerb.GET, &quot;getEffectiveAcl/{entityType}/{entityId}/{userId}&quot;)]<br>public async Task&lt;Acl&gt; GetEffectiveAclAsync(string entityType, int entityId, int? userId)<br>{<br>    ....<br>}</pre><p>The template is the second parameter to the [APIContract] attribute. In this case it doesn’t reorder the method parameters, but if the template specified {entityId} as the first parameter, we would interpret the first URL segment following /getEffectiveAcl as the entityId argument, instead of expecting entityType to come first as the method signature suggests. In this example the use case of the template is to allow a url of /services/…/acl/getEffectiveAcl instead of /services/…/acl/getEffectiveAclAsync.</p><h3>Type Conversions</h3><p>For the most part, parameter values that appear in the URL can be converted easily to simple types that are expected by the API method (such as string, int, enum, double, bool, DateTime). Because we want our API URLs to be human-readable and “hackable” (easily remembered and entered manually in the browser), we generally avoid complex parameters in URL path segments or in the query string. Anything that isn’t a primitive type would have to be JSON-formatted and URL-encoded, leading a very messy URL.</p><p>In the POST body, we fully expect complex parameter shapes that map directly to class type method arguments. We attempt to deserialize these to the target types, capturing the body parameters as strongly typed objects.</p><blockquote><em>GET and complex parameters</em></blockquote><blockquote><em>The reality of parameter complexity in API methods also leads us pragmatically to use POST instead of GET for query API methods that have many or complex parameters (arrays for example). Some browsers (IE) also have a URL length limit that prevents us from specifying a long parameter value in a GET.</em></blockquote><h4>Form data and file uploads</h4><p>A common scenario when calling an API method is to provide parameters specified in an HTML form submission. In this case the FormData object in the browser can be used to collect a set of keys and values. If any of the values are files selected by the user, the request body must be sent as multipart form data instead of JSON format. To indicate that an API method will receive form data, we specify one of the method parameters as having the FormData type:</p><pre>[APIContract(APIContractVerb.POST, &quot;uploadImage/{userId}&quot;)]<br>public async Task UploadImageAsync([APIPathParameter] int userId, FormData form)<br>{<br>    var image = form.Files.FirstOrDefault();<br>    await _userImageRepository.Upload(userId, image);<br>}</pre><p>Inside the API method, we can use the form parameter to get at any files uploaded in the form data (through the Files property) as well as any other form values (through the Parameters property).</p><p>Note that the verb for a method accepting form data must be a POST. The name of the FormData parameter is not important, as it represents the entire POST body.</p><p>The above method is a good example of many of the parameter mechanisms that we have described:</p><ul><li>Default parameter sources (form is a POST parameter because it is in a POST method and is not annotated)</li><li>Explicit parameter sources (userId would normally be a POST parameter, but here is annotated as being a URL path parameter)</li><li>URL template (the UploadImageAsync method is called using the /uploadImage endpoint)</li></ul><h4>Encoded parameters</h4><p>An additional annotation allows us to specify that a method parameter must be encoded. This is not encryption! We’re relying on SSL/TLS to secure the connection between the browser and our microservice. We provide simple encoding only to prevent casual inspection of sensitive parameters that might be sent to an API method during a debugging session. For example, the Identity microservice has an endpoint /user/changePassword that routes to this method:</p><pre>[APIContract(APIContractVerb.POST)]<br>public async Task ChangePassword([APIPostParameter(Encode = true)] string password)<br>{<br>    ...<br>}</pre><p>The Encode option means that the password parameter will be sent in base64 encoded form, and should be decoded before passing the parameter value to the ChangePassword() method.</p><p>As you can see, passing parameters from the client to the microservice API requires some thought, but the mechanisms are relatively straightforward. Annotations on the microservice class methods provide us with the information we need to easily interpret the source and form of the parameters.</p><p>In a future post I’ll discuss how these annotations can be used to surface information about the available microservice API methods and how to call them. This is particularly interesting for developers who want to build clients that call the API methods. They need to know the names and types of the API parameters, as well as whether each parameter belongs in the URL or request body. We’ll also see how JavaScript proxy scripts can be generated by the microservice itself to simplify the work of formatting requests in the client.</p><p><em>Originally published at </em><a href="http://teamjohnston.net/blog/2016/07/17/microservice-parameters/"><em>teamjohnston.net</em></a><em> on July 18, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96ecbbe9ca5d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/microservices-passing-parameters-96ecbbe9ca5d">Microservices: Passing Parameters</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservices: Type Discovery and Instancing]]></title>
            <link>https://medium.com/home-depot-quote-center/microservices-type-discovery-and-instancing-dcce38fd7bbf?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/dcce38fd7bbf</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Jesse Johnston]]></dc:creator>
            <pubDate>Tue, 19 Jul 2016 17:13:40 GMT</pubDate>
            <atom:updated>2016-11-21T17:22:43.151Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s suppose that a web client has the URL of your microservice endpoint. When the client makes a web request to that endpoint, how does the correct code get called on the web server?</p><p>Our microservice consists of code running on a web server organized into classes in an object-oriented language, and each microservice endpoint corresponds to a unique method in one of these classes.</p><p>In my <a href="http://teamjohnston.net/blog/2016/06/08/serving-up-a-microservice-api-naming/">discussion of endpoint naming</a> I used this microservice endpoint URL:</p><pre>/services/HomeDepot.Platform.Issues.Microservice/1.0.1/Issue/resolve/42</pre><p>In our microservice framework, the name HomeDepot.Platform.Issues.Microservice corresponds to the class library of that name. Issue corresponds to the class name, and resolve maps to a method named Resolve in that class. This naming convention is the basis of our <em>type discovery</em> mechanism.</p><h3>Type Discovery</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*EM90jkr4WddToObD.jpg" /></figure><p>Our endpoint URL names help us understand which class and method will handle a given web request. The different segments of the URL map nicely to a hierarchy of classes and methods. If the request URL indicates a microservice domain/category of “Issue”, we’ll look for a class named Issue. Similarly, if the operation in the request is “resolve”, we will look for a method of Issue named Resolve(). We can simplify a little bit by ignoring case when matching the name so that a request for resolve matches Resolve() or resolve().</p><p>It is also helpful to make our code explicitly opt in to responding to web requests, so that methods that perform sensitive operations aren’t automatically exposed to the world of web clients. To do this, we require classes that support APIs to derive from a specific base class, and require methods be annotated with a special attribute to indicate that they are callable through web requests.</p><p>On receipt of a microservice web request, we look up the class that implements the business domain named in the request URL, and find the class method that matches the name of the requested operation.</p><h3>A Microservice Class</h3><p>Let’s look the code that responds to the URL for issue/resolve above. Our microservice framework is built on ASP.NET Core, so from here on in, code examples will be in C#.</p><pre>public class Issue : DomainEntity&lt;Issue&gt;<br>{<br>    [APIContract(APIContractVerb.POST)]<br>    public async Task Resolve()<br>    {<br>        return await UpdateIssueAsync(IssueStatus.Resolved);<br>    }<br>}</pre><p>A lot of supporting code in the above snippet has been removed for clarity. What is clear though is that the Issue class derives from the DomainEntity base class that supports microservice capabilities, and the Resolve method is annotated with the [APIContract] attribute, identifying it as a method that will respond to web requests.</p><h3>Instancing</h3><p>Let’s assume for now that the web server hosting our microservice has this domain entity Issue class available in memory. We know which class method we should call. Yet there are still more decisions for us. If the method is static, we can call it directly. But if the API is an instance method, we must decide if any instance will do, or if a specific instance must be used.</p><blockquote><em>Our Forge microservice framework is based on domain-driven design principles. This means that our API operations reflect operations in a specific business domain. We model these domains as </em>domain entity<em> classes, and instances of those classes correspond to specific real-world entity in our business model. An Invoice class models the business domain concept of an invoice, and an instance of the Invoice class models a specific, actual invoice. These domain entities are the “nouns” in the language of our business context.</em></blockquote><p>Each concrete entity in our business model (such as an invoice, or a support issue) has a unique identity. An invoice might be associated with a customer, but there might be many invoices for a customer over time. Thus we assign each invoice a unique number that we can use to distinguish it from all of the other invoices. In our microservice API, we’ll use this unique number or Id to specify which instance of a domain entity class should be used when invoking the API method. This instance Id thus must also be included in the API URL when calling an instance method:</p><pre>/services/HomeDepot.Platform.Issues.Microservice/1.0.1/Issue/resolve/42</pre><p>Here we represent the Issue instance Id as the last segment of the URL: 42.</p><p>If we were specifying an operation that affects all of our business entities (or no specific entity) we could provide a static method of the domain entity class to implement the API.</p><h3>Repositories</h3><p>Where does a domain entity instance come from?</p><p>Certainly we could just call the entity class constructor and conjure up an instance. But we don’t want any old instance. We want the instance that contains the state associated with the identifier specified in the API request. To do this, we request the instance from an <em>entity repository</em> class. A repository is simply a class that abstracts operations on the whole collection of a type of entities. This includes operations such as fetching an entity by Id, or searching for entities that match some criteria, or adding a new entity. Typically a repository wraps calls to read and write to a database. Our implementation of entity repository provides a method to fetch a specific entity instance:</p><pre>public abstract class EntityRepository&lt;T&gt; : where T : DomainEntity<br>{<br>    [APIContract(APIContractVerb.GET, &quot;fetch/{id}&quot;)]<br>    public virtual async Task&lt;T&gt; FetchAsync(int id)<br>    {<br>        T result = await Cache.FetchAsync(id);</pre><pre>        if (result == null)<br>            result = await Persistence.FetchAsync(id);</pre><pre>        return result;<br>    }<br>}</pre><p>This simplified version of FetchAsync() illustrates how we first try to look up the entity in a global cache, and only if that fails, go to our slower persistence layer (i.e. the database) to retrieve an instance.</p><p>Since EntityRepository is an abstract class, we would derive a specific implementation for our Issue domain entity:</p><pre>public class IssueRepository : EntityRepository&lt;Issue&gt;<br>{<br>    ...<br>}</pre><p>After calling FetchAsync() on our repository class we have an instance of Issue, so we’re finally ready to call the API method Resolve(), right? For this simple case, yes. We have everything we need: the class, the method, and the specific instance of the class to call the method on. Unfortunately, this scenario is not typical. Usually, an API method will require arguments to be provided by the caller. The client will need to format these arguments properly in the web request, and our web server code will need to retrieve these values from the incoming web request and map them to the data types specified by the method signature.</p><p>In my next post, we’ll look at how API arguments are sent by the caller and how these arguments are decoded by the server and passed to the microservice API method.</p><p><em>Originally published at </em><a href="http://teamjohnston.net/blog/2016/06/19/microservices-type-discovery/"><em>teamjohnston.net</em></a><em> on June 19, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcce38fd7bbf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/microservices-type-discovery-and-instancing-dcce38fd7bbf">Microservices: Type Discovery and Instancing</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serving up a Microservice API: naming]]></title>
            <link>https://medium.com/home-depot-quote-center/serving-up-a-microservice-api-naming-3055c3006522?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/3055c3006522</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Jesse Johnston]]></dc:creator>
            <pubDate>Tue, 28 Jun 2016 16:39:35 GMT</pubDate>
            <atom:updated>2016-11-21T17:22:29.652Z</atom:updated>
            <content:encoded><![CDATA[<p>In my last <a href="http://teamjohnston.net/blog/2016/05/30/microservices-what-and-why/">post</a>, I described a microservice as a set of web API endpoints. When implementing a microservice framework then, our most fundamental task is to provide those endpoints. There are a number of things to consider, and one of the first steps is to decide what and how the endpoints are called.</p><h3>What is an API endpoint again?</h3><p>An API endpoint is just a URL that can be called from a web client such as a browser application. Unlike a web site like <a href="http://www.homedepot.com/">http://www.homedepot.com</a> that returns interactive visual content, an API endpoint performs some specific action or answers a question with structured data.</p><p>Some example API endpoint URLs might be:</p><pre>/services/product/getAll<br>/services/product/get<br>/services/product/add</pre><p>When a web server receives a request URL that represents a web page, the server follows a predefined set of rules to decide which HTML file to send back to the caller. When a web server receives a request URL that represents an API endpoint, it executes the code that performs the desired action or query, returning data in a form usable by a calling program. The server uses the form of the URL itself to determine if the the request is for web page content or for an API action. For example,</p><pre><a href="http://teamjohnston.net/blog">http://teamjohnston.net/blog</a></pre><p>refers to web page content, but</p><pre><a href="http://teamjohnston.net/services/product/getAll">http://teamjohnston.net/services/product/getAll</a></pre><p>might be an API endpoint (it isn’t really).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T-CLdbaXyMDH2UbJ1DUOYQ.png" /></figure><h3>API naming</h3><p>We’d like a present an organized view of our URLs that represent API endpoints. Providing a meaningful, well-named hierarchy of endpoint URLs helps developers make sense of our API without having to resort to documentation that is likely to become out of date over time.</p><p>The example endpoints above give you a general sense of what an endpoint hierarchy might look like. Let’s take a closer look at one of our real-world microservice endpoints:</p><pre>/services/HomeDepot.Platform.Issues.Microservice/1.0.1/Issue/resolve</pre><p>This URL is a little more complicated than the earlier examples. It has a number of meaningful elements:</p><pre>/services</pre><p>This is the root of all of our API endpoints. Having a common starting segment in the URL helps us route all API requests to a common middleware handler on the web server. Note also that there is no hostname at the beginning of the URL. This a relative URL endpoint, which means that the microservice is hosted on the same server as the calling web application, and the web app can issue an ajax call to use this endpoint without concern for cross-domain browser security constraints.</p><pre>/HomeDepot.Platform.Issues.Microservice</pre><p>This is the name of the microservice hosting the API endpoint. This is important because our endpoint names and categories might be relatively generic. By including the microservice we can differentiate between API operations that have the same name but are hosted by different services.</p><pre>/1.0.1</pre><p>This is the version of the microservice needed by the caller. There are different versioning schemes, but in our framework we use <a href="http://semver.org/">semantic versioning</a>, which expresses API compatibility between versions. This URL could be routed to different versions of the same microservice; versions 1.0.0, 1.0.1-build-7 and 1.9 would all match this request. Version 2.0.0 of the service could not satisfy the request. Including a version in the endpoint URL also opens up the possibility of running multiple versions of an API simultaneously.</p><pre>/Issue</pre><p>This is the domain (i.e. category) of the API. Our implementation is based on <a href="http://www.methodsandtools.com/archive/archive.php?id=97">domain-driven design</a>, so Issue represents a specific domain in our business. The API endpoint is an operation on an Issue domain entity. More about this later — for now just think about domain as a category of APIs that cluster around a specific business concept.</p><pre>/resolve</pre><p>This is the specific API operation that will be performed when the the endpoint is called. In this case, we are resolving a system operation issue.</p><p>From the information in these URL elements, the web server has enough knowledge to decide which microservice API should be executed.</p><h3>Next up</h3><p>In my next posts, I’ll talk about how we pass input arguments to the microservice API, how we invoke the API code, and how we communicate results back to the caller.</p><p><em>Originally published at </em><a href="http://teamjohnston.net/blog/2016/06/08/serving-up-a-microservice-api-naming/"><em>teamjohnston.net</em></a><em> on June 8, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3055c3006522" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/serving-up-a-microservice-api-naming-3055c3006522">Serving up a Microservice API: naming</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservices: What and Why]]></title>
            <link>https://medium.com/home-depot-quote-center/microservices-what-and-why-95759a48f181?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/95759a48f181</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Jesse Johnston]]></dc:creator>
            <pubDate>Wed, 01 Jun 2016 19:03:03 GMT</pubDate>
            <atom:updated>2016-11-21T17:22:14.068Z</atom:updated>
            <content:encoded><![CDATA[<p>We’ve spent the last year at Home Depot building a C# microservices platform with the new ASP.NET Core. This has been an exciting development and we’re really happy with what we’ve achieved so far. Over the coming months, we’ll be open-sourcing our framework and sharing our experience. I’m going to write a series of posts that cover all of the gory details, but first I’d like to start with the basics of what a microservice is and why they are interesting.</p><p>You’ve probably heard about microservices already. It’s the kind of new hotness buzzword that comes around periodically and is so overused that it could be about anything or nothing at all. It might be a silver bullet, or it might not be useful to you at all.</p><p>Let’s cut through some of the ambiguity and talk about what microservices are and why you might be interested in them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8IYzNhh2WZ_bTFK10ijSEQ.jpeg" /></figure><h3>The What</h3><p>You may hear other definitions, but at root a microservice is just a set of related web API endpoints. The “micro” part of <em>microservice</em> just means that a microservice isn’t a random grab-bag of APIs. Instead, the endpoints have very specific responsibilities that are all related in some way; the endpoints are a small, meaningfully grouped subset of a larger API surface. There is a lot of debate over how big a microservice should be, but that is mostly pedantic. The real question about organizing microservices isn’t about their size, but their domain of responsibility.</p><p>The way I think about microservices is by considering how a microservice-based API differs from the API surface of a traditional web app.</p><p>A monolithic web app might organize 100 different endpoints into route-based clusters (think /api/account/login, /api/account/changePassword, /api/product/search, /api/product/purchase, etc), but all of these endpoints are hosted on a single web server. To scale out, you run duplicate copies of the monolithic web app with its 100 endpoints on more web servers and load-balance them.</p><p>With a microservice design, we would segregate these API endpoints into free-standing web applications, each potentially running on a separate web server. We would pick which endpoints belong in which microservice based on the responsibility of each endpoint. Perhaps all of the /api/account endpoints would be included in the account microservice and the /api/product endpoints would be part of the product microservice. The end result of the microservice design is a number of small web applications, each providing some subset of the total API surface.</p><h3>The Why</h3><p>So now instead of a single web application hosting 100 endpoints, we have say 10 applications hosting 10 endpoints each. Why would we do this?</p><p><strong>Scaling granularity.</strong> The workload of a web application API surface isn’t evenly distributed. For example, in a storefront application, account-related APIs such as password reset are probably used much less frequently than the APIs to search products. Why duplicate the account APIs on a dozen web servers just so that you can scale the product search APIs to a dozen servers? With microservices, you could run 2 instances of the account microservice and 12 instances of the product search microservice. With a sophisticated monitoring and deployment solution, you could dynamically scale just the parts of your API that experience load.</p><p><strong>Deployment granularity.</strong> In a monolithic application, fixing a bug or releasing a new feature means redeploying the entire application. With a microservice implementation, only the microservice containing the affected code needs to be redeployed. Since any given microservice is smaller than the entire web application, deployments are faster.</p><p><strong>Versioning granularity.</strong> A monolith deploys as a unit, so the application front-end must be updated simultaneously with any back-end API changes. This introduces risk. Microservices offer the potential for running multiple versions of an API concurrently, allowing the application front-end to be updated separately from the back-end.</p><h3>The Why Not</h3><p>The new hotness is always exciting, and it’s tempting to think that a microservice design will solve all of your problems. It won’t. In fact, there are many hazards and you should think twice before adopting microservices.</p><p><strong>Complexity.</strong> You had one application before, and with microservices you’ll have ten applications. Or a hundred applications. A microservice implementation requires more supporting infrastructure than a stand-alone web application. There’s more that can (and will) go wrong.</p><p><strong>Troubleshooting.</strong> When you see an error in a web application that uses microservices, it’s harder to understand where the failure occurred. The front-end and the back-end are hosted on different machines. If you have multiple instances of a microservice running, which instance responded to the request, and which machine is that instance running on? The log files are also distributed across multiple machines, so if multiple services are involved, you have to correlate the contents of multiple log files to see what happened.</p><p><strong>Development experience.</strong> Standing up a copy of a monolithic application on your development machine can be a chore, but standing up a set of ten microservices to test your front-end against can be daunting.</p><h3>The How</h3><p>If you’re still ready to take the plunge, there’s good news. It can be done successfully, and microservices can offer a whole new level of effectiveness in delivering and operating web applications. With the right tooling, developing microservices can be fun and even easier than working with a traditional web application.</p><p>In postings to follow, I’ll share our experiences building and running a microservice framework at Home Depot. Let’s do this!</p><p><em>Originally published at </em><a href="http://teamjohnston.net/blog/2016/05/30/microservices-what-and-why/"><em>teamjohnston.net</em></a><em> on May 30, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95759a48f181" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/microservices-what-and-why-95759a48f181">Microservices: What and Why</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our First Product Architecture]]></title>
            <link>https://medium.com/home-depot-quote-center/our-first-product-architecture-76f417c8d66b?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/76f417c8d66b</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[product-design]]></category>
            <dc:creator><![CDATA[Ben Berkompas]]></dc:creator>
            <pubDate>Mon, 02 May 2016 20:52:17 GMT</pubDate>
            <atom:updated>2016-04-30T20:45:12.940Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xJxTPKhytbjxxa_gjQ81Eg.png" /></figure><h4>Connecting Problems, Business Goals, Research, &amp; More</h4><p>Building products is tough. The questions seem endless, and every time someone new gets involved they bring a unique perspective, a new set of assumptions, and another style of working. While a diversity of skills and varied perspectives can seriously strengthen a team, there are certain things that any product team needs to agree on.</p><ul><li>The problem(s) we’re solving</li><li>What a successful outcome would look like</li><li>The business goals we’re trying to impact</li></ul><p>When each member of a team has a different idea of what problem the team is collectively solving, what success looks like, or if they are unable to connect what <em>they’re</em> doing with what the <em>business</em> is trying to do, the team is bound to struggle. Good collaboration requires mutual clarity on these important points.</p><h4>Our Situation</h4><p>We were several months into building the next version of our flagship product. The team was beginning to gel and various features were taking shape, but there were some major problems.</p><p>Even amongst the team, we didn’t have a common understanding of how our product hung together, what problems it was supposed to solve, what the key workflows were, and where those workflows started and stopped. Our backlog was flat and didn’t provide us with the “big picture,” which hindered our planning, our active work, and made eventual gaps in our product’s experience inevitable. None of us could easily articulate how the functionality we were building related to the business’ goals. When an interesting idea was presented it was difficult to know whether it really <em>fit</em> within our product and, if so, where it fit. Design decisions were being made, then forgotten, resulting in a lot of churn.</p><p>This quote from <a href="http://www.fastcompany.com/3020181/open-company/inside-githubs-super-lean-management-strategy-and-how-it-drives-innovation">Chris Dannen</a> summarizes our situation pretty well.</p><blockquote>As a new product or service comes to fruition, ideas, people, and transactions proliferate quickly, which means you need more people to pitch in and help. The more individuals get involved, the easier it is for them to individually lose sight of the whole innovation effort.</blockquote><p>An inability to see the big picture seemed to be our root problem and it was gradually spiraling into other problems.</p><p>From the very beginning of the project, our director had been asking for an “outline” of the product in terms of the problems it would solve, and how it would solve them. We all needed this perspective. The question was <em>how could we describe our product this way?</em></p><h4>Our Solution</h4><p>Ironically, with as many methods as we have for mapping out user flows, technical architecture, and visualizing business metrics, I’ve run across very few methods to visualize an actual <em>product</em> in terms of its basic structure and functionality.</p><p>We have a maxim around here — “Visualization is the key to success.” In other words, the process of expressing an idea visually takes it from a mere idea to a more concrete concept; it forces us to clarify our thinking and really probe an idea’s merit.</p><blockquote>Visualization is the key to success.</blockquote><p>I knew we needed to visualize our product, and I knew that a feature list or prototype wouldn’t suffice. We needed something different.</p><p><strong>The Product Architecture</strong></p><p><a href="https://twitter.com/Padday">Paul Adams</a> introduced me to the concept of <em>product architecture</em> in his popular article, “<a href="https://blog.intercom.io/the-dribbblisation-of-design/">The Dribbblisation of Design</a>.”</p><blockquote>After the mission and vision is the product architecture. Not the technical architecture, rather the components of your product and how they relate to one another. The system….</blockquote><blockquote>A product architecture is not an information architecture. It is not a set of pages that link to one another, or something that shows modals and describes what buttons do. A prototype will always serve this purpose better. It is a level deeper than that. It is the structure. The building blocks. It shows the objects in the system, and the relationships between them.</blockquote><p>This was exactly what we needed. The concept made perfect sense to me and I was really excited to see how other product teams were doing this.</p><p>I found almost zero examples.</p><p>Out of nearly 7 million results in Google, the first pages were full of technical papers, dictionary definitions, and companies offering architectural services. Great…</p><p><strong>Starting From Scratch</strong></p><p>As Stephen Covey says, “Begin with the end in mind.” I didn’t know <em>how</em> to visualize our product, but I knew my desired outcome so I started with a list of what I wanted to achieve.</p><ul><li>Everyone knows, and can explain, how their work fits into the whole</li><li>The organization has a <em>shared</em> understanding of how the product supports <a href="https://medium.com/@benberkompas/get-above-the-fog-343d11a7582#.4synsayg2">business, user, and technical goals</a></li><li>Designs are produced that account for entire workflows (instead of loose components and isolated tasks)</li><li>It’s clear which ideas fit the architecture and which don’t (so we can better decide what to do with them)</li><li>Design decisions are recorded in the context of the product architecture</li><li>It’s evident which parts of the product are done and which aren’t</li></ul><p><strong>To The Drawing Board</strong></p><p>Now that I knew what problems I was trying to solve and what my desired outcome was, it was time to do what I always do and get some ideas on paper. Drawing inspiration from <a href="https://medium.com/@rjs/managing-product-development-by-integrating-around-concerns-77640bcde28d#.laqbt37i2">Ryan Singer</a>, <a href="http://jpattonassociates.com/user-story-mapping/">Jeff Patton</a>, <a href="http://www.jeffgothelf.com/blog/lean-ux-book/#sthash.BYpOC0VQ.dpbs">Jeff Gothelf</a>, and <a href="http://rosenfeldmedia.com/books/mental-models/">Indi Young</a>, I sketched a variety of concepts, reviewed them with our product manager, and eventually landed on a sort of story map (with some differences).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S5QO_Ow2xV7CSNxOlcqIIQ.png" /><figcaption>The “map” visualization helps us think in terms of contingencies and where everything fits, but I knew right away it wouldn’t be maintainable and it wouldn’t scale as we moved forward</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QYG3dsR5wcTOabqKNRakmw.png" /><figcaption>This diagram helped me establish a bit more hierarchy with Activities, Workflows, and Tasks but it wasn’t very maintainable</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CX8Ani-9SqaMgg8Vc6XnJQ.png" /><figcaption>We ended up with this diagram. It’s very similar to a <a href="http://jpattonassociates.com/user-story-mapping/">story map</a> but is skewed toward the functionality itself, whereas a true story map would give more weight to the users’ intentions and goals. Those intentions and goals are captured in the underlying pages, not so much in the diagram itself.</figcaption></figure><p><strong>Adding A Second Layer</strong></p><p><a href="https://blog.intercom.io/the-dribbblisation-of-design/">Paul’s article</a> shows a few examples of how a product architecture can be visualized, but it pretty much stops there. I wanted our team to be able to drill down into each area of the product and get more details, e.g. see what problem we’re trying to solve, or the research we used to inform our design. This visualization was just the first layer, a “visual index,” if you will.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FYm1ueNi_Cn1olJo5cu6jg.png" /></figure><p>I ended up building the whole thing in Confluence using their Gliffy integration, so it was relatively easy to create a hierarchy of pages that mirrored the hierarchy of the visualization, with each node linking to its corresponding page.</p><p>Next, the hard part — making those pages meaningful.</p><p><strong>Time To Write</strong></p><p>I decided that each page needed the following:</p><ul><li>A problem statement</li><li>A description of our desired outcome</li><li>A list of relevant business goals, and how each area of the product relates to those goals</li><li>An area to record design decisions and attach sketches</li><li>A place to link to relevant user research</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4IHnGXjHxB1ZAb0J3CxHEA.png" /><figcaption>Having a consistent structure has really helped us capture the right information</figcaption></figure><p>At first we were hesitant to go back and write up problem statements and describe outcomes for things we had already built. It felt a lot like the typical design process Jeff Gothelf describes in his book, <em>Lean UX</em>.</p><blockquote>Too often… our design process starts when someone has a feature idea, and we end up working backward to try to justify the feature.</blockquote><p>We decided that, even if we hadn’t been clear about problems and outcomes up until this point and had built things without that context, it was worthwhile to <strong>start working this way now</strong>. Since then, we’ve made sure to do this work ahead of active development.</p><p><strong>Show What’s Done</strong></p><p>Our team’s product manager liked the structure and rigor that the product architecture brought to our design process, but he wanted it to also show how much of the work was complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nf5wP46rOZUH0Gzzq4ptsQ.png" /><figcaption>Color-coding was the obvious answer for showing what’s done. Gray means it’s not on the roadmap, yellow means we’ve written the problem and outcome statements, and green means the feature has been developed (in its first iteration).</figcaption></figure><h4>How It’s Working Today</h4><p>All things considered, our product architecture has been a glowing success. We reference our problem statements when preparing for our biweekly acceptance meetings, and they’re a part of the presentation we make to the organization after each sprint. During our sprints we go here to log our design decisions, concepts and reference them during weekly design reviews. Our team’s product manager uses the product architecture as a reference for roadmap planning, and other teams have used it as a way to get familiar with the structure of our product.</p><p>Our UX Architect had this to say:</p><blockquote>Our product architecture<em> </em>is a new experiment for us that has been remarkably effective in correlating our product stories to the users’ journey. I don’t know how much the leadership is looking at it, but they should be often. We refer to it constantly; it’s instrumental in justifying our course and defending our decisions.</blockquote><p>It’s been a 5 month process to reach this point. There is plenty left to do, but our team is benefiting a lot from having a shared perspective on the problems we’re trying to solve and this has resulted in a new level of collaboration and teamwork as we tackle some really tough challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76f417c8d66b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/our-first-product-architecture-76f417c8d66b">Our First Product Architecture</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Above the Fog]]></title>
            <link>https://medium.com/home-depot-quote-center/get-above-the-fog-343d11a7582?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/343d11a7582</guid>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Ben Berkompas]]></dc:creator>
            <pubDate>Mon, 02 May 2016 20:52:01 GMT</pubDate>
            <atom:updated>2016-03-20T05:14:29.094Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bbizlh_GMAyh0DGoJDGaXw.png" /></figure><p>There are basically three areas of concern in product development:</p><ol><li>Business</li><li>Users</li><li>Technology</li></ol><p>The trick is understanding how the three coincide. In the day-to-day process of developing products it’s easy to become myopic and focus on just one or two of these areas. It’s really hard to get above the fray and see how they overlap and complement one another.</p><p>As we work on our product, we have to deal with many different voices advocating for each area, listen to their concerns, and be diplomatic while making difficult decisions. At times, it’s like we’re groping in the fog.</p><p>How do we get above it all to see the bigger picture and make better decisions? How do we avoid going off on tangents and trying to solve every “huge problem” that comes across our radar?</p><h4>Recognize the distinctions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WtGAT7APBB6Mw-r2T7v2Fg.jpeg" /><figcaption>There are three distinct areas of concern</figcaption></figure><p>First, we must acknowledge that there are three distinct areas of concern. Each area has its own set of problems and goals, and, most importantly, each is the <em>authority</em> on what those problems and goals really are.</p><p>In other words, the business cannot dictate what users are trying to do or what they need. Beware if your product is purely based on stakeholders’ assumptions about what the market needs. That said, stakeholders <em>are</em> the absolute authority on what the business needs! Let’s not ignore that. They know the mechanics of their chosen business model and should be able to tell us exactly what’s required to sustain the business we’re all operating within.</p><p>Likewise, users are the absolute authority on their problems and goals. It’s tempting to impose our ideas on the market and be led by our <em>assumptions</em> about what people need. Talking to the people whose problem we are trying to solve is fundamental to arriving at the right solution. Watching them work and hearing them express their intentions and goals is incredibly telling. It’s so much more gratifying than sitting in our office, building things based purely on assumptions, and crossing our fingers hoping we helped someone, somewhere accomplish something they care about.</p><p>Those who work closely with technology know the ins-and-outs of building a scalable system, the problems they need to solve, and the goals they want to achieve. They are the absolute authority on those things.</p><p>Business. Users. Technology. Respecting each area as its own authority and recognizing that they each have different problems and goals will give us the right perspective to move to the next step.</p><h4>Find the overlap</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X09deZ9yxtLsJhSea7QKxg.jpeg" /><figcaption>The three areas overlap where there are shared concerns</figcaption></figure><p>Now that we’ve looked at how the three areas are different and independently authoritative (as far as their problems and goals go), we can start to look at how they are the same. There are a host of questions to help us determine the overlap.</p><ul><li>If the business values [this], what user activities might be instrumental in generating that value?</li><li>If [these people] are trying to do [these things] would helping them do those things benefit the business?</li><li>Which technologies would enable [these people] to do [these things]?</li></ul><p>There are many ways to slice this, but you get the point. We’re actively looking for the overlap, striving to connect the dots between all three areas. In real life this is much harder than the diagram above betrays, but it’s entirely possible if we’re persistent enough! We can talk to business stakeholders, users, and our technical colleagues. All of the information is available to us if we would only reach out and get it.</p><p>In my experience, this process literally feels like a thick blanket of fog gradually lifting. Everything is fuzzy and indistinct at first, but with much concentrated thought and effort, it eventually comes into focus.</p><h4>Determine the boundaries</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GDiyGgdLLPAJnK0ncTOEpg.jpeg" /><figcaption>The intersection of all three areas describes the boundaries of your problem space</figcaption></figure><p>Now that we have a whole new degree of clarity around each of the three areas, recognizing their distinctions as well as their overlap, it’s time to determine the boundaries of our problem space, i.e. the problems (and goals) that our product will address and those it won’t.</p><p>The last thing anyone wants is to build:</p><ul><li>A technically sound product with a solid business model but low market appeal</li><li>A technically sound product with high market appeal but an unsustainable business model</li><li>A product with a solid business model and high market appeal but technically fragile</li></ul><p>All of these scenarios are avoidable if we gain clarity in these three areas up front and keep that focus throughout the development process.</p><p>We want to be able to fill in the blanks below. If we can, that means we have some serious clarity.</p><blockquote>This product/feature leverages [these technologies] to enable [these people] to do [these activities] that — directly or indirectly — generate [this business value].</blockquote><p>This article isn’t about designing solutions. It’s about getting above the dense fog of problems and goals that everyone seems to have, and achieving clarity around our product well before we get into solution mode.</p><p>How have you achieved clarity in these areas with your team?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=343d11a7582" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/get-above-the-fog-343d11a7582">Getting Above the Fog</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bridging the Gap Between Products and People]]></title>
            <link>https://medium.com/home-depot-quote-center/bridging-the-gap-between-products-and-people-80f62ee3e0b6?source=rss----848db73781cb---4</link>
            <guid isPermaLink="false">https://medium.com/p/80f62ee3e0b6</guid>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[customer-experience]]></category>
            <category><![CDATA[software]]></category>
            <dc:creator><![CDATA[Ben Berkompas]]></dc:creator>
            <pubDate>Mon, 25 Jan 2016 04:48:51 GMT</pubDate>
            <atom:updated>2016-02-20T15:50:43.466Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMIT9dOPwst4eTlIiGs5WA.png" /></figure><p>As a product designer, I’m often alarmed at how different my perspective can be than that of my customers. I create a flexible system of semantic, consistently-styled, reusable user interface components, piece them together into a series of views that support complex workflows and tasks, and… people get stuck during usability tests and tell me, “I don’t know what to do now,” or, “That’s not what I expected.”</p><p>When customers react this way, it illustrates the gap between my own thinking and the realities of their world. It’s like two archaeologists looking at the same fossil and drawing completely different conclusions.</p><p>As Samuel Hulick points out in his article <a href="http://www.useronboard.com/features-vs-benefits/">Features vs. Benefits</a>, “People don’t buy products; they buy better versions of themselves.” I think this is insightful. Whereas my tendency is to fixate on the product itself, customers will evaluate it on the basis of whether it adequately solves their problem.</p><p>I must constantly remind myself of the following:</p><blockquote>Real solutions, to real problems, for real people.</blockquote><p>If I were to say, “I have this idea for an app that makes processing email into a game,” I’m describing a solution. There’s nothing wrong with this, <em>as long as I don’t stop there</em>. I must identify some underlying problem that explains why my solution is needed. (Hint: The problem is not that “people need an app that makes processing email into a game.” That’s simply rephrasing my solution.)</p><p>“People feel overwhelmed and unproductive when they have to spend time sorting through emails.” That is a description of a problem, but I’m not ready to solve it because I haven’t gotten specific about <em>whose</em> problem it is yet.</p><p>In this example, it would be helpful to spend some time thinking about who would most likely have these problems with emails, those who receive very few, or those who receive dozens or hundreds each day? Okay, that’s fairly obvious, but I should get even more specific. Do these people receive large amounts of personal emails or are they predominantly business emails? The answer may make a dramatic difference in my product. It will certainly impact my marketing. Are they processing email as a function of their job (e.g. personal assistants), or is it a distasteful add-on to their <em>real</em> job (e.g. programmers)?</p><p>By identifying who I’m going to target, I increase the chance of making a product that matters for <em>real people</em>. I can talk to these very people to see if I’m on track. Sadly, there are plenty of products that spring from a hopeful solution to a speculative problem for an imaginary audience. The app store is chock full of them.</p><p>When people use something I’ve designed, I want them to feel as though I had them in mind, as though I knew exactly what they needed. As Steve Jobs famously said, I want the things I design to “just work.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=80f62ee3e0b6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/home-depot-quote-center/bridging-the-gap-between-products-and-people-80f62ee3e0b6">Bridging the Gap Between Products and People</a> was originally published in <a href="https://medium.com/home-depot-quote-center">Home Depot QuoteCenter</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>