<?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[7shifts Back of House - Medium]]></title>
        <description><![CDATA[Our mission is to simplify team management and improve performance for restaurants, freeing up time for managers to focus on serving their customers. Our R&amp;D team wants to share their experiences solving problems for restaruatuers around the world. - Medium]]></description>
        <link>https://medium.com/7shifts-rd?source=rss----5dc7e596259a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>7shifts Back of House - Medium</title>
            <link>https://medium.com/7shifts-rd?source=rss----5dc7e596259a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:06:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/7shifts-rd" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Scaling Redis at 7shifts]]></title>
            <link>https://medium.com/7shifts-rd/scaling-redis-at-7shifts-121b9c6e1788?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/121b9c6e1788</guid>
            <category><![CDATA[caching]]></category>
            <category><![CDATA[redis]]></category>
            <category><![CDATA[scaling]]></category>
            <category><![CDATA[infrastructure]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Cory Jacobsen]]></dc:creator>
            <pubDate>Fri, 24 Nov 2023 16:55:44 GMT</pubDate>
            <atom:updated>2023-11-24T16:55:44.149Z</atom:updated>
            <content:encoded><![CDATA[<p>Caching is one of those technologies that eventually all applications reach for. The barrier to entry is very low as almost every framework has hooks for caching services. Spin up a <a href="https://redis.io/">Redis</a> or <a href="https://www.memcached.org/">Memcached</a> instance, and with a simple configuration tweak you have caching. But what happens when you outgrow a single caching instance? This is the high-level story of how we scaled our Redis caching platform at 7shifts.</p><h3>Starting slow</h3><p>When 7shifts was first starting out, we had no application caching. Everything including session data was backed by the database. This allowed us to keep our system architecture very simple. To scale with demand we would increase the resources of the database. But as you can imagine, scaling the database is only practical for so long.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_R9swurkJvOqguxZdfLPFw.png" /><figcaption>System diagram — our simple starting point</figcaption></figure><p>We reached a point where it made sense to start caching a few models to reduce some database pressure. We had the classic setup where a model would write to the database, but would now also be cached within Redis. The models with expensive lookups were the first candidates to be cached. This improved our application performance while also reducing load on the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yi-6WHN0bpx2FvW_ztDZvQ.png" /><figcaption>System diagram — adding a single cache instance</figcaption></figure><h3>Too many connections</h3><p>Things were looking good, but we soon ran into a different type of problem. We had configured our monolithic PHP application to connect directly to Redis. This means every request opens and closes its own connection to Redis. At a small scale, these connections are not expensive enough to worry about. As the application scales up the constant opening and closing of connections can become expensive. We started to see a correlation between our increasing latency and the number of Redis connections.</p><p>Some quick searching on the problem led us down the path of proxies. Adding a proxy or <a href="https://en.wikipedia.org/wiki/Connection_pool">connection pool</a> between the application and Redis made a lot of sense. A connection pool is a way to reduce the cost of opening and closing connections. The pool can maintain a set of open connections that can be reused by the application. We ended up implementing <a href="https://github.com/twitter/twemproxy">Twemproxy</a> which solved our connection problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f9Hfir7FLC7HZQG5fKMKHA.jpeg" /><figcaption><em>Connection reduction with Twemproxy</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHztXm0sl1FYa7NtACL5HQ.png" /><figcaption>System diagram — adding a proxy in front of Redis</figcaption></figure><h3>Out growing a single instance</h3><p>Fast forward to the summer of 2023, we were growing fast and adding a lot of new customers to our platform. Our database reached a point where we would be utilizing over 90% of the available CPU. Upgrading wasn’t ideal as we were one upgrade away from the largest tier offered by our provider. We would rather save that final upgrade as a last resort for future scaling problems. We looked at splitting a few services into their own databases. But doing so would add a lot of complexity as well as cost. The more economical solution was to simply cache more data.</p><p>We rolled out a change that cached one of our most frequently used data models. We saw an immediate benefit as the database CPU started to drop. But surprisingly our overall latency started to climb! Needless to say, this wasn’t what we expected to happen and had to rollback the change.</p><h3>Hitting Redis limits</h3><p>Redis is a fantastic service to work with, very easy to operate and reason about. The monitoring is straightforward as well. The biggest metric to watch is memory consumption. If we run out of memory, Redis can evict keys based on your preferences (usually <a href="https://en.wikipedia.org/wiki/Cache_replacement_policies">LRU or LFU</a>). We had been slowly increasing our Redis instance size as needed. Looking at the metrics we knew we still had plenty of available memory.</p><p>Flipping over to the CPU graph, we started to see the real problem. Redis CPU had climbed above 100% utilization. With our added load, we were asking too much of Redis which was forcing requests to wait for CPU time. Redis is single threaded, so there is no easy scaling solution at this point. What do we do now?</p><h3>Scaling options</h3><p>While investigating the problem, we came across a few different options. Redis Cluster was the first solution that looked promising. This is a distributed implementation of Redis that automatically shards keys across multiple instances. Unfortunately it wasn’t an easy change as we were relying on <a href="https://cloud.google.com/memorystore">MemoryStore</a> from Google Cloud Platform (GCP). At the time GCP did not support Redis Cluster, though <a href="https://cloud.google.com/blog/products/databases/memorystore-for-redis-cluster-is-ga">they do now</a>.</p><p>The next solution we investigated was utilizing read replicas which GCP does provide. After looking at what the implementation would look like, we had some reservations. We didn’t want the extra connection logic within the application. We wanted to keep the developer experience and application configuration as simple as we could.</p><p>Sharding was next on the investigation list. At first we looked at creating a second Redis instance and letting the application handle the logic. But like the read replica solution, this adds a fair bit of complexity to the application. However we found some interesting articles on <a href="https://www.envoyproxy.io/">Envoy</a> and their client-side sharding strategy.</p><p>Instead of having the sharding logic within the application, we could move it to the proxy layer. Developers would not need to know any implantation details and the application configuration would stay simple. This also gives the infrastructure team full control over the scaling architecture. After some testing and benchmarking, we decided this was the way forward for us.</p><h3>Rolling out Envoy</h3><p>With a solution in hand, it was time to implement the new setup. We broke down the migration into a few steps. First we wanted to replace Twemproxy with Envoy. This change was simple as Twemproxy was only handling the connection pool. Swapping our proxy setup to Envoy was quick, easy, and a bit shocking. We saw an instant drop in Redis CPU usage and application latency!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JbjTM0CYGyDduht3" /><figcaption><em>CPU drop after moving over to Envoy</em></figcaption></figure><p>We assumed something was misconfigured, but no alerts fired off. Our customer support team wasn’t seeing any negative customer impact either. We had a hunch this was due to the <a href="https://redis.io/docs/reference/protocol-spec/">Redis protocol</a> version, but didn’t spend a lot of time looking into it. Free performance is always welcome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JBqfX-vo_FqSCbl37YN1Hw.png" /><figcaption>System diagram —replacing Twemproxy with Envoy</figcaption></figure><h3>Sharding Redis</h3><p>At this point, we were ready to spin up more Redis instances and configure Envoy. Google has a <a href="https://cloud.google.com/blog/products/databases/scaling-google-cloud-memorystore-for-high-performance">great blog post</a> on how to configure Envoy with client-side sharding. While setting up the sharding instances, we created 3 smaller Redis instances to replace our single large instance. We configured the new instances as a separate cluster within the Envoy configuration. We were then able to use Envoy’s <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/redis_proxy/v3/redis_proxy.proto.html#envoy-v3-api-msg-extensions-filters-network-redis-proxy-v3-redisproxy-prefixroutes-route-requestmirrorpolicy">request mirror policy</a> to double write the cache. Based on our application’s cache TTL setting, we knew this mirroring process would take 24 hours to complete.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgX5PoOtnBVBnN0YYBUyEQ.png" /><figcaption>System diagram — final Envoy implementation with multiple shards</figcaption></figure><p>After switching the proxy configuration to use the new sharded cluster, we assumed our work would be complete. But it’s never that easy! We saw some interesting CPU metrics coming from the 3 new instances. We verified the key count per instance to ensure the distribution was even. So why was CPU usage so different between the instances?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Qv7BIB0Vf03WdnlX" /><figcaption><em>CPU utilization of the sharded Redis instances</em></figcaption></figure><h3>Hot keys</h3><p>After some digging around, we found a Redis CLI flag named <em>--hotkeys</em>. This runs over all the items within Redis and reports back with the <a href="https://redis.io/commands/object-freq/">keys most frequently</a> used. It turns out we have a good number of keys that are required on almost every page load. This was a bit of bad luck as a handful of those keys ended up on the same Redis instance leading to inconsistent CPU usage.</p><p>To solve this problem we came up with the concept of “high frequency” keys within our application. We wrote some code in the application that allows us to set certain keys as “high frequency”. Behind the scenes this simply adds a <em>HIGH_FREQ_</em> prefix to the key.</p><p>When a prefixed key comes into Envoy, it uses the <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/network/redis_proxy/v3/redis_proxy.proto#envoy-v3-api-msg-extensions-filters-network-redis-proxy-v3-redisproxy-prefixroutes">prefix route configuration</a>. If we are writing a high frequency key, it will save to all 3 instances. This may seem counter intuitive, but we are doing this to spread the load across all the sharded instances. If we then read a high frequency key, we use a round robin lookup which distributes the load. After we tracked down all the offending high frequency keys, our CPU usage looked much better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dPzxM02L0IuuOn8j" /><figcaption><em>CPU utilization of the instances after implementing the high frequency key concept</em></figcaption></figure><h3>Conclusion</h3><p>Our scaling journey through the world of caching has been both challenging and enlightening. We’ve had our share of setbacks and ‘aha’ moments. But each challenge has provided us with valuable insights. As of now, our caching strategy is robust, scalable, and — most importantly — cost-effective. We hope that by sharing our journey, we can help you navigate the complexities of scaling cache in your own applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=121b9c6e1788" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/scaling-redis-at-7shifts-121b9c6e1788">Scaling Redis at 7shifts</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A SOLID way to React]]></title>
            <link>https://medium.com/7shifts-rd/a-solid-way-to-react-8cffbb905cc7?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/8cffbb905cc7</guid>
            <category><![CDATA[solid-principles]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[frontend-development]]></category>
            <dc:creator><![CDATA[Benjamin Gee]]></dc:creator>
            <pubDate>Fri, 20 Oct 2023 19:02:21 GMT</pubDate>
            <atom:updated>2023-10-20T19:02:20.967Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5JZPEsyb5AV9VhmPjbGhdw.jpeg" /><figcaption>Photo by Jack Carter on <a href="https://unsplash.com/photos/tMGMINwFOtI">Unsplash</a></figcaption></figure><p>Hello, fellow React developers!</p><p>Before my time at 7shifts, I worked on backend communication and network solutions, primarily in C++, where SOLID principles rule. Over the past year, I’ve been diving deep into the world of React, and I’ve found myself pondering: How can we apply the time-tested SOLID principles from the Object-Oriented Programming (OOP) world to our React codebases?</p><p>For those of you who need a refresher, the SOLID principles were <a href="http://www.butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod">created</a> (discovered? written down?) by Robert C. Martin (Uncle Bob). The SOLID principles are design principles for writing maintainable, scalable, readable, testable, clean, object-oriented code. They stand for the following:</p><ul><li>S — Single Responsibility Principle</li><li>O — Open-Closed Principle</li><li>L — Liskov Substitution Principle</li><li>I — Interface Segregation Principle</li><li>D — Dependency Inversion Principle</li></ul><p>For each of these principles, I will lay out the traditional interpretation and how they apply to frontend code written in React.</p><h3>1. Single Responsibility Principle (SRP)</h3><p><strong>Traditional Definition:</strong> A class should have one, and only one, reason to change.</p><p><strong>React Interpretation:</strong> A component should have only one responsibility.</p><p>Example: Consider a component responsible for fetching data and displaying it.</p><pre>export const DailyPlanner = () =&gt; {<br>    const [data, setData] = useState();<br>    <br>    useEffect(() =&gt; {<br>        const data = Promise.all([API.fetchTodos(), API.fetchGoals()]);<br>        setData(data);<br>    }, []);<br><br>    return (<br>         &lt;div&gt;<br>             &lt;Todos data={data} /&gt;<br>             &lt;Goals data={data} /&gt;<br>         &lt;/div&gt;<br>    );<br>};</pre><p>This is a relatively contrived example that renders some Todos and Goals, but hopefully you can see how this breaks the SRP.</p><p>The DailyPlanner component is responsible for both fetching the data, and displaying it. <strong>Two things.</strong> This component is doing too many things! The fetching of the data should probably be extracted to a custom hook, even if it’s quite small.</p><pre>export const DailyPlanner = () =&gt; {<br>    const { todos, goals } = useData();<br>    <br>    return (<br>        &lt;div&gt;<br>            &lt;Todos todos={todos} /&gt;<br>            &lt;Goals goals={goals} /&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>Now our app is only responsible for rendering the Todos/Goals.</p><p>1 principle down, 4 to go.</p><h3>2. Open-Closed Principle (OCP)</h3><p><strong>Traditional Definition:</strong> Software entities should be open for extension but closed for modification.</p><p><strong>React Interpretation: </strong>Components should be extendable through props without needing to modify the original component.</p><p>Example: Let’s take a look at the Goals component that I wrote that is being rendered by our DailyPlanner.</p><pre>export const Goals = (goals) =&gt; {<br>    return (<br>        &lt;div&gt;<br>            &lt;h1&gt;Goals&lt;/h1&gt;<br>            &lt;ul&gt;<br>                {goals.items &amp;&amp;<br>                    goals.items.map((item) =&gt; (<br>                        &lt;li key={item.id}&gt;{item.name}&lt;/li&gt;<br>                    ))}<br>            &lt;/ul&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>What if the Todos that I want to render also have an id and a name? Well the only way I can use the Goals component to render the Todos is to modify it. This component should have been written in such a way that modification was not required, only extension. We could rewrite this component to be extendable without the need for modification</p><pre>export const List = (items, name) =&gt; {<br>    return (<br>        &lt;div&gt;<br>            &lt;h1&gt;{name}&lt;/h1&gt;<br>            &lt;ul&gt;<br>                {items &amp;&amp;<br>                    items.map((item) =&gt; &lt;li key={item.id}&gt;{item.name}&lt;/li&gt;)}<br>            &lt;/ul&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>Now, our List component can be used for both Goals and Todos and our component now looks like this:</p><pre>export const DailyPlanner = () =&gt; {<br>    const { todos, goals } = useData();<br><br>    return (<br>        &lt;div&gt;<br>            &lt;List items={todos.items} name={&#39;Todos&#39;} /&gt;<br>            &lt;List items={goals.items} name={&#39;Goals&#39;}/&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>Using an open source design system, such as 7shifts’ sous-chef library, gives us this added benefit: components are closed for modification but highly extensible. Having to open a PR to modify a sous-chef component might be the best example of “closed for modification,” however the components provided are so highly extensible that having to modify a sous-chef component is quite rare.</p><p>Okay, 2 down, 3 to go.</p><h3>3. Liskov Substitution Principle (LSP)</h3><p><strong>Traditional Definition: </strong>Let q(x) be a property provable about objects of x of type T. Then q(y) should be provable for objects y of type S where S is a subtype of T</p><p>Or for those of us who can’t understand that: Every subclass or derived class should be substitutable for their base or parent class.</p><p>This one is a bit different as React isn’t big on inheritance. However, the LSP does still find its place in front end code when we think about TypeScript and type substitutions.</p><p>The React interpretation is the following:</p><p><strong>React Interpretation: </strong>Components should be renderable by a parent as long as they satisfy the required type.</p><p>Example: We modified the List component to handle both Goals and Todos. This required both components to have an items property, a rule we can enforce using TypeScript :</p><pre>export const List = (items: Items, name: string) =&gt; {<br>    return (<br>        &lt;div&gt;<br>            &lt;h1&gt;{name}&lt;/h1&gt;<br>            &lt;ul&gt;<br>                {items.map((item) =&gt; &lt;li key={item.id}&gt;{item.name}&lt;/li&gt;)}<br>            &lt;/ul&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>Now, anyone can render a List component as long as they provide items of type Items and a name that is of type string.</p><p>3 down, 2 to go.</p><h3>4. Interface Segregation Principle (ISP)</h3><p><strong>Traditional Definition:</strong> A client should never be forced to implement an interface that it doesn’t use, or clients shouldn’t be forced to depend on methods they do not use.</p><p><strong>React Interpretation: </strong>Many, specific-custom hooks are better than one general-purpose custom hook.</p><p>This principle is closely related to the SRP, but whereas the SRP is concerned with a component being responsible for one thing, the ISP is more concerned about interfaces that provide <em>too</em> many things.</p><p>A hook can be seen as an interface to the data layer, and that interface should be small and specific, rather than large and general.</p><p>Example: If we look at our useData hook, it’s returning us both the todos and the goals. Is that necessary? This interface could be split up since the todos and the goals don’t need to be fetched together. We could refactor our app a bit to split them out.</p><pre>export const DailyPlanner = () =&gt; {<br>    const { todos } = useTodos();<br>    const { goals } = useGoals();<br><br>    return (<br>        &lt;div&gt;<br>            &lt;List items={todos.items} name={&#39;Todos&#39;} /&gt;<br>            &lt;List items={goals.items} name={&#39;Goals&#39;}/&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>Now we have two custom specific hooks, rather than one large general purpose hook. This is beneficial because perhaps some other component in our application needs to use the goals as well. Now, that component can just use the useGoals hook, instead of our previous useData hook, and we’ve saved ourselves some extra data fetching since the new hook serves a more narrow purpose.</p><p>Again, this is a pretty contrived example, but I think we’ve all seen some hooks in our code base that return a lot of data.</p><p>It might be worth considering, does every component that uses this hook actually use everything that is returned? If they don’t, that might be an ISP smell. Could the hook be split up into smaller hooks that serve a narrower purpose?</p><p>4 down, 1 to go!</p><h3>5. Dependency Inversion Principle (DIP)</h3><p><strong>Traditional Definition:</strong> One should depend on abstractions, not concretions</p><p><strong>React Interpretation: </strong>Components should not care about <em>how</em> or <em>where</em> data comes from</p><p>Example: If we look back to how our DailyPlanner used to look, we can see where this principle most applies:</p><pre>export const DailyPlanner = () =&gt; {<br>    const [data, setData] = useState();<br><br>    useEffect(() =&gt; {<br>        const data = Promise.all([API.fetchTodos(), API.fetchGoals()]);<br>        setData(data);<br>    }, []);<br>        <br>    return (<br>        &lt;div&gt;<br>            &lt;Todos data={data} /&gt;<br>            &lt;Goals data={data} /&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>As can be seen above, our component is responsible for both <em>where</em> the data comes from and <em>how</em> it’s getting it. When we abstracted this logic into a custom hook, we fixed our DIP problem. Now the DailyPlanner is no longer concerned about where the data comes from, as long as it is provided according the the correct type it can be used (LSP hint hint, nudge nudge)!</p><p>Now our code has high cohesion and low coupling. Goals are not reliant on todos. Todos are not reliant on goals. All the DailyPlanner component is responsible for is rendering other components. And our hooks are only responsible for getting a specific piece of data. I think we can all agree this looks much better:</p><pre>export const DailyPlanner = () =&gt; {<br>    const { todos } = useTodos();<br>    const { goals } = useGoals();<br><br>    return (<br>        &lt;div&gt;<br>            &lt;List items={todos.items} name={&#39;Todos&#39;} /&gt;<br>            &lt;List items={goals.items} name={&#39;Goals&#39;}/&gt;<br>        &lt;/div&gt;<br>    );<br>};</pre><p>And as an aside, it will be much easier to test the three smaller components and two custom hooks than the original component.</p><h3>Conclusion</h3><p>Transitioning from backend communication and network solutions to the vibrant world of React has been a journey of continuous learning for me. While SOLID principles have their roots in OOP, their core ideas can be adapted to elevate our React codebases.</p><p>A developer somewhere sometime once said, “There’s no such thing as perfect code, only better code.” By understanding and applying SOLID principles to React, I think we can all strive for that ‘better code.’</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cffbb905cc7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/a-solid-way-to-react-8cffbb905cc7">A SOLID way to React</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why does hook call order matter? The Rules of React Hooks explained.]]></title>
            <link>https://medium.com/7shifts-rd/why-does-hook-call-order-matter-the-rules-of-react-hooks-explained-55d1dc0a5eff?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/55d1dc0a5eff</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[hooks-in-react]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Harris Ferguson]]></dc:creator>
            <pubDate>Tue, 26 Sep 2023 19:44:03 GMT</pubDate>
            <atom:updated>2023-09-26T19:44:03.456Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rf5WDp51MOhDD0G1" /><figcaption>Photo by <a href="https://unsplash.com/@polarmermaid?utm_source=medium&amp;utm_medium=referral">Anne Nygård</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Understanding the underlying mechanisms of React Hooks is paramount for any front-end developer aiming to master the React framework. While hooks introduce a world of possibilities for function components, they also come with a set of rules.</p><p><strong>A Sticky Situation</strong></p><p>Hooks are very useful for fetching data. Sometimes, those data sources are related and we might want to do something like the below snippet inside of a function component:</p><pre>const { data, loading } = useGetData();<br>const userId = data.id;<br>const { relatedData } = useGetRelatedDataForUser(userId);</pre><p>The problem here is that userId = data.id might not be defined yet. You might be tempted to check that loading is false before making the second call:</p><pre>const { data, loading } = useGetData();<br>if (!loading){<br>    const userId = data.id;<br>    const { relatedData } = useGetRelatedDataForUser(userId);<br>}</pre><p>However, if you try something like this your console will display an error that you have violated the <a href="https://react.dev/warnings/invalid-hook-call-warning#breaking-rules-of-hooks">Rules of Hooks</a>. The rules of hooks are:</p><ol><li>Call hooks only at the top level of a function component</li><li>Call hooks only at the top level of another hook</li></ol><p>Note here that a hook is any function whose name starts with the string use. This means:</p><ol><li>You cannot call a hook inside a condition or loop</li><li>You cannot call a hook after a conditional return</li><li>You cannot call a hook in a Class component</li></ol><p>The reason behind these rules is that the order each hook is called needs to stay exactly the same each time a component is called.</p><p><strong>Why Call Order Matters</strong></p><p>React relies on the order of the hook calls to sync up with the state and lifecycle of your component. Each hook call is associated with a particular piece of state or lifecycle, and React maintains a running order of these hooks.</p><p>Each Hook call is associated with a node in a linked list that react keeps track of per component. This node stores the state value and a pointer to the next node (or Hook).</p><p>For instance, consider a React component with two state variables, ‘name’ and ‘age’.</p><pre>const [name, setName] = useState(&#39;Harris&#39;);<br>const [age, setAge] = useState(15);dnf install gcc-gfortran python3-devel python2-devel openblas-devel lapack-devel Cython</pre><pre>return (<br>  &lt;div classname=&quot;App&quot;&gt;<br>    &lt;h1&gt;{name}&lt;/h1&gt;<br>    &lt;h1&gt;{age}&lt;/h1&gt;<br>    &lt;button onClick={() =&gt; {setAge(age+1)}}&gt;Add a Year!&lt;/button&gt;<br>    &lt;button onClick={() =&gt; {setName(&#39;Buddy&#39;)}}&gt;Change Name&lt;/button&gt;<br>  &lt;/div&gt;<br>)</pre><p>On the initial render, React creates a linked list with two nodes, one for ‘name’ and one for ‘age’. These nodes don’t contain any information about which variable they belong to; they just hold the value of the state variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*HCxGkcJE2UvTb-1Q.png" /></figure><p>When the component re-renders, React traverses this linked list, associating the first variable with the first node, the second variable with the second node, and so on. This is why call order is so important: the only way that I know which state I care about for a particular useState call is because the call order needs to be invariant so we are indexing the correct state in the list.</p><p>If we want to update a state variable, say ‘age’, the setter function returned by useState knows which node in the linked list to update. This is due to the fact that when the setter is created, it is associated with a particular index in the linked list.</p><p><strong>React Hooks and Conditional Calls</strong></p><p>The “don’t call hooks inside loops, conditions, or nested functions” rule can seem restrictive, but it ensures data integrity and prevents undesirable consequences.</p><pre>let died = false;<br>if (died) {<br> const [deathDate, setDeathDate] = useState(new Date());<br>}</pre><pre>const [name, setName] = useState(&#39;Harris&#39;);<br>const [age, setAge] = useState(15);</pre><pre>return (<br> &lt;div classname=”App”&gt;<br> &lt;h1&gt;{name}&lt;/h1&gt;<br> &lt;h1&gt;{age}&lt;/h1&gt;<br> &lt;button onClick={() =&gt; {<br>   if (!died) {<br>     setAge(age+1);<br>     died = true;<br>   }<br> }}&gt;Add a Year!&lt;/button&gt;<br> &lt;button onClick={() =&gt; {setName(‘Buddy’)}}&gt;Change Name&lt;/button&gt;<br> &lt;/div&gt;<br>)</pre><p>Here, the first useState hook is conditionally called based on the died variable. On the first render, if died is false, React does not associate this useState hook with any state. However, if the condition becomes true in a subsequent render, React attempts to update a non-existing state, leading to inconsistencies and potential errors.</p><p><strong>Exploring Alternative Designs</strong></p><p>The design choice to associate Hooks with their call order wasn’t arbitrary. It allows the Hook interface to remain clean, simple, and predictable, enabling us to focus more on the logic of our components rather than the complex nuances of state management.</p><p>Various alternative designs were considered during the conception of React Hooks. Let’s look at a few of these alternative designs and the challenges associated with them.</p><p>First, there’s the idea of having a single state object:</p><pre>const [state, setState] = useState({<br> name: “Harris”,<br> age: 15<br>})</pre><p>This approach may simplify the state initialization, but it would lose the advantages of useState providing specific setter functions, which update individual state elements independently and result in less unnecessary re-rendering of components.</p><pre>const [name, setName] = useState(‘name’);<br>const [age, setAge] = useState(‘age’);</pre><p>However, this opens up the potential for name clashes and unexpected behaviour when keys are accidentally reused.</p><p>The third alternative considered using Symbols:</p><pre>const count = Symbol(&#39;count&#39;);</pre><pre>const MyComponent = () =&gt; {<br> const [count, setCount] = useState(count, 0);<br>}</pre><p>However, this approach still isn’t flawless. One really nice thing about hooks is we can compose the built in hooks to make custom hooks. Suppose we created a hook that relied on a symbol like this, then tried to use that hook in multiple other places. We would STILL get name clashes even with the unique symbols. Making it more difficult to compose hooks doesn’t seem like a good tradeoff for not relying on call order here.</p><p><strong>Further Reading</strong></p><p>Understanding the why behind the design choices of React Hooks can improve your development workflow and the efficiency of your React applications. So keep learning, keep experimenting, and keep developing!</p><p>Here are some great readings on the topics above for the curious</p><p><a href="https://overreacted.io/why-do-hooks-rely-on-call-order/">Why Do React Hooks Rely On Call Order?</a> — Dan Ambramov</p><p><a href="https://the-guild.dev/blog/react-hooks-system">Under the hood of React’s hooks system</a> — Eytan Manor</p><p><a href="https://github.com/reactjs/rfcs/pull/68">React Hooks RFC</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55d1dc0a5eff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/why-does-hook-call-order-matter-the-rules-of-react-hooks-explained-55d1dc0a5eff">Why does hook call order matter? The Rules of React Hooks explained.</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Down User Stories]]></title>
            <link>https://medium.com/7shifts-rd/breaking-down-user-stories-1f92caaf55d9?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1f92caaf55d9</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[user-stories]]></category>
            <category><![CDATA[pull-request]]></category>
            <dc:creator><![CDATA[Luis Alves]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 20:56:49 GMT</pubDate>
            <atom:updated>2023-04-25T20:56:49.293Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*SmLLLOG4-jrBdrFR.jpeg" /></figure><p>Developing successful software is much more than mere coding. The aspects of completely catering to requirements, assuring quality standards, considering time and budget, and many more parameters contribute to its success.</p><p>User stories are integral components of the software development process. They describe what actions the user can perform with the system — in other words, the description of software features. Generally, a developer working in an agile development process will spend most of their time in a sprint working on user stories.</p><p>In addition to user stories, a developer might work on a task — which is a single unit of work or step in the development process — or pull requests — which is the action performed by the developer when they intend to merge the new changes into the existing code. Regardless of the unit of work, breaking down the whole idea of the end product into these components for continuous delivery is significant.</p><p>However, many organizations make the mistake of scoping the entire feature into a single massive user story, which leads to missed requirements, delayed project completion, budget overruns, unsatisfied customers, and the like. Instead, user stories that are broken down into smaller segments can be helpful because they encourage knowledge sharing, manageability, and faster reviews. Most importantly, smaller tasks usually mean simpler requirements, simpler implementation, and it is quicker to do a more thorough review, all of which help with managing risk.</p><p>This article highlights the significance and process of having small stories.</p><h3>When to Break Down the Stories</h3><p>In software development, tickets are used to track the user stories and carry additional information, such as who is responsible for a particular story, how the story is progressing, and its current status.</p><p>Large tickets are complex to process and may delay the subsequent sprints, leading to the missed completion of software features. Therefore, breaking them down into smaller tickets is a practical approach.</p><p>However, breaking down stories only makes sense in some scenarios; there may be too many interconnected requirements or dependencies. Additionally, you have to ensure that the parts you break the ticket into each have value and deliver a feature or output to the end user.</p><p>With that being said, breaking down a story is practical under the following conditions:</p><p>1. The combined idea is too complex to implement.</p><p>2. The story alone represents a risk to the sprint goals.</p><p>3. The smaller tickets can be completed independently.</p><h3>Disadvantages of Large Stories</h3><p>This section covers some of the disadvantages of having large user stories and how they can hinder the effective completion of sprints.</p><h3>Complexity</h3><p>Large user stories are complicated. For instance, the simple story of user registration involves some tasks, such as authentication via email or phone, checking incomplete fields, ensuring a strong password, and so on. It can make the handling of the whole ticket in one sprint hard, causing the task to be delayed to the next sprint. Therefore, breaking large tasks into smaller parts can give the developer the efficiency of having subtasks that can be handled in one sprint.</p><h3>Missing Edge Cases</h3><p><a href="https://www.applause.com/blog/how-to-find-test-edge-cases">Edge cases</a> are scenarios or problems that do not follow a normal or expected path. They usually exist at the minimum and maximum boundaries of the system. When developing software, you must consider edge cases to ensure a functional, usable, and quality outcome. A complicated task or user story can often lose sight of the edge cases, paving the way for failure. Breaking tickets down into smaller components helps to identify these edge cases early.</p><h3>Less Knowledge Sharing</h3><p>Large tickets mean fewer developers are working on the same application or feature, meaning that one or two individuals hold all the knowledge about the application. Their absence can lead to the severe failure of the system. Smaller tickets help facilitate knowledge sharing by virtue of having more tickets to assign to more developers.</p><h3>Complicated User Acceptance Testing (UAT)</h3><p>If you are working on a large ticket, the user will only be able to test the features once the task is complete. This can complicate UAT as the Quality Assurance Analyst has to test multiple functionalities in one go, which may require a long time to complete. This may also lead to superficial testing due to complexity, which can cause regressions and missed requirements.</p><h3>Advantages of Small Tickets</h3><p>Now that you’ve seen the disadvantages of large user stories, let’s look at the advantages of small tickets and how they can help in an effective development process.</p><h3>Continuous and Easy Product Shipping</h3><p>Breaking down a large, complicated user story into small tickets reduces the complexity of the task. This allows developers to work in parallel, enabling the completion of more features in less time, which leads to fewer dependencies and continuous feature delivery.</p><h3>Faster Pull Request Reviews</h3><p>If the tickets are small, the pull requests will have fewer lines and lower complexity, simplifying the pull request review process. It also speeds up the review process, allowing for a faster delivery of software features that adds efficiency to the whole software development cycle.</p><h3>Fewer Bugs and Easy Testing</h3><p>Smaller tickets allow multiple individuals to work on the project, which leads to shared knowledge and easy identification and solving of bugs. Also, the divided user story should be testable independently, making the process easy and faster. It’s not that bugs don’t occur in small tickets, but tracing and resolving them is easier.</p><h3>Conclusion</h3><p>The development process becomes much more straightforward when you break down user stories into smaller bits. The division of tasks leads to reduced complexity, shared knowledge, fewer bugs, and faster product delivery.</p><p>Breaking down your tickets is a great way to reduce the complexity and challenge of implementing tasks. Similarly, you can simplify your entire team management process for your restaurant using <a href="https://www.7shifts.com/">7shifts</a>, a full-featured toolkit that allows you to easily manage your restaurant operations. You can <a href="https://www.7shifts.com/book-demo">book a demo</a> today to see how 7shifts can streamline your team management and scheduling.</p><p><strong>Technical Writer:</strong> Kainaat Arshad (https://portal.draft.dev/writers/recfth4ItCcu4FpRP)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f92caaf55d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/breaking-down-user-stories-1f92caaf55d9">Breaking Down User Stories</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Improving Page Load Time with the AsyncSelectField]]></title>
            <link>https://medium.com/7shifts-rd/improving-page-load-time-with-the-asyncselectfield-d5c142236027?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/d5c142236027</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Alex Andrade]]></dc:creator>
            <pubDate>Wed, 22 Mar 2023 21:47:40 GMT</pubDate>
            <atom:updated>2023-03-22T21:47:40.592Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iUvzdzD4EQJd7-KdZfcKrQ.jpeg" /><figcaption>loading data (boxes in this case)</figcaption></figure><p>The <a href="https://souschef.7shifts.com/31613d024/p/488185-selectfield/b/073880"><em>select</em></a> component is an integral part of most frontend applications, especially if they involve taking user input via forms. It presents users with a list of options to choose from when entering data. This helps reduce errors by avoiding manual typing of the data and simplifies the user experience since all they need to do is click on the right option.</p><p>However, a downside of the select component is that it doesn’t optimize performance when loading and displaying data.</p><p>In this article, you’ll learn about the AsyncSelectField, a new variant of the select component that offers better performance and overall user experience compared to the standard select component.</p><h3>Issues with the Regular Select Component</h3><p>The regular select components are great for presenting users with options to choose from when entering data. However, they work best with client-side, static data that are usually small in size. When there are too many options or the options need to be fetched from a database, regular select components can present a few issues.</p><h4>1- Loads All Options at Once</h4><p>The regular select component does not offer any dynamic loading of options. This means that all options must be loaded and set before the select component can be used. If data is fetched from remote sources, the availability of your select component depends on the size of the data set and the network speed.</p><p>Apart from that, loading all options at once usually means that users will see a long (and complete) list of options to choose from. It can be quite tedious for them to search through such a long list manually to find the one that they want to select.</p><h4>2- Paginated Endpoints Need Multiple Chained Requests to Load Everything</h4><p>If the data source of your select component offers a paginated endpoint, a regular select component will require you to query all data page by page across multiple requests. This means that not only will you query a large remote data set, but you will also make multiple requests chained one after another, adding to the performance overhead. You could write some JS code to dynamically load and add options to the select component, but that adds more complexity to your codebase. One way to avoid this is by restructuring your endpoint to return the data all at once. However, that approach is counterintuitive since the entire point of pagination is to improve performance when querying data from large data sets.</p><p>You can consider updating your endpoint to return cursors for the next and previous pages of data instead of relying on offsets if you haven’t already. This will remove dependency on your frontend to properly chain and coordinate multiple requests. You can simply make another request if there’s a next-page cursor.</p><h3>The Sous Chef AsyncSelectField Component</h3><p>To solve these problems and present an overall better experience for end users, 7shifts came up with the <a href="https://souschef.7shifts.com/31613d024/p/618e0e-asyncselectfield/b/073880">AsyncSelectField</a> component in their <a href="https://souschef.7shifts.com/31613d024/p/990761-about-sous-chef">Sous Chef design system</a>. The AsyncSelectField component looks and feels the same as a regular select field, as can be seen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QjUp7WvrNjE7Rfkr.png" /></figure><p>However, the fundamental difference between the two components lies in how they fetch their options. While the regular select component requires that all options be fetched, preferably at the time of render, the AsyncSelectField allows users to search through the options which then only fetches the data needed.</p><p>The ideal way to use the AsyncSelectField component is to load a small list of default or most commonly used options on render and then allow users to enter the initial characters of any option that they&#39;d like to choose that isn&#39;t available in the list shown to them. This approach provides your users with a quick, concise list to choose from while saving on enormous load times.</p><p>The AsyncSelectField tackles the problems with a regular select component in two ways. Firstly, it doesn&#39;t load all the data at once. The search functionality automatically removes irrelevant options from the list, so the data that you download is small and relevant to your user&#39;s needs.</p><p>Secondly, a paginated API does not require you to chain requests anymore. If the number of matching options for a search query is more than the set page size of the API, you can simply prompt the user to continue typing to load more options.</p><p>This is how you can implement an AsyncSelectField component to fetch options data from an API and update them based on user input:</p><pre>import React from &quot;react&quot;;<br><br>// Install the Sous Chef library by running `npm i @7shifts/sous-chef`<br>import { AsyncSelectField } from &quot;@7shifts/sous-chef&quot;;<br><br>const AsyncSelect = () =&gt; {<br><br>    /** This method makes a request to the remote data source with the search <br>    * query every time the user types something in the select field. For <br>    * initial/default options, you can define a special case for empty <br>    * `inputValue` or you can have your API handle it to keep your frontend clean<br>    **/<br>    const fetchOptions = async (inputValue) =&gt; {<br><br>        // Fetch your options here<br>        const response = await fetch(<br>          &quot;http://example.com/api/search?searchQuery=&quot; + inputValue<br>        );<br>        const data = await response.json();<br><br>        /** You need to return a promise from this method with the options list <br>        * and a boolean value indicating if there are more options available that<br>        * haven&#39;t been fetched. The return variable is not wrapped inside a <br>        * `Promise()` object since the function has been made asynchronous using <br>        * the async keyword and asynchronous functions always return promises.<br>        **/<br>        return {<br>            options: data.options,<br>            hasMore: data.hasMore<br>        }<br>    }<br>    <br>    /**<br>     * The component passed the `loadOptions` function as an option,<br>     * and it gets called every time the user types something<br>     * in the select field to search<br>     */<br>    return (<br>      &lt;AsyncSelectField<br>          loadOptions={fetchOptions}<br>          name=&quot;language&quot;<br>          placeholder=&quot;Async Select Field&quot;<br>      /&gt;<br>    );<br>}<br><br>export default AsyncSelect</pre><h4>Benefits of Using the AsyncSelectField over Regular Select</h4><p>Using the AsyncSelectField rather than a regular select component has several benefits in certain scenarios.</p><h4>Performance Improvements</h4><p>The biggest benefit of the AsyncSelectField over regular select fields is improved performance at scale.</p><p>As an example, let’s take an employee database that has around 6,600 records, with each record around 6 KB in size.</p><p>When a regular select field loads this data using paginated endpoints, here’s how it goes:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CpOBIEwWzGizzu3X.png" /></figure><p>You can see that the drop-down list contains way too many options to scroll down easily and find the right one. The total loading time of the page is also longer (close to 1.1 seconds) than what would be acceptable, and a whopping 42.9 MB of data was downloaded from the server.</p><p><em>Note:</em> Please keep in mind that the server and the data store used in this test are local to the React app. In average real-world cases, fetching more than 40 MB of data over the internet would take a lot longer than this.</p><p>Now let’s see how the AsyncSelectField performs with the same data set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pCcbLiXnv2NROhfZ.png" /></figure><p>As you can see, the load time is almost two-thirds faster, taking just 35% of the time it took in the original approach, while downloading only 10% of the original amount of data (just 4 MB). You can even reduce this further by reducing the number of options that are to be fetched upon the initial render.</p><p>No chained calls are needed to be made, and a short initial list of options means the user can easily navigate through the list. If they don’t find what they’re looking for, they search for it by typing in the text box.</p><h4>Search Instead of Scroll</h4><p>When you’re working with large data sets, it can become quite tedious to scroll through hundreds of options to find the one that you need to select. Choosing from ten options makes sense, forty options are still doable, but finding an option among hundreds means your users will need to slowly and carefully scroll through a long list to find what they’re looking for.</p><p>A simple search like that of the AsyncSelectField can help you improve user experience by allowing them to find their desired option by typing its initial letters. Typing out a few initial letters of the option you&#39;re looking for is likely to narrow your list down to under 5 to 7 percent of the original size. The options shown to you will also be relevant and similar to what you&#39;re looking for.</p><p>One downside of searching instead of scrolling is that users might make a typing mistake. They would then be presented with irrelevant options or, in some cases, no options at all, which is a bad user experience. However, this has only been observed in 3 percent of cases so far. So while typos are an issue, they’re rare enough not to cause major discomfort to users.</p><h3>When to Use the AsyncSelectField vs. Regular Select</h3><p>Obviously, using the AsyncSelectField isn&#39;t always the preferred choice.</p><p>It makes sense to use it for implementing a drop-down list when the size of your options list is large and its data source is remote — i.e., queried over a network. You could also consider using the AsyncSelectField if your data source is local but you&#39;d like to allow your users to be able to search through it without writing extra code for the UI implementation of the search feature.</p><p>However, if your list of options is small and static and does not require search functionality, you can stick to the regular select option to avoid having to write a loadOptions function.</p><p>Using a simple fetch command to get the options and load them in the regular select component also makes sense in some cases where the data is being loaded over a network but is small in size (less than fifty records and all in one request).</p><h3>Final Thoughts</h3><p>While the select component is a great approach to handling form data input, it can be slow at scale. If you have to render a long list of options and allow users to comfortably find the option they need to select, you need something different. The AsyncSelectField component by Sous Chef fits the bill perfectly.</p><p>In this article, you learned how the AsyncSelectField component solves the issues with the regular select field and how you can get started with it. Make sure to check out <a href="https://souschef.7shifts.com/31613d024/p/990761-about-sous-chef">Sous Chef</a>, an all-new design system by 7shifts that offers the AsyncSelectField component and much more.</p><p><strong>Technical Writer:</strong> <a href="https://portal.draft.dev/writers/rect4dDX1oFTLNt8c">Kumar Harsh</a></p><p><strong>Original Content: </strong><a href="https://www.linkedin.com/in/palexandrade/">Alex Andrade</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5c142236027" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/improving-page-load-time-with-the-asyncselectfield-d5c142236027">Improving Page Load Time with the AsyncSelectField</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Everyone Is a Software Architect]]></title>
            <link>https://medium.com/7shifts-rd/everyone-is-a-software-architect-a18197322ad6?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/a18197322ad6</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-design]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Raul Chedrese]]></dc:creator>
            <pubDate>Wed, 14 Dec 2022 15:26:09 GMT</pubDate>
            <atom:updated>2022-12-14T16:13:18.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yAX5CAh5oYBD89D_rmkpMQ.png" /></figure><p>When I was younger I was awed by Software Architects. It’s never been a formal title at companies I worked at but it was always obvious who the people were that drove the architecture of the systems I worked on. When I joined 7shifts as one of three web developers I found myself needing to contribute to defining the architecture for the web application. Today 7shifts is 350 people with an Engineering team of almost 100 people. We’ve seen rapid growth and our focus on strong software architecture has been one of the reasons we’ve been able to handle that growth. I’ve learned that everyone can be a “Software Architect” and grown to believe that everyone should be.</p><h4>About Software Architecture</h4><p>One of the things that puts software architecture out of the reach of many is a simple fact that it is difficult to define what exactly it is. There are many definitions out there. I’m a fan of this one by Ralph Johnson:</p><blockquote>“Architecture is about the important stuff. Whatever that is”</blockquote><p>Much like dark matter, however, The best way we have to understand it is to observe its effects. I think about architecture in terms of this, admittedly simplistic chart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Do283zKPV55Cm_FdGTIZIw.png" /></figure><p>If you find yourself below the line you will likely find yourself feeling that everything is always broken. Bugs are high, bug fixes cause new bugs, and customers complain about quality. If you are above the line you end up in an equally painful place where everything seems to take forever. This might seem like a lose-lose situation but if you never consider your architecture you will likely end up in a place where both things are true. Everything is broken all the time and everything takes a long time.</p><h4>Thinking about Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3LL4j4AvfXVXFzDmv283jA.png" /></figure><p>Earlier in my career, It always seemed that the folks defining architecture had some arcane knowledge bestowed upon them by a secret council of Software Architects. Now that I spend a significant amount of my time thinking about and developing architecture I have discovered the truth. Anyone can contribute to defining architecture. It only requires three basic skills.</p><p><strong>1. Drawing Boxes and Arrows</strong></p><p>The first is the ability to draw boxes and arrows. If you have a toddler’s grasp of drawing you are good to go. At the highest level, architecture is all about components (boxes) and relationships (arrows). If you can draw you can communicate the components and relationships that comprise your architecture.</p><p><strong>2. Understanding Dependencies</strong></p><p>The second key skill is an understanding of dependencies. People seem to struggle with this concept. It is overloaded and often talked about along with more complex topics like Dependency Inversion or Dependency Injection containers. Fundamentally the concept of dependencies in a software system is simple. If one piece of code knows something, a class name or parameter name, for example, about another piece of code it is dependent on that code. That knowledge forms a dependency and it means that if the second piece of code changes it may force the first piece to change.</p><p>That is the only thing you need to know about dependencies to contribute to architecture.</p><p><strong>3. Weighing Trade-Offs</strong></p><p>This is the only actual hard part of defining architecture. Every solution to a problem has tradeoffs and picking the best solution requires making the best tradeoffs for your business. Making the best tradeoffs requires a deep understanding of both the business goals and the options available. This required context is why you typically see the most experienced people defining the architecture. Often that context is acquired over many years and many mistakes.</p><p>Once you understand that picking trade-offs is all about context you can go in search of that context. That way you can acquire context deliberately and quickly instead of accidentally over many years. Try to answer these questions:</p><p>— What are the unique constraints of your business or project?<br> — What are the goals of your business or project?<br> — What things currently limit your system from achieving those goals?<br> — What tools and techniques already exist for addressing those limitations?</p><p>The first three can often be gathered by talking with other people in the organization. The last one may require doing some research.</p><h4><strong>Design for what Matters</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x845i0qK1VPNSBEteAW-WA.png" /></figure><p>So you understand software architecture and you have the skills required to define it. How do you start? The first step is identifying what is most important in your software system. Are you a bank? Security might be a top priority. Do you work for a small startup that is still looking for product/market fit? Productivity might be it. There can be more than one priority for your architecture but it can’t be everything. If everything is important, nothing is.</p><h4>Implementing Architecture</h4><p>I hope software architecture seems a lot less daunting than it did at the start of this article but I have some bad news. Understanding architecture is not the hardest part. It turns out that implementing your architecture is much more difficult. You can define a perfect architecture for your system but if the rest of the people working on it don’t implement it you won’t get the benefits of that architecture. This is why you can’t have just a single architect and everyone needs to understand your architecture.</p><p>There are three things we try to do at 7shifts to ensure our architecture is implemented consistently.</p><p><strong>Cultivate a shared understanding:</strong> Make sure everyone understands where their work fits within the architecture and what impact they will have on it. Everyone should have the opportunity to ask why part of the architecture exists and get a good answer.</p><p><strong>Create a single source of truth:</strong> Keep all information about your architecture centralized so that everyone can access it. For us, that means maintaining our architecture documentation in a GitHub repo to track progress, changes, issues, or requests for improvements.</p><p><strong>Prioritize alignment over consensus:</strong> Some people are concerned that involving too many folks in the process of defining software architecture leads to “design by committee”. Resulting in a solution that does nothing particularly well. I like to say that the goal is alignment, not consensus. Someone should still be responsible for driving the architecture process and while they should listen to everyone’s opinions they will ultimately be the decision maker. The goal is to provide that decision maker with as much context as you can so they can make the best decisions possible.</p><h4>Conclusion</h4><p>Hopefully, you have more clarity on the importance of software architecture and how to encourage architecture thinking in your organization. Admittedly I don’t expect any developer to read this and be ready to immediately define the architecture for a large project. In my next post, I’ll walk through some of the concrete patterns we’ve applied to evolve our application in a healthy way.</p><p>Software Architecture is hugely important to the success of large software projects. Fast growth and no consideration for that architecture will inevitably lead to problems with no easy solutions. Start thinking about architecture early, define your goal, and iterate towards it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a18197322ad6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/everyone-is-a-software-architect-a18197322ad6">Everyone Is a Software Architect</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code to Diagram]]></title>
            <link>https://medium.com/7shifts-rd/code-to-diagram-cdeda2047687?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/cdeda2047687</guid>
            <category><![CDATA[graphviz]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Luke Galea]]></dc:creator>
            <pubDate>Wed, 16 Nov 2022 22:47:59 GMT</pubDate>
            <atom:updated>2022-11-16T22:47:59.667Z</atom:updated>
            <content:encoded><![CDATA[<h3>Code to Diagram: A Developer’s Guide to Coding Beautiful Diagrams</h3><p>Many software developers spend a lot of their day staring at a text editor. But, we quickly learn that a wall of ASCII characters isn’t the best way to learn or visualize complex information.</p><p>Maintaining visual artifacts, like an architecture or entity relationship diagram, can have big benefits for you and your team, but it comes with the cost of maintaining yet another document.</p><p>As systems change, the diagrams that document them must change too. Expecting regular revisions and updates should be the norm. Version-controlling image files can quickly become unmanageable, though. Even if you get past the hurdle of versioning, creating new diagrams or redeveloping existing ones is tedious manual work that requires learning new tools. This is why “text-to-diagram” tools, or diagrams as code, are gaining popularity in the industry. A text-to-diagram workflow involves creating diagrams from text instructions or a piece of code, so developers can continue using the same tools they use to write software to also produce diagrams and documentation.</p><p>So, how can you make better documentation? It comes down to programmatically creating and maintaining your diagrams rather than hand drawing them. Here’s how we approach it at 7shifts.</p><h3>Why Are Diagrams Important?</h3><p>Visual communication has become the digital communication mode of choice within many corporations. Diagrams, in particular, are preferred to text when it comes to presenting dense information to an audience.</p><p>The human brain is structured in a way that favors visual processing of information and pattern recognition. This phenomenon, known as the <a href="https://en.wikipedia.org/wiki/Picture_superiority_effect">picture superiority effect</a>, argues that humans are more likely to remember pictures and images than words alone.</p><p>In today’s digital environment, users are constantly overwhelmed by text and image information. A study of the volume of information web users actually consume found that, on average, users only read about <a href="https://www.go-gulf.ae/how-people-read-content-online/#:~:text=On%20average%20users%20read%20about%2020%25%20of%20the%20text%20on%20the%20average%20page">20 percent of the text</a> on a typical web page. <a href="https://www.businesswire.com/news/home/20190204005613/en/Visual-Search-Wins-Over-Text-as-Consumers%E2%80%99-Most-Trusted-Information-Source#:~:text=59%25%20think%20visual%20information%20is%20more%20important%20than%20textual%20information%20across%20categories">Most users</a> tend to prefer looking at diagrams, photos, and imagery over text.</p><p>Diagrams are a good way to showcase complex systems at a glance. It’s not only easier to digest but it also contributes to longer retention.</p><h3>Using GUIs for Diagrams</h3><p>Graphical user interfaces (GUIs) are one common way software engineers create diagrams. You’ve likely used a drag-and-drop GUI tool like Visio or Google Draw at some point. Although there are many GUI tools available, they have some drawbacks. For instance:</p><ul><li>Manually laying out diagrams using a graphical interface can be time-consuming, especially when describing a complex system.</li><li>Modifying and updating your diagrams can quickly become cumbersome. Adding new components to your codebase? If you need to modify your architectural diagram to reflect the changes, you may have to move every item in the diagram to create space. Or, you may even need to redraw the diagram from scratch.</li></ul><h3>Why Use Code to Create Diagrams?</h3><p>Creating diagrams with code means using text notation (“code”) to describe the desired visual. An automatic rendering tool then creates a corresponding diagram from the text description.</p><p>While maintaining a typical image diagram, you might deal with the following challenges:</p><ul><li>Image versioning and diffing between versions</li><li>Re-laying out an existing diagram to accommodate new content</li><li>Tool-specific file formats that make importing and exporting into other tools difficult</li></ul><p>These challenges are easily addressed by creating your diagrams with code. You can use a general-purpose language like JavaScript or Python to render diagrams. But this low-level approach can be even more time-consuming than using GUI tools. Instead, many <a href="https://en.wikipedia.org/wiki/Domain-specific_language">domain-specific languages</a> (DSLs) exist to make the process faster and easier.</p><p>Diagram DSLs are generally declarative; you specify the desired outcome rather than the steps required to produce it. For diagrams, that means describing the needed elements and their relationships so the tool can create your diagram for you by handling layout and other concerns.</p><p>You’re probably already familiar with some declarative DSLs like HTML, CSS or SQL. Note how an HTML document can specify a table, rows, and columns without being concerned with how to render it on screen. Similarly, a SQL query can indicate that a resultset should be arranged in ORDER BY date without needing to specify how to perform the sort itself.</p><p>Declarative DSL tools permit you to define shapes, layout diagrams, or even define <a href="https://en.wikipedia.org/wiki/Unified_Modeling_Language">UML</a> diagrams. They can also be implemented as an external DSL that uses an independent interpreter, in another host language as a library, or even automated and built into your build pipeline. Regardless of the implementation approach, DSLs let you focus on the diagram you want rather than on how to draw it.</p><h3>Should You Use DSLs Instead of GUIs?</h3><p>DSLs offer certain advantages over GUIs for creating software engineering diagrams.</p><h4>Maintainability</h4><p>Maintaining code and technical documents is an essential part of software engineering. Teams rely on the ability to search, reuse, and change text as needed. Imagine that you have a PNG file containing your system architectural diagram located inside one of your repos, and you need to add a microservice to your application. Updating this image would need some picture manipulation or GUI skills and would be time-consuming. Using a DSL, the diagram will live in your repo as a searchable, editable, and reusable text-based file. You can edit the file and add the new microservice to your drawing and commit to source control, potentially triggering an automated build step to regenerate the rendered image.</p><h4>Versioning</h4><p>The ability to track changes and compare two versions of a document in a version control system is often undervalued for technical diagrams. GUI-generated drawings are usually in formats that make it impossible to compare versions and track changes. Conversely, a coded diagram in a DSL can be version-controlled and diffed with whatever system your team uses.</p><h4>Machine-Readable Generation</h4><p>Keeping diagrams in a machine-readable format for easy rendering can make a huge difference in maintainability. Generating diagrams from a GUI involves arranging and connecting shapes. This makes either you or the GUI tool the source of the resulting image. For graphs rendered from code, the textual file provides a source in a structured format that can be independently managed in a single location.</p><h4>Easier Visuals</h4><p>Many GUI tools claim an easy learning curve. But where do most software developers prefer to focus? It’s usually on writing code, not spending time artistically crafting a visualization. Using a DSL brings diagramming to the textual world you’re already familiar with.</p><h3>DSL Tools for Creating Beautiful Diagrams</h3><p>There are multiple DSLs available for coding visually appealing diagrams. Here’s some of the best options we’ve come across:</p><h4>PlantUML</h4><p><a href="https://plantuml.com/">PlantUML</a> is an open source, text-based tool for quickly creating diagrams from simple text syntax. The 100 percent plain text definition of PlantUML specifies the type of diagram to be created and the elements that will make up the diagram. As the name implies, PlantUML was created to make UML diagrams. However, you can use it to make nearly any diagram you need. We’ve highlighted some of the common ones below:</p><ul><li><a href="https://plantuml.com/class-diagram">Class diagram</a></li><li><a href="https://plantuml.com/sequence-diagram">Sequence diagram</a></li><li><a href="https://plantuml.com/use-case-diagram">Use case diagram</a></li><li><a href="https://plantuml.com/wbs-diagram">Work breakdown structure (WBS) diagram</a></li><li><a href="https://plantuml.com/gantt-diagram">Gantt diagram</a></li><li><a href="https://plantuml.com/timing-diagram">Timing diagram</a></li><li><a href="https://plantuml.com/ie-diagram">Entity-relationship (ER) diagram</a></li></ul><p>PlantUML has its own online rendering server for creating diagrams, which you can easily <a href="https://plantuml.com/download">download and install</a> to your local machine. It also integrates with popular code editors like Visual Studio Code and Eclipse.</p><p>Here’s an example of how you can create a simple diagram using PlantUML:</p><pre>@startuml Simple Entity-Relationship Diagram<br>Table01 ||..|| Table02<br>Table01 }|--|| Table03<br>Table01 ||--|{ Table04<br>Table05 }o--o| Table01<br>@enduml</pre><p>The code above creates a simple entity-relationship (ER) diagram based on the syntax specified in the <a href="https://plantuml.com/ie-diagram">documentation</a>. The first line is the opening statement for the renderer, lines 2 to 5 specify the relationships between tables in a database, and the last line closes the syntax.</p><p>You can run the syntax in an <a href="https://www.planttext.com/">online editor</a>. The code renders the diagram below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*rlgdjh7YPg2p72NZ" /></figure><h4>dbdiagram.io</h4><p>A simple, popular tool for creating database entity-relationship diagrams is <a href="https://dbdiagram.io/home">dbdiagram.io</a>. It allows you to quickly code your data model diagram using the custom language. The tool has additional features to help you perform other tasks like generating SQL statements, integrating with SQL databases, and online sharing.</p><p>The following lines of code show the data model for a job hiring platform:</p><pre>ENUM user_type {<br>  recruiter<br>  job_seeker<br>}<br><br>ENUM application_status {<br>  pending<br>  in_consideration<br>  failed<br>}<br><br>Table user_info {<br>  id [uuid] pk<br>  first_name varchar<br>  last_name varchar<br>  email varchar unique<br>  phone_number varchar<br>}<br><br>Table company {<br>  id [uuid] pk<br>  name varchar<br>  recruiter_id  varchar [ref: &gt;  user_info.id]<br>  address varchar<br>  business_type varchar<br>}<br><br>Table job_openings {<br>  id [uuid] pk<br>  company_id  varchar [ref: &gt;  company.id]<br>  requirements varchar<br>  description varchar<br>  created_by varchar [ref: &gt;  user_info.id]<br>  created_at timestamptz<br>}<br><br>Table applications {<br>  id [uuid] pk<br>  job_id  varchar [ref: &gt;  job_openings.id]<br>  applicant_id varchar [ref: &gt;  user_info.id]<br>  created_at timestamptz<br>  updated_at timestamptz<br>}</pre><p>You can render the diagram by using the <a href="https://dbdiagram.io/d">online editor</a> to create your model. The above code renders as the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*LumGzAOj7eszHbc-" /></figure><h4>Mermaid</h4><p><a href="https://mermaid-js.github.io/">Mermaid</a> is a tool that helps you make a variety of complex diagrams. The syntax is simple and intuitive enough for developers of nearly any level, and you can use it to create chart types such as flowcharts, Gantt charts, and pie charts. Mermaid can be used in different ways, including with a <a href="https://mermaid.live/">live editor</a>, <a href="https://github.com/BackMarket/github-mermaid-extension">browser extension</a>, and <a href="https://github.com/mermaid-js/mermaid-cli">CLI</a>. It also integrates with <a href="https://github.com/neenjaw/compile-mermaid-markdown-action">GitHub</a> and various <a href="https://mermaid-js.github.io/mermaid/#/./integrations?id=editor-plugins">code editors</a>.</p><p>The example below shows how Mermaid creates a simple sequence diagram:</p><pre>sequenceDiagram<br>    critical Establish a connection to the DB<br>        Backend--&gt;DB: connect<br>    option Network timed out<br>        Backend--&gt;Backend: Log error<br>    option Incorrect Credentials<br>        Backend--&gt;Backend: Log different error<br>    end</pre><p>The first line specifies the type of diagram to be rendered, and the subsequent lines describe the component element. The diagram highlights the handling of several conditions and errors in a network connection.</p><p>The rendered image is below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*7HtK-gKFiqpn_BLj" /></figure><h4>Graphviz</h4><p><a href="https://graphviz.org/">Graphviz</a> is probably the most widely recognized tool on this list. The open source tool uses a graph description language known as <a href="https://en.wikipedia.org/wiki/DOT_(graph_description_language)">DOT</a> and provides software libraries for your application to use its functionalities.</p><p>Below is an example of a simple process diagram in Graphviz:</p><pre>graph G {<br> fontname=&quot;Helvetica,Arial,sans-serif&quot;<br> node [fontname=&quot;Helvetica,Arial,sans-serif&quot;]<br> layout=neato<br> kernel -- zombie;<br> kernel -- sleep;<br> kernel -- runmem;<br> sleep -- runmem;<br> run -- intr;<br> intr -- runbl;<br> runbl -- run;<br> run -- kernel;<br>}</pre><p>You can render the code in the <a href="http://magjac.com/graphviz-visual-editor/">online playground</a>, which produces the following diagram:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*GitZ2h7Apy4ap7bv" /></figure><h3>Conclusion</h3><p>Coding your diagrams helps you create visually appealing work with minimal effort. Using a diagram DSL is a great way to provide easily understandable visual content for internal and external stakeholders and ensure that your team has all the information they need without resorting to time-consuming hand drawing.</p><p><a href="https://7shifts.com/">7shifts</a> makes team management software designed for restaurants. We help managers and operators spend less time and effort scheduling their staff, reduce their monthly labor costs and improve team communication. The result is simplified team management, one shift at a time. At 7shifts we use diagram DSLs quite a bit internally, including Graphviz to maintain our org chart as well as tracking our hiring plans and team movement. We also love Mermaid sequence diagrams for documenting interfaces with our partners’ APIs.</p><p>Interested in joining us in our mission to simplify team management and improve performance for restaurants everywhere? Check out our <a href="https://www.7shifts.com/careers">open roles</a>!</p><p><strong>Technical Writer:</strong> <a href="https://portal.draft.dev/writers/recr2TiHgJUuws1iP">Idowu Odesanmi</a></p><p><strong>Original Content:</strong> <a href="https://www.linkedin.com/in/luke-galea-b21b5425/">Luke Galea</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdeda2047687" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/code-to-diagram-cdeda2047687">Code to Diagram</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveraging Experimentation in Product Growth]]></title>
            <link>https://medium.com/7shifts-rd/leveraging-experimentation-in-product-growth-6cb941cfd780?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/6cb941cfd780</guid>
            <category><![CDATA[experimentation]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[product-management]]></category>
            <dc:creator><![CDATA[Keilin Morrison]]></dc:creator>
            <pubDate>Mon, 14 Nov 2022 19:58:57 GMT</pubDate>
            <atom:updated>2022-11-14T19:58:57.538Z</atom:updated>
            <content:encoded><![CDATA[<p>By Priya Bhatia and Keilin Morrison</p><p><strong>How does Experimentation work at 7shifts?</strong></p><p>At 7shifts, we believe in Speed as a Habit and that, all things equal, speed is what sets you apart from your competition. To move fast, you need to release features rapidly to learn what works and what doesn’t. In the software world, time and resources are limited, and we use product experimentation to get closer to discovering user psychology rapidly and at scale. These experiments guide our future investments in the product.</p><p><strong>The Goal</strong><br>As a growth product manager at 7shifts, I am constantly thinking about how we make it easier for restaurants to understand the value of 7shifts. Our company goals help us decide what metrics to focus on. From there, we use customer feedback, data, and user tests to help us identify hypotheses to test. One of our previous objectives was to increase the speed and rate of activation for restaurants trialing 7shifts. For those unfamiliar with activation, it is defined as the process of getting to your product’s ‘aha’ moment quickly and frequently, to build a habit around it.</p><p><strong>The Process</strong></p><p>We got our whole squad together to brainstorm ideas and decide how we would gather more data around activation at 7shifts. That led us to reach out to our customer-facing teams like Sales, Success, and Support to see where customers were experiencing problems while on trial. At the time, 7shifts had two different ways to trial our tool.</p><p>DIY (custom) mode and demo mode. DIY mode allowed users to build their team’s schedule immediately, whereas demo mode gave users access to a sample account filled with data and a pre-built schedule. Our internal teams informed us that customers choosing demo mode complained about the experience, leading to issues during the sales and onboarding process. In some cases, customers had left 7shifts after losing data created in this demo mode experience.</p><p>Next, we wanted to understand and validate the problem deeply. Why is it a problem? How big of a problem is this? How is it impacting our customers? To do this, we spoke directly to our customers. We observed their behavior while interacting with the product and learned the <em>why</em> behind their actions and preferences. We believe that user tests are crucial to experimentation as they help us to learn and gather insight from the people who could use the product in their everyday lives! The tests indicated that most users preferred using custom mode instead of demo mode, as they wanted to fully tailor the product to their own situation.</p><p><strong>The Hypothesis</strong></p><p>Additionally, we looked into the data to see if there were aggregate user findings. When observing the data, we found a clear negative correlation between the users choosing demo mode and their conversion rate compared to those that tried the custom mode. TLDR; people using DIY mode over demo mode converted much quicker than those using the demo mode. So then, after all of the research, digging in, and discovery, the question became, how can we make the demo mode experience better?</p><p>With that question in mind and our overall goal of improving activation, we took it to the team to develop different options to test our hypothesis. There were two leading solutions: improve the demo mode or eliminate it entirely. Wanting to explore both avenues, we collaborated with the design team to see how we could improve the demo mode while also talking with the developers about the requirements that would be needed to do so. During one of these brainstorming sessions, we hypothesized that if we wanted to get customers hands-on with the product, why were we even pushing them down the demo mode route, which only added to the time to value? It was also more in line with a product-led approach.</p><p>Soon after, we started exploring the idea of testing the removal of the demo mode. The entire squad was onboard because it was a quicker change to test without much development effort. Now, removing any feature is always very tricky. We presented this idea to our leadership, who were obviously hesitant to remove something we had spent time and resources building. Again, we used experimentation to build validation to back up the suggestion of a feature removal.</p><p><strong>The Results</strong></p><p>The results from this test were overwhelmingly positive. We saw that taking out demo mode would lead to a 44% increase in paid conversion and average revenue per trial! Once the results were in and shared with the team, we folded to the variant, confidently scrapping the demo mode after seeing such astounding results from the test. A culture of experimentation at 7shifts means continually learning, understanding what works (and what doesn’t), and having the courage to act on it! That is why leaning into the data and keeping an open ear toward customers is essential for product managers — you never know where nuggets of gold are hiding! Through leveraging agile experimentation, 7shifts quickly changed directions to improve the UX, making the customer journey even more seamless.</p><p><strong>Conclusion</strong></p><p>Experimentation and iterative learning are continuous processes at 7shifts. We are running at least three experiments in different areas of the product at any given point. Not every experiment is successful. In the best-case scenario, only 25% of all our experiments are successful. However, our wins far outweigh the overall effort and resources spent on experimentation. Take, for example, a recent test where a slight change in the UX improved the conversion rate in the treatment group by 2.4%! With some of these phenomenal results, we don’t treat experimentation as just a checkbox.</p><p>At 7shifts, we pride ourselves on being extremely intentional about experimentation. This also stems from the fact that we are deeply customer and product-driven. We formed a Product Growth department to solve the most critical customer problems that cause friction in their 7shifts journey. Interested in learning more? Stay tuned for our Medium posts to stay up to date on everything 7shifts!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p4XAUgnK8OM7k_Th" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cb941cfd780" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/leveraging-experimentation-in-product-growth-6cb941cfd780">Leveraging Experimentation in Product Growth</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7punches: A Cross-Platform Mobile Development Experiment]]></title>
            <link>https://medium.com/7shifts-rd/7punches-a-cross-platform-mobile-development-experiment-6cd05850082a?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/6cd05850082a</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Martina]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 18:23:44 GMT</pubDate>
            <atom:updated>2022-11-15T17:21:22.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Hand holding mobile phone" src="https://cdn-images-1.medium.com/max/1024/1*pw30ZsUmI5bj4l2ByHIQwg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@frostroomhead">Rodion Kutsaev</a> via <a href="https://unsplash.com/photos/0VGG7cqTwCo">Unsplash</a></figcaption></figure><p>Android and iOS <a href="https://gs.statcounter.com/os-market-share/mobile/worldwide">dominate the global mobile platform market</a>. Together, they command more than 90 percent of it. Want to guarantee broad market reach and wide user penetration? Organizations need to publish everything from mobile games to productivity apps on both platforms.</p><p><a href="https://www.7shifts.com/">At 7shifts</a>, we currently maintain native applications for the Android and iOS mobile platforms. This includes our <a href="https://www.7shifts.com/time-clocking-software-7punches/">7punches app, which is our Time Clocking feature</a>. It allows employees to clock in and out of their shifts and breaks, track tips, and do a health check before starting their shift.</p><p>This app provides our partners with native support on their Point of Sale (POS) iOS and Android tablets. It requires them to employ “app switching” in order to access the 7punches app and its Time Clocking features. Most partners want to alternatively embed the Time Clocking solution into their existing products without having to switch apps. But, some want to deploy it on Windows devices — something we don’t currently support. So, how can we implement 7punches once, and deploy everywhere? That’s where the cross-platform development approach comes into play</p><p>Cross-platform mobile development has a lot of benefits. But it also comes with challenges. We’re giving you a run-down of how it compares to alternatives, plus sharing the tools and frameworks involved.</p><figure><img alt="Multiple mobile phones — Android and iPhone" src="https://cdn-images-1.medium.com/max/1024/0*n25Vn58RarNMMael" /><figcaption>Photo by <a href="https://unsplash.com/@realkina?utm_source=medium&amp;utm_medium=referral">Kina</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>What Is Cross-Platform Mobile Development?</h3><p>Cross-platform mobile development is the development and production of applications that can run on different operating systems from a single codebase. Imagine using a single language, integrated development environment (IDE), and software development kit (SDK) to build an application that can run on all mobile operating systems. It’s a build once, deploy everywhere mantra. We have a lot of partners that work with us. And with that comes a lot of various needs. Cross-platform development is a way to cut down on the effort while still meeting those needs. It’s fewer resources to develop and maintain the same functionality in existing applications. Plus, it’s a way of introducing support on the Windows platform.</p><h3>Alternatives to Cross-Platform Mobile Development</h3><p>Cross-platform isn’t the only way — there are other ways to achieve broad mobile reach. Two common alternatives? Native development and hybrid mobile development.</p><h4>Native Mobile Development</h4><p>The native approach involves developing applications for a particular mobile platform. This includes Android or iOS using its dedicated tools and programming languages. Android offers Java and Kotlin as its programming languages while using either <a href="https://developer.android.com/studio">Android Studio</a> or <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA</a> for a development environment. iOS uses Objective-C and Swift programming languages and the <a href="https://developer.apple.com/xcode">Xcode IDE</a>. Developing for iOS requires you to use a macOS system and an Apple ID to publish applications.</p><p>Natively developed applications have direct access to device capabilities (ex. sensors) and tend to have the most optimized performance compared to their hybrid counterparts. Yet native development does have it’s challenges. These include:.</p><ul><li>A higher total cost of development and maintenance</li><li>Increased development time</li><li>Greater effort to coordinate development on different platforms</li></ul><h4>Hybrid Mobile Development</h4><p>The hybrid approach is a cross of web technologies (HTML, JavaScript,CSS) with native mobile technologies (Android or iOS). The application is built using web technologies and then encapsulated within a native application’s embedded browser. For example, an iOS application would use <a href="https://developer.apple.com/documentation/webkit/wkwebview">WKWebView</a> to display your application, while an Android app would use the <a href="https://developer.android.com/reference/android/webkit/WebView">WebView</a> element to do the same. Tools such as <a href="https://cordova.apache.org/">Apache Cordova</a> and <a href="https://capacitorjs.com/">Capacitor by Ionic</a> are used to build these applications, which can be submitted to each platform’s app store.</p><p>This approach has two benefits. One, it gives the web application a more native look. And two, it allows full access to the device’s capabilities. Again, there are some limitations, including:</p><ul><li>User Interface (UI) isn’t as good as that of a native app, because it uses webviews</li><li>It takes time and resources to develop and maintain plugins used to improve platform capabilities</li><li>Web app performance is slower than native app performance</li><li>For apps using complex graphics and 3D, it would likely result in more frustration than benefit</li></ul><figure><img alt="Code happy" src="https://cdn-images-1.medium.com/max/1024/0*ivwFgVuJOzXnCrGY" /><figcaption>Photo by <a href="https://unsplash.com/@nitram509?utm_source=medium&amp;utm_medium=referral">Martin W. Kirst</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Benefits of Cross-Platform Mobile Development</h3><p>The cross-platform approach has a lot of advantages over both other options.</p><h4>Cost of Production</h4><p>At 7shifts, we deploy mobile products on multiple platforms and have to budget accordingly. Hiring proficient engineers for both iOS and Android is an expensive undertaking. Adding support for a Windows platform makes it even more expensive. It can mean hiring a whole new team with Windows expertise, or the need to train our current developers in a new platform. With software engineering being one of the highest-paid professions, these hiring and/or training practices could add up fast With cross-platform development, we only need to budget for a single team to build quality applications and deploy them on multiple platforms.</p><h4>Faster Time to Market</h4><p>Because the development teams here could build once and deploy everywhere, they only have a single codebase to write and walk through the software development lifecycle (SDLC). Reducing development time means that 7punches and 7shifts applications can make it to market at a faster pace.</p><h4>Code Reusability</h4><p>This is an engineer’s paradise, especially for 7shifts developers. The ability to use the same lines of code to achieve the same effect over multiple platforms is huge. Cross-platform development guarantees this. How? Because it’s a single codebase used to develop the same application for multiple platforms. Those sleek animations, complex algorithms, or API libraries that devs spent hours working on? They will exist over all platform deployments, after only writing it once.</p><h4>Consistent Design across Devices</h4><p>Conforming to multiple platform guidelines while striving to maintain consistency is a daunting task. Following the intended guidelines results in a different UI design and user experience (UX) for the 7shifts app on each platform.</p><p>Cross-platform development eliminates this problem. It means we design once and implement the UI in a single codebase. That single codebase adapts perfectly to every platform it’s deployed on.The 7punches app UX is consistent and delivers a high-quality application.</p><h4>Maintenance and Deployment</h4><p>Attempting to deploy bug-free applications is a challenge in the software engineering world — then multiply that by multiple codebases for different platforms. If there is a bug found in one codebase, our developers then have to test all other codebases for the same bug. Talk about time-consuming.</p><p>Because cross-platform development utilizes a single codebase, detecting and solving a bug requires less time and effort. Once it’s solved, our team can deploy the fix on all platforms at a faster pace.</p><p>As a bonus, the single codebase is much simpler to secure and test. Integrating version control and implementing continuous integration (CI) and continuous deployment (CD) practices are way smoother.</p><h3>Challenges of Cross-Platform Mobile Development</h3><p>For all the benefits, the cross-platform approach isn’t perfect. Downsides are evident, but there are ways to address them.</p><h4>Performance</h4><p>Cross-platform development works by relaying messages to and from the native device code. This introduces an abstraction layer, which increases the time complexity when application processes are running. No direct access to the native device code makes it a slower option than native mobile development.</p><p>Performance issues are more common when building complex apps and games that need quick processing and access to advanced device features. Things like augmented reality (AR) apps and graphically intensive games. Less complex applications still achieve a high performance ratio when utilizing cross-platform development.</p><p>With performance being a top priority for us, this is important. A good solution is offloading heavy computing tasks to the backend where possible and only displaying the result of the task on the application.</p><h4>User Experience</h4><p>Cross-platform apps have the additional abstraction layer noted above. They also have a rendering process, which increases their response time to user inputs and interaction. This can lower the UX of cross-platform apps compared to native apps. Also, <a href="https://material.io/design/platform-guidance/cross-platform-adaptation.html#cross-platform-guidelines">some UI components</a> differ from platform to platform. For example, Android uses Material checkbox and radio button controls while iOS encourages using check marks to represent the same controls.</p><p>Adapting to specific platform design guidelines and conventions is the recommended solution to this issue. Where design differences and disruptions are minimal, platform design adaptation is optional. At 7shifts, UX is one of the major decision criteria when considering a cross-platform approach.</p><h4>Slow Update Time</h4><p>The mobile development ecosystem is evolving quickly. New features and device capabilities are being released regularly. Integrating a cool new feature takes more time for cross-platform applications because the framework needs to be updated in order to communicate with the native code and harness the feature.</p><p>However, most cross-platform frameworks are open source with a lot of support from the developer community. That means quick turnaround times while making updates. It also means easy integration for 7shifts partners, while 7shifts developers are able to meet their needs in a reasonable time frame.</p><figure><img alt="Hands over a keyboard, probably coding" src="https://cdn-images-1.medium.com/max/1024/0*U4eEbWLxa30YW5FG" /><figcaption>Photo by <a href="https://unsplash.com/@magellol?utm_source=medium&amp;utm_medium=referral">Thomas Lefebvre</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Cross-Platform Mobile Development Tools</h3><p>So how can cross-platform development become easier? Here are some popular options:</p><h4>Kotlin Multiplatform Mobile</h4><p><a href="https://kotlinlang.org/lp/mobile/">Kotlin Multiplatform Mobile</a> (KMM) enables the sharing of code that performs the same business logic between Android and iOS platforms. This reduces the time spent writing the same code on different platforms but maintains the flexibility of native programming.</p><p>Developed by JetBrains and open source contributors with support from Google, KMM went alpha in August 2020. It is fairly new in this ecosystem, and it promises to provide the combined benefits of creating cross-platform and native apps.</p><p>Our team already has proficiency in Kotlin from the native Android versions of its applications. Because developers could reuse existing 7punches Kotlin code instead of needing to learn a new language, this has a big benefit. However, the main reason for this investigation is to add Windows support for 7punches, and KMM doesn’t support code sharing with Windows out of the box. We’re hopeful that’ll change but at the time of this article it’s lacking the amount of support we need in order to confidently commit to this solution.</p><h4>Xamarin</h4><p><a href="https://dotnet.microsoft.com/en-us/apps/xamarin">Xamarin</a> is an extension of the .NET platform that provides tools and libraries for building apps on iOS, Android, macOS, and other operating systems. It also adds Extensible Markup Language (XML) for building dynamic mobile apps using C#. Founded in 2011 and acquired by Microsoft in 2016, it’s one of the founding frameworks for cross-platform development.</p><p>Our team doesn’t have experience with this tool. Because of that, it would require rewriting of the existing 7punches app.</p><h4>React Native</h4><p><a href="https://reactnative.dev/">React Native</a> is an open source framework created by Meta (formerly Facebook). It combines native development with React, allowing you to build apps for both Android and iOS platforms. It was built on JavaScript and provides native components that map to each platform’s UI building blocks. React Native was released in 2015 and boasts a high number of contributors on GitHub and wide adoption by developers.</p><p>We do have React developers, although they aren’t allocated to the mobile development team. Leveraging React Native is possible, but current native mobile developers would be pushed out of their roles.</p><h4>Flutter</h4><p><a href="https://flutter.dev/">Flutter</a> is an open source framework created by Google and released in 2017 for developing multi-platform applications from a single codebase. With support for mobile, web, desktop, and embedded devices, it provides developer tooling to build beautiful and fast applications. Flutter is based on Dart, a programming language optimized for UI and fast apps across all platforms, and is <a href="https://stackoverflow.blog/2022/02/21/why-flutter-is-the-most-popular-cross-platform-mobile-sdk/">gaining popularity</a> as a cross-platform mobile SDK.</p><p>Like Xamarin, we don’t have any experience in Flutter. Because of that, it would require a total rewrite of the 7punches app, and training existing developers with the new frameworks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bksqsHv4sqtqDkca" /><figcaption>Photo by <a href="https://unsplash.com/@markfb?utm_source=medium&amp;utm_medium=referral">Mark Fletcher-Brown</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Conclusion</h3><p>As mobile apps become a necessity for businesses across various industries, it’s essential to build robust applications that run perfectly at a fast pace and in a cost-effective manner. Targeting multiple platforms broadens the market reach of an application.The bigger the market reach, the stronger the revenue. Using the cross-platform mobile development approach can help achieve that goal.</p><p>As many benefits as there are, for now, we’re keeping each codebase in its native language and framework. We’ll continue implementing every feature in duplicate for iOS and Android. We’ll shelve adding Windows support until either it becomes unavoidable to defer any longer for our partners and develop it in triplicate, or KMM matures enough that we can implement code sharing with Windows support out of the box. Why? This choice means we can leverage existing developers with their existing tools and knowledge and keep a clear direction on what can be achieved.</p><p>Cross-platform development is gaining popularity among developers. Major software companies are also heavily investing in it, including Google supporting KMM and Flutter, Microsoft supporting Xamarin, and Meta supporting React Native. The big question in the coming years will be about which framework you use for your application. Of all the solutions considered, KMM could deliver enough value with minimal effort at 7shifts, but without Windows support, it isn’t quite ready to serve what we need. That doesn’t discount the potential to evolve and grow to serve 7shifts.</p><p>Making the switch to cross-platform mobile development is the first step to building beautiful, scalable apps at incredible speeds for all mobile platforms. In the meantime, our team continues to explore more conceptual forms of sharing Android, iOS, and Windows for development on all three platforms. With them all utilizing Model-View-ViewModel (MVVM) UI patterns, support SQLite storage, and having reactive based patterns, there are opportunities. Conceptual sharing will help reduce the conceptual and functional discrepancies between the platforms. Long term, it’s going to ease the transition into actual code sharing, if the time comes. While maintaining a cross-functional team of Android and iOS developers who are also jointly responsible for Windows, 7shifts will ship quality code and minimize bug count and recovery time from issues.</p><p><strong>Technial Writer:</strong> <a href="https://portal.draft.dev/writers/recTftoerfnSqOLLw">Dedan Ndungu</a></p><p><strong>Original Report:</strong> <a href="https://www.linkedin.com/in/benjamin-moss-2a004a21">Ben Moss</a></p><p><strong>Facilitator</strong>: <a href="https://www.linkedin.com/in/martina-rauert-50628234/">Martina Rauert</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cd05850082a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/7punches-a-cross-platform-mobile-development-experiment-6cd05850082a">7punches: A Cross-Platform Mobile Development Experiment</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating our design team’s compass]]></title>
            <link>https://medium.com/7shifts-rd/creating-our-design-teams-compass-c7bdbc4d9d70?source=rss----5dc7e596259a---4</link>
            <guid isPermaLink="false">https://medium.com/p/c7bdbc4d9d70</guid>
            <category><![CDATA[design-operations]]></category>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[designops]]></category>
            <category><![CDATA[design-principles]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Dustin Weeres]]></dc:creator>
            <pubDate>Mon, 27 Jun 2022 20:07:00 GMT</pubDate>
            <atom:updated>2022-06-27T20:07:00.576Z</atom:updated>
            <content:encoded><![CDATA[<h4>And why your team should get your own</h4><h3>How it started</h3><p>I was the 6th employee and the first designer at 7shifts. Working as a solo designer on a product you start collecting your own principles that guide you through the design process. I remember my first unofficial principle was “Consistency over innovation”.</p><p>As the team grows, inevitably each designer starts collecting their own principles. Your personal principles may get challenged. Maybe sometimes its OK to break convention (consistency) if it means we’re providing a better experience (innovation). Disagreements are inevitable. Your growing design team is now forming their own set of unofficial principles!</p><p>Questions start arising like “How do we define quality as a team?”, “What things do we prioritize for decision making?”, “How do we function as a team?”. Questions like these can take up so much of a team’s time since you’re constantly debating your subjective views on how effective design should be done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FPm6cxZBNuIeWkstam8tPQ.png" /><figcaption>“Seriously, we’ve passed this tree with the bird in it like six times…”</figcaption></figure><h3>Here’s where the compass analogy comes in</h3><p>Think of principles like a compass; they guide your team through the design process efficiently by systemizing decision making (those three words together = 😍).</p><p>Here are some other benefits of using principles on your team:</p><h4>They prescribe how to live your org’s values</h4><p>Let’s say your company values that every experience needs to be an 11, that is subjective in its execution. By setting principles, you align your team on a set of objective guidelines to achieve success in your company.</p><h4>They resolve disagreements</h4><p>Principles resolve disagreements with your peers as well as stakeholders. By having principles, we can simply ask, “Does this align with our principles?” when a situation arises. It takes the subjectivity out of the equation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZIfq3TXD44qcCU_eudu0Tg.png" /><figcaption>If only I could grow a moustache like that.</figcaption></figure><h4>They make your team better and faster</h4><p>By laying out a set of principles, you create a system of decisions that have already been agreed upon so your team can focus on more important matters…like, how the app/product should work!</p><h4>They educate</h4><p>Finally, sharing out principles openly in the organization lets the organization know that your design team has an established standard of what good design means. The bonus here is that it also gives your team more credibility since you’ve got some reasoning behind your decision making.</p><h3>How we created our principles</h3><p>I’ll start by saying that there’s not a “one size fits all” process for creating principles. We approached this project much like any other design project; we defined the problem, set some goals, gathered as many ideas as possible and widdled them down to a final deliverable. Here’s how we got it done:</p><h4>We set some goals</h4><p>Setting goals for the principles kind of ended up as an ongoing process. There were some initial goals — like ensuring they were concise, memorable and generic enough to apply to any part of design — but we also started thinking about other goals like, “What if we could make each principle not only apply to our craft but also how we work and uphold ourselves within the organization?” and “We should make them conversational so that people can bring them up when talking about design easier!”. We’d use these as goals to measure our success along the way.</p><h4>We came up with as many ideas as possible</h4><p>Since the designers are using the principles, it only made sense that they were created bottom up (by the designers) rather than top down (by management). I first ran a workshop with the design team to get out in the open some of the big important things we think about when designing.</p><h4>We narrowed them down</h4><p>From there we did an affinity map exercise to narrow down to a set of themes we all wanted our principles to encapsulate.</p><p>We carefully crafted five loose phrases that summed up all of their respective themes.</p><h4>We shared them</h4><p>We first determined a roll out strategy for the principles. The first deliverable was a set of printed posters to post in a prominent place in the office. We chose a space that is both a designer focused area (where we have a lot of designer events, brainstorm, etc) but also gets a lot of traffic from other people in the company. We also placed them in our wiki and our design system so they can be referenced at any point virtually.</p><p>To get designers using them frequently, our design managers continually bring them up when discussing the effectiveness of design.</p><h3>Mission success</h3><p>The team has taken total ownership over the principles and they are referenced on almost a daily basis. Huge thanks to the wonderful design team at 7shifts. This was very much a collaborative effort.</p><p>Here’s what we ended up with:</p><h4>Remove unnecessary</h4><p>Always pare down to the smallest change while dreaming of the big picture.</p><h4>Design in the open</h4><p>Invite continuous feedback to ensure ideals fail fast when it’s cheap and easy to pivot.</p><h4>Deliver with delight</h4><p>Build trust by following through and delivering great experiences.</p><h4>Wait, but why?</h4><p>Dig into the core “why” behind all information presented. Create solutions with empathy.</p><h4>Who is this for?</h4><p>Practice inclusion by understanding people’s needs and adapting to changing demands.</p><h3>Questions?</h3><p><em>If you have any questions about this article, how you can apply this process to your organization, or just want to nerd out on design ops, feel free to reach out on </em><a href="http://www.linkedin.com/in/dustin-weeres"><em>LinkedIn</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7bdbc4d9d70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/7shifts-rd/creating-our-design-teams-compass-c7bdbc4d9d70">Creating our design team’s compass</a> was originally published in <a href="https://medium.com/7shifts-rd">7shifts Back of House</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>