<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Carson Ford on Medium]]></title>
        <description><![CDATA[Stories by Carson Ford on Medium]]></description>
        <link>https://medium.com/@carsonf92?source=rss-f4cb8f09c23e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QgGAHTLK4-7olIWaIoZQlA.png</url>
            <title>Stories by Carson Ford on Medium</title>
            <link>https://medium.com/@carsonf92?source=rss-f4cb8f09c23e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:15:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@carsonf92/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Studying Photography Made Me a Better Baker]]></title>
            <link>https://carsonf92.medium.com/how-studying-photography-made-me-a-better-baker-506726167053?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/506726167053</guid>
            <category><![CDATA[baking]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[photography]]></category>
            <category><![CDATA[hobbies-and-interests]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Wed, 20 May 2026 02:19:41 GMT</pubDate>
            <atom:updated>2026-05-20T13:41:37.242Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A film camera and a bun shaped like a hedgehog" src="https://cdn-images-1.medium.com/max/1024/1*_7YMQzn8hafQU7xQTLH4Aw.jpeg" /></figure><blockquote>Jack of all trades, master of none, though often times better than a master of one.</blockquote><p>I remember feeling anxious about deciding what I wanted to be when I grew up. With many interests, yet no overwhelming gifting in any particular area, I struggled to imagine picking a single avenue to pursue. In hindsight, I now acknowledge what a privilege it is to even have access to such choices and that not everyone has so many doors open to them.</p><p>Still, there is a perception that having too many interests is a flaw.</p><p>In our world’s ever increasing push for efficiency and maximizing every moment, it’s easy to cast curiosity as distraction. I’ve certainly felt the struggle of trying to pursue more interests than time allowed and then being disappointed when I wasn’t seeing the progress I had hoped for. Certainly, someone with a singular focus can reach greater depths in a subject, but, on the other hand, they might miss out on some of the richness that comes from a breadth of experience.</p><p>There is a balance to be struck — depth in some areas, breadth in others. Casting a wide net may help you discover where you want to delve deeper, but also, a breadth of knowledge may highlight connections between subjects that an expert in only one might not see.</p><p>Take, for instance, photography and baking.</p><p>In photography there are three main aspects that come into play when capturing light to produce an image.</p><ol><li><strong>Film speed:</strong> how sensitive the film is to light</li><li><strong>Shutter speed:</strong> how long the shutter allows light to reach the film</li><li><strong>Aperture size:</strong> how wide the opening for light is</li></ol><p>Each one affects the exposure, so they must be taken into account together. For instance, if you increase the shutter speed to capture a fast moving subject, you might need to widen the aperture to compensate. Or, if you’re using a slower film speed, you might also have to use a slower shutter speed. It is the interplay of these settings that allow photographers to capture images in all sorts of lighting conditions. Knowing how to control them to produce the desired result is an essential photography skill.</p><p>Keep that in mind as we next consider baking.</p><p>In baking there are three main aspects that come into play when getting dough to rise to produce a loaf.</p><ol><li><strong>Yeast:</strong> the amount and activity of a leavening agent</li><li><strong>Temperature:</strong> how warm or cool the dough is</li><li><strong>Time:</strong> how long the dough is left to rise</li></ol><p>Each one affects the dough’s rise, so they must be taken into account together. For instance, if your kitchen is cooler than normal, you might need to increase the rest time to compensate for the slower yeast activity. Or, if you’re short on time, you might increase the amount of yeast to speed up the process. It is the interplay of these aspects that allow bakers to adjust recipes to fit different circumstances. Knowing how to control them also allows for more variety of tastes and textures in the final loaf.</p><p>See the pattern?</p><p>Photography and baking are two entirely separate crafts, but both involve the concept of three interdependent aspects that affect the end result. Since I was already familiar with this pattern from studying photography, I was able to immediately recognize it in baking and apply it to recipes. My knowledge of controlling a photograph’s exposure directly translated to controlling the rise of dough; just like I could manipulate film speed, shutter speed, and aperture size when taking a picture, I realized I could manipulate dough through a similar relationship between yeast, temperature, and time.</p><p>Now, a baker doesn’t have to know about photography to understand this relationship, but it shows that knowledge in one area can give insight into another. On the surface, photography and baking might not seem like they have much in common, but you never know when a skill in one area might give you a leg up in another.</p><p>So, if you feel like you are struggling with too many interests, harness that curiosity to explore a wide range of topics. It may help you find areas where you want to specialize, but your knowledge will also compound as you pick up on patterns and make connections. Who knows, star-gazing might make you a better writer, playing chess might make you a better athlete, and studying photography just might make you a better baker.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=506726167053" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modding my favorite strategy game… 30 years after its release]]></title>
            <link>https://carsonf92.medium.com/modding-my-favorite-strategy-game-30-years-after-its-release-04245759aeb6?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/04245759aeb6</guid>
            <category><![CDATA[retro-gaming]]></category>
            <category><![CDATA[pixel-art]]></category>
            <category><![CDATA[videogames]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Tue, 05 May 2026 03:11:51 GMT</pubDate>
            <atom:updated>2026-07-14T02:05:38.557Z</atom:updated>
            <content:encoded><![CDATA[<p>Better late than never</p><p>One of my earliest experiences with videos games came from playing through a compilation of demos on a Galaxy of Games CD on a hand-me-down laptop. It didn’t bother me that only the first few levels of the games were included or that the Shareware demon blocked my progress after a certain point. The games were casual and fun and easy to get lost in for a little while after school.</p><p>Some games appealed to me more than others and I found myself gravitating toward them over time. Favorites like <em>Exile: Escape from the Pit</em>, <em>Gravity Well</em>, and <em>Critical Mass</em> kept me entertained for hours and filled my young imagination, inspiring drawings and short stories of my own.</p><p>One game stood out above the rest. Whether due to its puzzle-solving strategy, the timeless pixel graphics, or simply nostalgia, something drew me back to this game even as an adult. It’s a game called Slay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pbzW0q5qQStXh_sV.png" /></figure><h3>Slay</h3><p>Created by Sean O’Connor in 1989 on an Atari ST, the original title was <em>Battle Hex</em>. It went through several iterations, being renamed to <em>Empire</em> and then finally <em>Slay</em> for its release on PCs in 1995, but the core mechanics of the game were there from the start.</p><p>A turn-based strategy game, the goal of Slay is to conquer an island by defeating enemy units and capturing land. The game uses a hexagon (the best-a-gon) grid system with territories formed by adjoining hexagons of the same color. Capitals of territories collect money and create units, which the player moves to capture land, defeat weaker units, or chop down the ever encroaching trees. Each turn involves managing an economy to maintain units, making strategic military decisions, and forestry (seriously, the trees are the real threat).</p><p>My demo version when I was a kid came with one island, but that was more than enough to hook me. The game’s replayability meant that I could try conquering that island over and over again, with no two sessions unfolding quite the same.</p><p>Later, as an adult wanting to relive a childhood memory, I found the full version still for sale on Sean O’Connor’s <a href="https://www.windowsgames.co.uk/">website</a>. That was when I discovered that the game had an option for custom theming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OdFkx-Vc7uaza8pFxUxA9Q.png" /></figure><h3>Theming</h3><p>The standard medieval theme is a good fit for the game’s setting: lots of small territories vying for supremacy with units that follow a rigid hierarchy. I’ll always be enamored with the charming, original sprites, but I couldn’t resist the urge to try my hand at creating pixel art for one of my all-time favorite games.</p><p>I wanted my custom theme to stay true to the game’s scenario of competing for dominance with an ordered class system of units, so I went with another time and region of the world: feudal Japan. It’s such a unique and fascinating part of history, plus I thought it would be fun to design a pixel art samurai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGd1ULoWD5o6TOxI8pviYg.png" /></figure><p>The process to create a custom theme was simple. I made a copy of the original theme files and opened the sprite bitmap in Aseprite to draw my own pixel art. I collected Japanese-themed reference images from Pinterest to study while drawing my own sprites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cTAJ-YQUZaVdz4pBTIkbKQ.png" /></figure><p>Once the pixel art was done, all that was left was to edit a config file and then add the new theme folder to the game files. There were options to customize the colors used for the hexagons and to add music files for the sound effects, but I stuck with the defaults for those. I named the theme “Shogunate” and tried it out using the game’s Japan map. Before long I was leading my pixel army to victory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8sRqKQSZNmxW7QODtgOd_A.png" /></figure><p>I’ve played through several islands with my custom theme now and — while I’ll always have a soft spot for the original theme — I don’t see myself switching back any time soon. It’s been a rewarding way to revisit this classic game and enjoy it anew.</p><p>For anyone else looking to play Slay, updated versions are available on the App Store and Steam, but my preference will always be the version I first played on that demo disk years and years ago. Sean O’Connor’s website also includes a page with Slay themes that other people made back in the day, but if you want to give my Shogunate theme a try, I’ve made it available for download <a href="https://drive.google.com/file/d/1Iw-NilXKQNdxHG-AfuX-8Sh1zTKg35wa/view?usp=sharing">here</a>. Enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04245759aeb6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Inktober Postmortem]]></title>
            <link>https://carsonf92.medium.com/an-inktober-postmortem-7a75a3a8b88c?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a75a3a8b88c</guid>
            <category><![CDATA[drawing]]></category>
            <category><![CDATA[inktober]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 02:04:29 GMT</pubDate>
            <atom:updated>2025-11-03T14:12:00.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A plank piece of paper with a mechanical pencil resting on top" src="https://cdn-images-1.medium.com/max/1024/1*-o13WF4nUbCcu8S4wB8UWQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kellysikkema?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kelly Sikkema</a> on <a href="https://unsplash.com/photos/a-pen-sitting-on-top-of-a-piece-of-paper-next-to-a-cup-of-coffee-3YYxYgo04Ck?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>If you like to draw and have internet access then odds are you’ve heard of the annual autumnal art challenge called Inktober. Created by Jake Parker in 2009, it is a challenge meant to sharpen drawing skills and foster a creative habit. For years I’ve been impressed by what other artists have produced and have thought about participating myself, but was always too worried that my drawings wouldn’t be good enough or that the daily pace would be too hard to keep up with. After years of hesitation and false starts I finally set aside my doubts and committed to the challenge and — I’m happy to report — successfully completed it.</p><figure><img alt="The official Inktober 2025 prompt list with each entry crossed off" src="https://cdn-images-1.medium.com/max/1024/1*z8OofR6g4RaHzeJTixO0Hg.jpeg" /></figure><p>The challenge was, well, challenging, but looking back there are some strategies that helped me see it through.</p><h3>Scheduling tasks</h3><p>If there is something important that you want to do, schedule it. Setting a specific time for a task makes it harder to procrastinate since you’ve already committed a portion of your day to it. In my case, my time to draw was early in the morning when I knew I’d have an uninterrupted span of time to work.</p><h3>Preparing ahead of time</h3><p>If what you need is already set out and waiting it doesn’t take as much effort to follow through. To reduce friction I made sure to have my sketchbook and pens laid out the night before so all I had to do was sit at my desk and start drawing. I also picked out reference photos ahead of time to avoid wasting my dedicated drawing time on doom scrolling.</p><h3>Setting a time limit</h3><p>The daily nature of Inktober forced me to work quickly. If I didn’t finish a drawing in a day I’d fall behind and the backlog would pile up. In my current season of life I could only dedicate forty-five minutes to an hour per day for drawing. Normally I like to spend longer on finished artworks, but the time limit forced me to let go of perfectionism and focus on maintaining the pace.</p><h3>Sharing progress</h3><p>Throughout the challenge I didn’t check social media sites to avoid playing the comparison game. I knew none of my drawings were masterpieces, but I didn’t want to get discouraged by judging myself against better artists. Instead, I shared select pieces directly with friends who I knew would appreciate my rendition of a prompt. Selectively sharing my progress and taking suggestions from people I knew was a helpful boost of encouragement.</p><figure><img alt="Three ink drawings side-by-side of a bird, a witch, and hobbits" src="https://cdn-images-1.medium.com/max/1024/1*bz6Z_KcdMKUrJ7eeePMlcw.jpeg" /><figcaption>Some of the drawings inspired by suggestions</figcaption></figure><p>Even with those strategies in place it wasn’t always easy to keep up with the daily prompts. Some days I just didn’t have the time or energy to finish a drawing and then had to catch up. At my worst I was three days behind, but I was determined to complete the challenge this year, so I doubled up for a few days and got back on track.</p><p>In the end I managed to complete all thirty-one prompts by the end of October. I’ll be the first to admit that none of the pieces are great works of art; most are simple renderings of varying degrees of creativity. However, the time constraint forced me to embrace the imperfections and meant I was more willing to experiment with techniques. It didn’t matter if a piece didn’t turn out exactly how I’d imagined it, only that it got done.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kZahzeg1fBfKrBVtTOuGCQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ETOuB9820yfs93R6s_rE5A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wzCQ92ZnsjnN41UpExxzmg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Vycvw6X5oO8FNKWPf0qyw.jpeg" /></figure><p>So, will I participate in Inktober next year?</p><p>Maybe.</p><p>The challenge definitely forced me to draw more often and different subjects than I might normally. On the other hand, it was the only project I had time for. For a month. The daily pace meant there wasn’t time to work on bigger pieces or get to use other media. I will probably draw with a pen more often now though. It’s not a very forgiving tool — much harder to undo mistakes — but it forces confident mark making. Maybe by next October I’ll be ready to tackle the challenge again.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a75a3a8b88c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Playing with Fire]]></title>
            <link>https://carsonf92.medium.com/playing-with-fire-938211bdfd20?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/938211bdfd20</guid>
            <category><![CDATA[design-process]]></category>
            <category><![CDATA[game-design]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Tue, 25 Jul 2023 01:04:30 GMT</pubDate>
            <atom:updated>2024-11-09T19:55:30.292Z</atom:updated>
            <content:encoded><![CDATA[<h4>Designing a pen and paper game of chance and strategy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NnUT-gRY90uX8Ytvp3Evaw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@zoltantasi?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Zoltan Tasi</a> on <a href="https://unsplash.com/s/photos/wildfire?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I have fond memories playing pen and paper games as a child: tic-tac-toe, hangman, dots and boxes,… Even now I’m fascinated by how game mechanics and even narratives can be conveyed through such a simple medium.</p><p>There’s an unmistakable beauty within a well ordered system and getting to interact with that system — pursuing a goal subject to established laws within the confines of a microcosm — can be surprisingly immersive and satisfying. That sense of satisfaction inspired me to try my hand at designing a pen and paper game of my own.</p><p>I didn’t start with a specific concept in mind, but there were guiding principles I wanted to follow:</p><ul><li><strong>Single-player:</strong> I wanted to be able to play the game on my own.</li><li><strong>Easy setup:</strong> The game needed to work with just pen and paper.</li><li><strong>Moderately complex:</strong> Somewhere between tic-tac-toe and checkers.</li><li><strong>Replayability:</strong> There should be variation between sessions.</li><li><strong>Strategic:</strong> Ultimately, I wanted it to be a thinking game.</li></ul><p>With those key points in mind I gravitated toward a turn-based strategy game. Even though it would be single-player I liked the idea of competing against an adversary. A worthy opponent would need to be able to think and react though. I was wondering how to “program” an opponent on paper when I realized that randomness could be used to simulate decision-making, an element of chaos in an ordered system to introduce challenge and variation.</p><p>Fortunately, a solution for generating random already existed: dice. I briefly considered an alternative of tossing a coin, but I preferred the range of possibilities dice offered, especially when rolling two at once. Since I considered dice to be readily available the material demands of the game remained acceptably minimal.</p><p>Having chosen to use dice as an element of the game, other features soon fell into place. I decided to use a 6x6 grid for the gameplay, corresponding to the six sides on each of a pair of dice. (Considering that tic-tac-toe is on a 3x3 and checkers is on an 8x8, I figured I was going in the right direction in terms of complexity.) I also tried drawing some potential icons to use as game pieces. They needed to be quick and easy to draw on the grid, so I stuck with basic, geometric shapes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZD7yZqRKhP6mBHr2bqDlOg.jpeg" /></figure><p>Once the grid was established and I had some shapes to play with, I began experimenting with game mechanics. I quickly realized a limitation: the permanence of mark-making. It was difficult to make changes over time, so the gameplay was naturally limited to the filling up of the grid. This led to trying out different ways to fill the grid. The pattern that stood out to me the most was starting from a single point and spreading out from there. It inevitably filled the grid and mimicked the nature of a real-world phenomenon: fire. I had my adversary.</p><p>The narrative of the game felt like an obvious result of the mechanic I had chosen; the player would fight a spreading wildfire to protect the lands represented by the grid. Even the randomness of the dice seemed to match the chaotic nature of fire. All that remained was to define the rules of the game and to play test.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5x7n_4SAWhl0TPdCXkeC9g.jpeg" /></figure><p>I filled pages of a notebook with many sessions, noting what did or didn’t work and testing incremental adjustments. Decisions like how quickly the fire would spread and what actions the player could take were made by trial and error, but I came to a finished set of rules that I thought provided the best amount of variation and difficulty. To make it official, I made a <a href="https://v6p9d9t4.ssl.hwcdn.net/html/7567774/Wildfire.pdf">PDF rulebook</a> complete with example diagrams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eD_qkznsK543O5EJmDOI8g.png" /></figure><p>At this point I had completed my quest to make a pen and paper game of my own, but there was one more challenge I wanted to face: making a digital version. The game only required paper, something to write with, and a pair of dice, but I knew it would be even more convenient if all the setup was handled by a computer. Plus, I wanted to see what it would look like to have the wildfire spread all on its own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2UAyBS0AwOn1IqvNpUD01g.png" /></figure><p>The design of the digital version was largely dictated by the grid of the paper version, but I also added an automatic score counter and a dark theme, just for fun. As a front-end developer I used my knowledge of HTML, CSS, and JavaScript to build the game as a web app. With the rules of the game clearly defined it was trivial to program the game loop and before long I had a version I could play in a browser, even on my smartphone. You can try it for yourself here: <a href="https://wildfire.carsonford.info/">https://wildfire.carsonford.info/</a></p><p>I had set out to make my own solo pen and paper game and wound up with a satisfying, albeit flawed creation; I’ll admit the game is not perfectly balanced — some scenarios are too easy while others are impossible to win — but to me that’s true to life. My process led me to discover a game mechanic that I found interesting and a narrative that fit. In the end it was a rewarding experience, getting to exercise creativity to design a system, my own simple, little game world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=938211bdfd20" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A CSS Preprocessor Feature for Browser Specific Fixes]]></title>
            <link>https://carsonf92.medium.com/a-css-preprocessor-feature-for-browser-specific-fixes-2bc135ac0cdc?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2bc135ac0cdc</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Mon, 27 Sep 2021 12:14:00 GMT</pubDate>
            <atom:updated>2023-08-08T21:41:58.220Z</atom:updated>
            <content:encoded><![CDATA[<p>When I was a new front-end developer first learning about preprocessors I wrote “Learn SASS” on my whiteboard in my home office. Later that day my wife came in and, upon seeing the note, laughed and said, “I can teach you how to be sassy!” To my wife’s disappointment, I meant the CSS extension language. Later I grew to favor the SCSS syntax, so future confusion was avoided.</p><p>I have yet to master verbal sass.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sf-HqQa0P7XyeUAwPGkMtw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@worldsbetweenlines?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Patrick Hendry</a> on <a href="https://unsplash.com/s/photos/tiles?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>There’s a lot to appreciate about preprocessors: partials, nesting, mixins, and other features that can help keep stylesheets both succinct and readable. On the other hand, the capabilities of plain CSS have been growing (variables, filters, and scroll snapping to name a few). Many techniques that once required a preprocessor or even a JavaScript library can now be achieved in CSS alone.</p><p>Increasingly, my personal preference is to use plain CSS and vanilla JavaScript whenever possible. For small projects not having a preprocessor can simplify the build process and make things easier to maintain later. However, there are some things that plain CSS can’t quite replicate, like one of my favorite features from Sass, mixins.</p><h3>Mixins</h3><p>The Sass website describes mixins as a way to define styles that are meant to be reused. Using a mixin requires two steps: 1) encapsulating styles using the @mixin at-rule and then 2) including those styles elsewhere using the @include at-rule.</p><p>For example, you might want several variations of a button. In plain CSS you could create a class for each type of button, but there would be a lot of repetition; if you needed to adjust something like the font or the padding of the buttons, you’d have to edit every button class to keep things consistent.</p><pre>.button {<br>  border: 1px solid black;<br>  color: black;<br>  font: bold 14px sans-serif;<br>  padding: 8px 16px;<br>}</pre><pre>.button--primary {<br>  background-color: blue;<br>  border: 1px solid blue;<br>  color: white;<br>  font: bold 14px sans-serif;<br>  padding: 8px 16px;<br>}</pre><pre>.button--disabled {<br>  border: 1px solid gray;<br>  color: gray;<br>  font: bold 14px sans-serif;<br>  padding: 8px 16px;<br>}</pre><p>An alternative would be to create a base button class and then apply a second class with rules for the variations, but with mixins we can simplify matters.</p><pre>@mixin button {<br>  border: 1px solid black;<br>  color: black;<br>  font: bold 14px sans-serif;<br>  padding: 8px 16px;<br>}</pre><pre>.button {<br>  @include button;<br>}</pre><pre>.button--primary {<br>  @include button;<br>  background-color: blue;<br>  border-color: blue;<br>}</pre><pre>.button--disabled {<br>  @include button;<br>  border-color: gray;<br>  color: gray;<br>}</pre><p>We can include the base button styles into each of the button classes by defining a reusable mixin. Then, only the mixin block has to be edited for all the buttons to inherit those changes. When the code compiles to plain CSS it will function just like the first example, but it is much easier to maintain.</p><p>We can leverage mixins further by passing arguments to them. Similar to JavaScript functions, arguments are used as local variables within the block of code. To continue with the button example, we can pass a color to each instance like so:</p><pre>@mixin button($background-color, $border-color, $color) {<br>  background-color: $background-color;<br>  border: 1px solid $border-color;<br>  color: $color;<br>  font: bold 14px sans-serif;<br>  padding: 8px 16px;<br>}</pre><pre>.button {<br>  @include button(transparent, black, black);<br>}</pre><pre>.button--primary {<br>  @include button(blue, blue, white);<br>}</pre><pre>.button--disabled {<br>  @include button(transparent, gray, gray);<br>}</pre><p>A single mixin can accept multiple, comma-separated arguments and you can even define default values for them.</p><h3>Media Query Mixins</h3><p>Similar to arguments, a mixin can also accept many lines of styles called a content block. Using the @content at-rule, when a mixin is included any code within the curly braces will be injected in its place. I first encountered this method as a way to manage breakpoints; there are many variations of this technique, but here is a simple version:</p><pre>@mixin bp-desktop {<br>  @media (min-width: 1440px) {<br>    @content;<br>  }<br>}</pre><pre>@include bp-desktop {<br>  // styles that will be wrapped in a media query<br>}</pre><p>By including the bp-desktop mixin, any styles added to that block will be wrapped in the predefined media query. All instances of the include will use the same breakpoint value and if it ever needs to be changed it only has to be edited in the mixin declaration.</p><p>Some versions of this method use an argument for the min-width value, making the mixin much more flexible. I tend to use similar breakpoints from project to project though, so oftentimes this simple version is enough to get the job done.</p><h3>Browser Specific Media Query Mixins</h3><p>Anyone who has done browser-checks to make sure a site looks good across all browsers (yes, IE was included in the proposal) knows it can be maddening to tweak the CSS so that it behaves consistently. A fix in one browser can create new problems in another. One step forward, two steps back.</p><p>Browser support for the latest and greatest CSS features continues to improve, but sometimes, as a last resort, you need a little bit of CSS that is specific to a single browser. Once again, media queries come to the rescue.</p><p>A quick Google search for browser-specific media queries will turn up plenty of results for complex, difficult-to-remember media query formulas. However, using the power of mixins and the @content at-rule, we can define reusable, browser-specific media queries.</p><pre>// Internet Explorer 10+<br>@mixin ie {<br>  @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { @content; }<br>}</pre><pre>// Microsoft Edge<br>@mixin edge {<br>  @supports (-ms-ime-align:auto) { @content; }<br>}</pre><pre>// Safari 10.1+<br>@mixin safari {<br>  @media not all and (min-resolution:.001dpcm) {<br>    @supports (-webkit-appearance:none) { @content; }<br>  }<br>}</pre><pre>// Firefox 4+<br>@mixin firefox {<br>  @media screen and (min--moz-device-pixel-ratio:0) { @content; }<br>}</pre><pre>// Chrome 29+<br>@mixin chrome {<br>  @media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) { @content; }<br>}</pre><p>With this set of mixins you just have to use the corresponding include for the browser that needs specific styling — much better than trying to remember each unique hack or having to look it up every time you need one!</p><p>For more ways to target specific browsers check out <a href="http://browserhacks.com/">BrowserHacks</a>. It can help you create your own list of mixins for cases you encounter frequently.</p><p>There’s a lot more to learn about mixins, but I hope this guide is helpful in getting started and that the breakpoint and browser-specific examples prove useful. For further research, be sure to reference the full <a href="https://sass-lang.com/documentation">Sass documentation</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2bc135ac0cdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asking for Daily Bread]]></title>
            <link>https://carsonf92.medium.com/asking-for-daily-bread-a9ce0a6698ec?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9ce0a6698ec</guid>
            <category><![CDATA[christianity]]></category>
            <category><![CDATA[devotional]]></category>
            <category><![CDATA[prayer]]></category>
            <category><![CDATA[theology]]></category>
            <category><![CDATA[bread]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Mon, 15 Mar 2021 23:55:19 GMT</pubDate>
            <atom:updated>2021-03-15T23:55:19.247Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2EbllF60QfmeBn8iWw7-jw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@asthetik?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Mike Kenneally</a> on Unsplash</figcaption></figure><blockquote>Pray, then, in this way:<br>Our Father who is in heaven,<br>Hallowed be your name.<br>Your kingdom come.<br>Your will be done,<br>On earth as it is in heaven.<br>Give us this day our daily bread…<br>(Matthew 6:9–11)</blockquote><p>Bread is as old as civilization. Nomadic groups who turned from hunting and gathering to agriculture established the first permanent settlements by learning how to cultivate crops like barley and wheat. Bread soon became a staple food, one nourishing enough to sustain the growing populations of towns and cities. Daily bread meant life and growth and culture.</p><p>Baking bread is both an art and a science. The mouth-watering aroma, intricate flavors, and beautiful designs are the result of careful measuring, complex microbiology, and a practiced hand. Traditionally, the process of bread-making involves a live starter, a culture of yeast that serves as a leavening agent. The starter not only gives bread its rise and airy texture, but also imparts flavor and develops the gluten for easier digestion. The maintenance of a starter requires regular feeding and attentive monitoring. Daily bread means discipline and regimen and skill.</p><p>In the book of Exodus, when the Israelites were freed from slavery in Egypt, they were instructed to leave quickly. There was no time to prepare bread with leaven, so they baked flatbreads instead, the kind of bread that came to typify the Passover celebration and that Jesus used when he broke bread and gave it to his disciples at The Last Supper. After leaving Egypt the Israelites wandered in the desert for 4o years, but God provided manna to eat, though they were told only to collect enough for each day. Daily bread meant faithfulness and provision and obedience.</p><p>The prayer modeled in the gospel of Matthew includes a request for daily bread. This instruction comes after Jesus warns the disciples against drawing attention to their good works to earn the praise of men. Seeking to appear righteous through public demonstrations, even ones of charity or piety, ignores that true righteousness is a gift from God, not the result of works. Asking for daily bread is not only a request to fulfill the basic need of sustenance, but an acknowledgement that God is the ultimate sustainer of life, the one from whom all blessings flow. After all, “man shall not live on bread alone, but on every word that proceeds from the mouth of God.” (Matthew 4:4)</p><p>God wants us to rely on him like our bodies rely on food: daily. He is the only one who can satisfy our souls. As Jesus taught, “I am the bread of life. Whoever comes to me will never go hungry, and whoever believes in me will never be thirsty.” (John 6:35)</p><blockquote>Taste and see that the Lord is good;<br>How blessed is the man who takes refuge in Him!<br>(Psalm 34:8)</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9ce0a6698ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Best Way to Shuffle a Deck of Cards]]></title>
            <link>https://carsonf92.medium.com/the-best-way-to-shuffle-a-deck-of-cards-c6b297bc862b?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6b297bc862b</guid>
            <category><![CDATA[playing-card-games]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[entertainment]]></category>
            <category><![CDATA[permutations]]></category>
            <category><![CDATA[probability]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 16:00:21 GMT</pubDate>
            <atom:updated>2020-09-19T16:00:21.448Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to ensure a statistically random distribution</h4><p>Whenever I play cards there’s a complaint commonly uttered by friends and family alike:</p><blockquote>Who shuffled these?</blockquote><p>Whether the disgust in their voice is genuine or they are merely bluffing to conceal a good hand I wonder about the art of shuffling. Is there a method to guarantee a statistically random distribution of cards throughout the deck?</p><figure><img alt="Playing cards scattered face-up" src="https://cdn-images-1.medium.com/max/1024/1*6NrFpflyvQ3WzklkfBvUgQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@amandagraphc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Amanda Jones</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Since a deck is made up of 52 unique cards there are 52 factorial possible arrangements the deck could be in (52 factorial is the same as 80,658 vigintillion, a number with 68 digits), guaranteeing virtually no chance that you will ever play the same game twice. Shuffling disorganizes the cards into these unique arrangements, but how can a high degree of randomness in the deck be ensured?</p><blockquote><strong>Randomness:</strong> the quality or state of lacking a pattern or principle of organization; unpredictability</blockquote><p>It is important to note that the appearance of order may still arise from a randomized deck of cards. If the order is truly random, nothing prevents pairs, straights, or even a perfectly ordered deck resulting from a good shuffle. No outcome is more or less probable than another.</p><p>Since every possible random arrangement of 52 cards is equally probable, the <em>perceived</em> degree of disorder is not the goal. Instead, the method of randomizing the deck should aim to maximize the <em>potential</em> for disorder.</p><p>So, how good is shuffling at creating disorder?</p><h3>Shuffling</h3><p>One of the most common methods of shuffling is called riffling. The basic steps are:</p><ol><li>Divide the deck in half</li><li>Successively overlay the cards, alternating between each half of the deck</li><li>Repeat</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nftyGHq41-W0JTEzy1IuIw.jpeg" /></figure><p>Shuffling like this has a very predictable outcome, the opposite of our definition of randomness. If executed perfectly (dividing the deck exactly in half and never skipping a card when alternating from left and right), this method will actually return the cards to how they started after either 8 or 52 shuffles, depending on which half starts interleaving. Any degree of randomness is solely due to inaccuracies while manipulating the deck.</p><p>In practice, a sufficient level of randomness is achieved after <strong>7 shuffles</strong>.</p><p>Besides being predictable, there is also a limited amount of disorder that can occur during a single shuffle. Since the deck is halved before being shuffled back together, a card can only move halfway through the deck at most.</p><p>For instance, if 10 cards are shuffled using the riffle technique, when the bottom of the top half, the 5th card, is laid on top of the bottom of the bottom half, the 10th card, it becomes the new 9th card. The 10th card doesn’t change position at all, but the new 9th card changes 4 positions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jz8oocWoF3KlfapdHKd5sQ.gif" /></figure><p>A similar pattern continues through the rest of the deck, with the old 9th and 4th becoming the new 8th and 7th (changing 1 and 3 positions respectively), the old 8th and 3rd becoming the new 6th and 5th (2 positions each), and so on.</p><p>At the end of a single perfect shuffle of 10 cards the most a card will shift is 4 positions. With a standard 52-card deck the most a card will shift is 25 positions. Either way, the most a card can move is about halfway through the deck per shuffle.</p><p>To reach the maximum potential for disorder a card must be allowed to shift to any of the 52 positions after a single shuffle. Of the other methods to shuffle cards, such as the Overhand, Faro, and Hindi, each follows a pattern and relies on inaccuracies in execution to create randomness, save one notable exception.</p><h3>Smooshing</h3><p>Also known as a scramble, smooshing is a method of shuffling where the cards are placed face down and spread around over each other before being gathered back into a stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pH3843DZi4ODffcS9XbGuA.jpeg" /></figure><p>What this method lacks in finesse it makes up for in effectiveness. Any card can end up in any position in the deck after a single shuffle.</p><p>Unlike the riffle method, there is no semblance of order in how the cards are shuffled. The way the cards slide over or under each other is unpredictable and it is impossible to repeat the exact smooshing movement again and again. The potential for disorder is maxed out.</p><p>In practice, <strong>1</strong> <strong>shuffle</strong> lasting about a minute is more than enough to ensure a statistically random arrangement of cards.</p><p>So, what’s the best way to shuffle a deck of cards? Ultimately, the choice is yours: shuffle several times in an orderly fashion or only once with chaotic abandon. Ignore people when they lament their hand and just have fun playing yours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*nhhK62U-GrTfsMIhfCMsdw.gif" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6b297bc862b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Function Training]]></title>
            <link>https://carsonf92.medium.com/learning-to-function-with-trains-704ae45297ee?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/704ae45297ee</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[tutorial]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Sat, 30 Mar 2019 15:31:56 GMT</pubDate>
            <atom:updated>2021-08-31T14:21:47.933Z</atom:updated>
            <content:encoded><![CDATA[<h3>Using JavaScript to Avoid a Train Wreck</h3><h3>Demonstrating the value of functions by determining the timing of a train wreck</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a9w7SxsbR8idDfx4rtrNIw.jpeg" /></figure><blockquote>Two trains leaving from different cities head toward each other at different speeds. Train A, traveling 80 kilometers per hour, leaves Philadelphia heading toward New York, 150 kilometers away. At the same time Train B, traveling 120 kph, leaves New York heading toward Philadelphia. When will the two trains meet?</blockquote><p>I realize this type of problem may conjure up nightmarish memories of middle school math class. However, stick with me and not only will you be able to solve this problem with ease, but I will also teach you how to write a JavaScript function to solve it for you!</p><p>But, before we can write a single line of code we must understand the problem to determine how to solve it.</p><h3>Understanding the Problem</h3><p>In my wholesome homeschool mathematics curriculum the trains were always happy little locomotives, pulling passenger cars, traveling on parallel tracks whose engineers simply wanted to know when they would get to wave to each other.</p><p>Let’s raise the stakes.</p><p>The two trains in this scenario are mistakenly on the same track, heading on a collision course! The first is a commuter train full of passengers and the second is a runaway freight train with a jammed throttle. We need to know how much time there is to prevent disaster. Lives hang in the balance!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*W-K10kAi2dOxXtdVHjsSHw.gif" /></figure><p>From the problem we know several things, some of which are useful. The information relevant to us is the speed of each train and the distance between them. Distance is equal to rate times time and since we know both distance and rate we can solve for time.</p><pre>Distance = Rate × Time</pre><p>Which can be restated as:</p><pre>Time = Distance ÷ Rate</pre><p>If we were only concerned with one train traveling to the other city the solution would be obvious. We know the distance (150 km) and the speed of train A (80 kph), so time would simply be 150 km ÷ 80 kph (1 hour, 52 minutes, and 30 seconds). However, our problem involves two moving objects, so we must consider the relative speed of the trains to each other.</p><p>Train A is traveling 80 kph, so its relative speed to nearby objects like trees, buildings, and other stationary things is 80 kph. Train B is traveling at 120 kph toward train A, so it appears to be moving much faster to train A than other non-moving objects around. To find the relative speed of the two trains we just add their speeds together, 200 kph in this case.</p><p>Knowing relative speed, we can solve for time using the equation above. 150 km ÷ 200 kph = 45 minutes.</p><p>We have our answer!</p><p>Unfortunately, it took a while to solve. Let’s say that it took ten minutes to explain and solve the problem. That means we actually only have 35 minutes left until train wreck. Precious time lost! What if in the past ten minutes we missed the only opportunity to avoid disaster?</p><p>This is where computers come into play.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*UCsAubwUKGF0fstwLqFNjA.gif" /></figure><h3>Defining a Function</h3><p>In computing, a function is a reusable block of code designed to execute a task when called. Many programming languages use functions, but we are going to focus on JavaScript as its syntax is easy to understand and you can run the code for yourself in an internet browser.</p><p>A function definition requires the function keyword, a unique name, a place to receive optional parameters, and a block of instructions to execute.</p><pre>function name(parameters) {<br> // instructions to execute<br>}</pre><p>The name is what must be called to invoke the function. Parameters are optional values that can be provided for the function to work with. The space inside the curly brackets is for code that will run when the function is called.</p><p>Since we know how to solve the problem of the two trains we can define a function to solve it for us. We just need to name our function, pass it the relevant information, and translate our formula into code.</p><p>Using camelCase, let’s name the function timeToIntercept. The parameters we need to pass to the function are distance, speedA, and speedB.</p><pre>function timeToIntercept(distance, speedA, speedB) {<br> // instructions to execute<br>}</pre><p>The block of instructions will handle computing the solution. Solving the problem takes two steps, so we need to instruct the function how to (1) find the relative speed of the trains and (2) use the formula to solve for time.</p><p>We will declare a variable named relativeSpeed and assign it the value of speedA + speedB. Then we can use the return statement to print out the value of distance ÷ relativeSpeed.</p><pre>function timeToIntercept(distance, speedA, speedB) {<br> var relativeSpeed = speedA + speedB;<br> return distance / relativeSpeed;<br>}</pre><p>Our function is complete! All that is left is to call it and pass in the necessary parameters.</p><pre>timeToIntercept(150, 80, 120);</pre><p>After the function runs we receive the output:</p><pre>0.75</pre><p>0.75 hours is the same as 45 minutes.</p><p>The function works! The computer can calculate how long until the two trains meet. Now someone just has to prevent the train wreck…</p><p><em>To test out the code for yourself open the web inspector of your browser and paste both the completed function declaration and the function call into the console panel and press enter.</em></p><h3>The Value of Programmatic Functions</h3><p>Once defined a function can be called over and over again. The ability to pass in parameters means the same function can be used to solve this type of problem for any given variables. Best of all, the computer is able to solve the problem in a matter of milliseconds, an insignificant fraction of the time it takes you to even call the function with your fumbling human fingers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/1*QoJYVluaILH3PC7b5nx7Wg.gif" /></figure><p>Next time you find yourself struggling through a middle school math class try defining a function to solve your homework for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=704ae45297ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[7 Days without a Smartphone]]></title>
            <link>https://carsonf92.medium.com/7-days-without-a-smartphone-6c326dca8d02?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c326dca8d02</guid>
            <category><![CDATA[humor]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[smartphones]]></category>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[fiction]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Mon, 10 Sep 2018 11:01:01 GMT</pubDate>
            <atom:updated>2020-09-07T00:24:33.546Z</atom:updated>
            <content:encoded><![CDATA[<h4>Surviving without a ubiquitous modern accessory</h4><p><em>The following is a fictional account detailing the aftermath of a traumatic occurrence in the life of a millennial. Any resemblance to actual persons or events is purely coincidental.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*46MJFqop9TISuwwOVbHYiA.png" /></figure><h3>Prologue</h3><p>I never thought it would happen to me.</p><p>It’s the sort of thing you assume will happen to someone else. However, turns out, I was that someone else.</p><p>I dropped my phone in the toilet.</p><p>The day had been off to a good start. I was texting back and forth with my crush, using just enough emojis in all the right places. The conversation was going well, a sporadic repartee that had spanned the whole morning. Anxious that I might miss one of her messages or take too long to reply I took my phone with me to the bathroom, setting it on the edge of the sink.</p><p>I was washing my hands when it happened.</p><p>I got a message from her. The phone vibrated as the notification flashed on the screen. The slight movement was enough to tip the phone off the edge. I lunged to catch the device before it could plummet to the cold bathroom floor, but my hands, dripping wet and slick with soap, proved useless. The phone slipped through my fingers and struck the rim of the toilet. The screen shattered into a spiderweb of jagged shards before teetering into the bowl with a resounding plunk. The screen flickered for a moment and then went dark.</p><p>I don’t know how long I stood there, staring down into the toilet; I had always used my phone to check the time.</p><p>In shock, I retrieved the ruined phone from the toilet and held it up to assess the damage. The diagnosis was clear: setting it in a bowl of rice wouldn’t work this time.</p><p>Recalling that I had purchased accident insurance for the phone, I left home and rushed to the wireless store a few blocks away.</p><p>There was no one in the store when I arrived. I rang the bell on the counter once, twice, and then a spectacled associate with a scraggly beard slid out from the back room.</p><p>“Do you need something?”</p><p>“My phone, um, broke,” I explained, skirting the details. “I need a new one.”</p><p>“Did you try switching it off and on again?”</p><p>I placed the phone on the counter in reply.</p><p>“Oh.”</p><p>He sat down behind the store computer and began to enter in my information, pecking the keys with his pointer fingers.</p><p>“So, your accident insurance expired, but you’re eligible for an upgrade anyway. Wait here.”</p><p>Perhaps my luck hadn’t run out. A new phone would be great; the old one had started to show some wear and the new model had just been released. I wouldn’t have to tell anyone that I had dropped my phone in the toilet after all. I’d just say I got an upgrade!</p><p>“Out of stock.”</p><p>Never mind…</p><p>“Sold out,” the associate elaborated. “I’d give you your current model, but you’re only eligible for an upgrade, not a replacement.”</p><p>“I’ve got to have a phone,” I interjected. “When will it be in stock again?”</p><p>The man scratched his beard. “The new model is backordered, so it could take a few days, maybe a week.”</p><p>Defeated, I left the store and went back home. The associate said he would have the new phone shipped to my address once it was available. Meanwhile, I would be phone-less.</p><p>I felt alone, unable to call, unable to text. I couldn’t even take a selfie to document my misfortune. What was I supposed to do without a phone?</p><h3>Day One</h3><p>A smartphone is truly the Swiss army knife of the digital age. Not only had I lost my phone, but I was now also without my camera, notepad, calendar, and even alarm clock. I was made painfully aware of that last one when I overslept the first morning without my phone.</p><p>Knowing that I would be late for work, I considered calling in sick. However, I ran into two obstacles: (1) I didn’t have a landline to make the call and (2) my boss’s number had been saved in my phone, not my head. It dawned on me that I had also lost my address book.</p><p>Going to work presented difficulties as well. The door to the office was protected by an electronic key scanner; I had always used my phone. I was now also without my key card. Thankfully, I caught the attention of a coworker inside the building who let me in.</p><p>Work went well enough, despite being tardy. There was nothing to distract from the long, awkward silences riding the elevator or passing people in the hall. I didn’t know where to look or what to do with my hands, so I kept to my desk and tried to focus on work.</p><p>Back at home later that evening I struggled to wind down for bed. Normally I turned on a podcast and fell asleep while it played, but without my phone the room was silent. I had also lost my radio.</p><p>Instead, I booted up my laptop to check social media. At first I struggled to remember my various logins; I had grown accustomed to staying signed in on my phone. Time trickled by as I browsed. Scroll, scroll, scroll.</p><h3>Day Two</h3><p>Today I was lost without my smartphone.</p><p>No, not figuratively. I was legit lost.</p><p>It started when I decided to check out a nearby library to find a book to read at night. Taking my laptop to bed had proved disastrous, as I had stayed up far too late and slept poorly. I decided to embrace my lack of technology by going old school and checking out a book to read before bed.</p><p>I had a general idea of where the library was. Confident in my sense of direction, I set out on my quest. However, after half an hour of wandering around a maze of unfamiliar streets, it was clear that I needed directions. Out of reflex, I reached for my phone to make use of the GPS, but my pocket was, of course, empty.</p><p>Fear began to creep in when I no longer recognized any of the streets I was on. It’s not like it was a sketchy part of town; I just hadn’t been lost since I was six years old. Swallowing my pride, I decided to ask for directions.</p><p>I spied several potential guides to choose from: a man in a suit waiting by a bus stop, a woman pushing a stroller, and a dog walker being dragged along by at least a dozen of her wards. The businessman was engrossed with his phone and the dog walker had her hands full, so I approached the young mother.</p><p>“Excuse me,” I said. “Do you know where the library is?”</p><p>The woman was surprised to be hailed by a stranger, but smiled and laughed good-naturedly.</p><p>“You’re close! It’s just around the next corner,” she said, pointing to the next intersection. “I’m on my way there now if you’d like me to show you.”</p><p>Embarrassed, but also relieved, I accepted the offer and accompanied her along the remaining distance to the library. Once inside she showed me around the building; she was a frequent patron and recommended several books to check out.</p><p>It wasn’t until after we had parted ways that I thought to ask her the best way to get home. At least if I got lost again I’d have a book for company.</p><p>I should have checked out a map.</p><h3>Day Three</h3><p>I never thought of myself as someone who feared missing out on things. That was before I became phone-less.</p><p>Now I couldn’t help but think of the posts, messages, and invites I was missing. Without my phone flashing notifications non-stop, I found myself signing in on my work computer throughout the day to check my accounts. More often than not I hadn’t missed anything consequential, but still, I felt the need to know.</p><p>It came to a breaking point after I had sent a message to my crush. I had casually asked if she had any plans for the weekend, secretly planning to ask her out on a date if not. She didn’t reply immediately, so I kept going back to sign in and check over and over again.</p><p>This went on for hours.</p><p>I began to second-guess my message. Had I come on too strong? Was she not interested in me? Was she too busy talking to someone else?</p><p>I was driving myself crazy and I wasn’t getting any work done, so I blocked the website. I decided not to check again until the evening on my own computer. Resolved, I was able to focus on work and salvage the afternoon.</p><p>Though I had managed to muster patience at work, I was anxious to check for a reply when I arrived home. I forced myself to put my things away and eat dinner first. After washing the dishes I finally retrieved my laptop.</p><p>She had replied.</p><p><em>I don’t have any plans. Would you want to do something together? :)</em></p><h3>Day Four</h3><p>With still no word from the wireless store and my desk at work overflowing with a half-hazard arrangement of sticky notes I decided it was time to buy a notebook.</p><p>I had relied on several apps for taking notes and organizing my schedule and was losing track of things without them. Their analogue precursors would have to suit my needs.</p><p>I went straight to the store after work. At first I was overwhelmed by the variety of options; I found notebooks, journals, and calendars of all different sizes and colors. In the end I selected a medium sized, leather bound planner. It had enough pages to last two years with sections designated for monthly and weekly planning and plenty of room for notes.</p><p>I also splurged and bought a nice pen. If I was going analogue I might as well do it in style.</p><p>Back at home, I soon realized that the pen was much more impressive than my handwriting. Having only typed notes for so long, my handwriting had devolved into a childish chicken scratch. I switched to cursive and found it more tolerable.</p><p>I was pleased with my purchase. The planner was easy to use and writing by hand was both quick and comfortable. Plus, I wouldn’t have to charge it every night.</p><p>I christened the planner with two calendar entries: an outing to a new coffee shop with some friends from work tomorrow and the date with my crush the day after that.</p><h3>Day Five</h3><p>Finally, Friday.</p><p>To celebrate the conclusion of another work week I went with a group of colleagues to visit a new coffee shop in the neighborhood. By the time I arrived several of my friends had already claimed tables, so I set my things down in one of the chairs and joined the line at the counter.</p><p>When it was my turn to order I reached for my phone to pay with the scanner. Embarrassed by the force of habit, I reached for my wallet instead, but I had left it with my things at the table. Luckily, I had a few loose bills in my jacket and was able to pay with those.</p><p>Apparently I was living off-grid now.</p><p>Steaming beverage in hand, I took my seat and looked around the coffee shop. Illustrative artwork decorated the walls lit by industrial lighting fixtures. The tables were solid wood and the seating was upholstered with unique yet subtle patterns. Music played softly from concealed speakers, setting an appropriate mood for the trendy haunt.</p><p>I turned to the friend sitting beside me to ask which drink he had ordered, but stopped when I saw he was busy typing a blog post on his phone and trying to connect to the coffee shop wifi. Not wanting to interrupt, I turned to the colleagues sitting across the table. They were posing for a selfie with their drinks held aloft. I offered to help and took a quick series of photos. Once I returned the phone they quickly scrolled through the pictures to see which was post-worthy.</p><p>Maybe it’s because I was the only one without a smartphone, but throughout the evening I noticed as my friends kept returning their attention to their devices, distracted by a notification or wanting to take another picture of something. Conversation happened in short bursts, punctuated by incessant buzzing and chimes.</p><p>Once it started to get late I quietly slipped out and headed for home. Even though I hadn’t taken a single photo or posted anything about the outing I felt as though I had been the only one truly present. Without the distraction of a smartphone I had simply enjoyed being in the moment.</p><p>For the first time since being without a phone I didn’t miss having one.</p><h3>Day Six</h3><p>I was both anxious and excited for my date that evening. We had hung out together plenty of times before, usually with a group of friends, but this would be our first real date. I had made reservations through the restaurant’s website that morning and had struggled with narrowing down what to wear up until it was time to go. I finally decided to forgo the tie, but kept my shirt tucked in.</p><p>We had agreed to meet at the restaurant as it was roughly between where we lived. I left early, hoping to get there first; I didn’t want to keep her waiting. I arrived outside the restaurant with ten minutes to spare, but I was already glancing around expectantly.</p><p>She arrived soon after, wearing a pale green dress. Her hair fell in soft waves about her shoulders and a loosely tied scarf hung around her neck. She smiled when she saw me wave and joined me at the entrance. Her cheeks were tinged with a faint pink blush. I was glad not to be the only one a little nervous.</p><p>I opened the door for her and she led the way into the restaurant. We were quickly seated at a comfortable table for two half recessed into one of the brick walls. A waitress supplied us with menus and deftly lit the candle on our table.</p><p>Conversation was a little slow at first. Most of our interaction until that point had been in a group or via text; this was new territory. To fill the gaps she pretended to read her menu and I fidgeted with the silverware.</p><p>Our waitress returned and we placed our orders. Once it was just the two of us again I was about to try another topic when her phone chimed. She glanced down, but chose to ignore it and left it on the table. However, as soon as the conversation began to take off, her phone chimed again, pulling her attention away. She reached down to check the notification.</p><p>A sudden boldness struck me. Leaning forward, I placed my hand on top of hers as she was about to pick up the phone, covering the screen. She looked back up at me, quizzical.</p><p>“How about no phones?” I suggested, suddenly feeling confident. “Lets make this evening just about us.”</p><p>The smile returned to her face. Sliding her hand out from under mine, she flipped the mute switch and tucked the phone away in her bag. To my delight, she returned her hand to mine on the table, her eyes sparkling in the candlelight.</p><p>“That’s right, you’ve been without a phone for the past few days,” she said. “What’s that been like?”</p><p>“Well, let me tell you about my week…”</p><h3>Day Seven</h3><p>On my way back home from church I was surprised to discover a small package waiting for me at the mail kiosk in my building. The box was labeled with an expedited shipping stamp. It was my new phone.</p><p>Hurrying upstairs, I began to unbox and set up the phone. The screen flickered to life and I quickly began to download all of my old apps and preferences. Dozens of missed notifications and unread messages flashed across the screen, each vying for attention, appearing faster than I could dismiss them.</p><p>My trusty calendar and notebook apps loaded all of my old notes and plans. I opened each to start updating them, but my fingers felt cramped on the tiny keyboard. I had grown to prefer writing things down in my planner. Even with all their features my apps couldn’t compete with something tactile. My enthusiasm for the new phone ebbed a little.</p><p>As more and more app icons populated the screen I took a more critical look at them. I realized I hardly used most of them, even before being without a phone. I began to purge a few, trying to keep only ones that were either useful or somehow productive. It felt good to declutter.</p><p>I suddenly realized over an hour had slipped away while setting up my new phone. My stomach rumbled; I had also forgotten about lunch. Setting my phone on the counter, I rummaged around in the kitchen for something to eat.</p><p>While I was eating my phone buzzed as a text message appeared on the screen. It was from her.</p><p><em>I had fun last night. :)</em></p><p>I started to type a reply, but decided to call instead. She answered quickly.</p><p>“Hey, you must have gotten a new phone! I wasn’t sure if you’d get my message.”</p><p>“Yeah, it came this morning,” I said. “Hey, I know we just saw each other last night, but would you want to do something this afternoon? I’m free and there’s this new coffee shop I thought you might like.”</p><p>“You had me at coffee. Where is it?”</p><p>I gave her the address and told her I’d meet her there. Two dates in as many days; I couldn’t stop smiling.</p><p>I found my keys and threw on my jacket and was about to leave when I remembered my phone. The past few days had undone the habit of grabbing it on the way out. About to pick it up, I hesitated.</p><p>After my no-phone suggestion last night our date had gone really well. Actually, the past few days had gone really well. I had been less distracted and was more intentional about my free time. Maybe I didn’t always need to have my phone with me.</p><p>Objections arose in my head. What if she needed to call me? What if I missed an important message? Was it even safe not to have a phone with me, just in case?</p><p>I left the phone on the counter and closed the door behind me. I didn’t need my phone for a quick trip to the coffee shop. I didn’t have to be connected 100% of the time. I wanted my phone to be a useful tool, not a constant distraction.</p><p>I’ll admit, it felt strange to willingly disconnect, but it was also freeing. Having a phone again would be convenient, but I didn’t need to rely on it for everything.</p><p>I could go another day without a smartphone.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c326dca8d02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Combining Design & Development with Target Archery]]></title>
            <link>https://medium.com/front-end-weekly/combining-design-development-with-target-archery-b105fbe9f982?source=rss-f4cb8f09c23e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b105fbe9f982</guid>
            <category><![CDATA[side-project]]></category>
            <category><![CDATA[archery]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Carson Ford]]></dc:creator>
            <pubDate>Mon, 02 Jul 2018 11:01:01 GMT</pubDate>
            <atom:updated>2024-11-09T19:57:00.496Z</atom:updated>
            <content:encoded><![CDATA[<h4>A Creative Mashup of Skill and Interest</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yJWvMihNSQk8bPkUNj6fJw.png" /></figure><p>I’m a big fan of side projects; they are a great way to cultivate creativity and learn new things. However, successfully completing a side project requires more than passing interest. I’ve found that the best way to learn a new skill is to couple it with a preexisting talent. This cross-pollination leads to both retained knowledge and newfound perspective.</p><p>I am a web designer/developer by trade, spending my days pushing pixels and typing code. In my free time I’ve recently taken up target archery. So, when the urge to embark upon a side project struck I decided to find a way to merge my skill in design with my interest in archery. I landed on data visualization.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Ff%2F788447%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2F788447%2F&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/18214d8333adbb5668f31791a3202b60/href">https://medium.com/media/18214d8333adbb5668f31791a3202b60/href</a></iframe><h3>The Concept</h3><p>The software company Oracle defines data visualization as, “the presentation of abstract information in graphical form […] to spot patterns, trends, and correlations that otherwise might go unnoticed.”</p><p>Archery is rife with measurable data, so it seemed an excellent candidate for a visualization project. I also hoped to improve as an archer by analyzing my shots more closely. Normally I would simply tally my score after each end and make rough estimations of my form by judging the tattered remains of the paper target face, but by intentionally logging and charting my shots I could glean much more precise and useful information.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-NtvnQJIL03Ca_pi7Xr5Sw.jpeg" /><figcaption>My first concept notes</figcaption></figure><p>I decided to design a web app that would log arrows and plot them on a digital target, calculating various statistics like accuracy and precision. By combining my knowledge of design/development with my interest in archery I hoped to gain insight into one while strengthening my skill in the other.</p><h3>The Metrics</h3><p>To visualize data one first needs to know what data to visualize. Of the many potential data points to track I narrowed my focus to three key metrics.</p><h4>1. Average Score</h4><p>In competitive archery the goal is simple: score the most points. While a contest ultimately boils down to total score, average score is a useful indication of overall accuracy.</p><h4>2. Average Variation</h4><p>I define variation as the difference between one shot and the next, or the distance between consecutive shots from each other on the target. Therefore, average variation is a measurement of precision. A tight group of arrows has low variation, indicating high precision, whereas a loose grouping has high variation, or low precision.</p><h4>3. Group Center</h4><p>Group center refers to the center point of a group of arrows, or the point equally between all arrows. A high average score coupled with a low average variation points toward a well placed group center, but I wanted to calculate it specifically so I could make informed sight adjustments on my bow.</p><h4>A Note on Scoring</h4><p>An archery target is comprised of ten concentric rings of incremental values. The center is worth ten points, the next nine, then eight, etc. If an arrow strikes or just touches the line between rings it is awarded the higher score.</p><p>While the metrics of average variation and group center are calculated solely from the center point of each arrow on the target, average score takes into account the thickness of the arrow shaft. This is something I would have to keep in mind when developing the web app.</p><h3>The Design</h3><p>Equipped with a well defined concept and key metrics to track it was time to dive into design, starting with sketches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BAEcXfsIwBdeAhtTe3Y1ew.jpeg" /><figcaption>Interface wireframes</figcaption></figure><p>In a world of touch screens, drawing tablets, and innumerable design applications I still find paper and pencil the fastest, most intuitive way to transfer ideas from my head into reality. Find me a device with fewer distractions, a longer battery life, and more accurate pressure sensitivity and I might be persuaded to switch.</p><p>The concept for the web app was simple and I wanted the interface to reflect that. The digital target needed to be the focal point as the defining feature of the design with tables of related statistical information stacked conveniently to the side. I also included a timeline and playback controls below the target to scrub through data once it was logged.</p><p>Satisfied with my sketches, I progressed to the computer to produce a mockup the design. I chose a dark color scheme of deep blue hues for the interface to reduce eye strain and selected a monospace font to ensure values in the tables always lined up perfectly. Hours of tweaking and aligning elements later, things were pixel perfect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVX68xK7fTDftS8QS3eWYg.jpeg" /><figcaption>Mockup built using Adobe XD</figcaption></figure><h3>The Math</h3><p>In order to calculate the statistics I was interested in I needed a way to consistently measure the placement of arrows on the target and their relation to each other. In other words: math. Though I was hesitant at first, the sage words of Albert Einstein lent humbling perspective:</p><blockquote>Do not worry about your difficulties in mathematics. I can assure you mine are still greater.</blockquote><p>Thanks, Al.</p><h4>Cartesian Coordinates</h4><p>To record the position of arrows I decided to adopt a coordinate system where the bullseye is the center of the target and each ring is one unit. Imagining x and y axes overlaid on the target, (0, 0) would be dead center, (1, 0) would be one unit right of center, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-BSJtgO6Db0iO6LR2RdN6A.png" /></figure><h4>Formulas</h4><p>Before I could start typing a single line of code I needed mathematical formulas that could compute statistics from coordinate pairs. It took some research and a bit of number crunching, but the beauty of code is that I only had to solve the problems once on my own; after that, I could write an algorithm of the formula that would solve it for me perfectly every time.</p><p><strong>Score<br></strong>The first formula I needed was one that could determine the score of an arrow from its coordinate values. Conveniently, score is inversely related to the distance of an arrow from the center of the target; the farther an arrow is from the center the lower its score. To score an arrow I just had to calculate the distance of it from the center of the target. Thankfully, Pythagoras had solved that problem years ago.</p><p>The Pythagorean theorem is often expressed as a²+ b² = c² where c is the side opposite the angle of a right triangle and a and b are the other two sides. Imagining a right triangle formed by an arrow and the center of the target as two points, the expression can be used to find the distance between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*cLFcNjPV5DCf4qnHqfSGBg.png" /></figure><p>After some slight modifications to accommodate a cartesian plane, this is the formula I used for finding the distance between two sets of coordinates, where d is the distance, x1 and x2 are the x axis coordinates and y1 and y2 are the y axis coordinates.</p><pre>d = sqrt((x1 - x2)² + (y1 - y2)²)</pre><p>Using this formula, the distance of an arrow at (2, 3) from the center, (0, 0), is 3.6 units.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*g-Jhn2giL92u_R9vznB7GA.png" /></figure><p>Again, since the score of an arrow is inversely related to its distance from the center, the score can be determined by subtracting the distance from 10 and rounding the difference up to the next integer. The score for the arrow at (2, 3) would be 10 - 3.6, which, once rounded up to the nearest integer, equals 7, the appropriate score*.</p><p><em>*The calculations in this example ignore the thickness of the arrow shaft in determining score.</em></p><p><strong>Variation<br></strong>Since variation is the distance between two consecutive arrows on the target, I was able to use the same formula for calculating the distance of an arrow from the center of the target by simply replacing the center coordinates, (0, 0), with the ones of the previously shot arrow.</p><p>As demonstrated the in example above, the distance of an arrow at (2, 3) from the center of the target, (0, 0), is 3.6. Using the same formula, a subsequent arrow at (-1, 2) and the prior shot at (2, 3) would have a distance between them, or variation, of 3.2 units.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*SRzJI3Et_n4Qpq5u-Y6jqg.png" /></figure><p><strong>Group Center<br></strong>Group center can be thought of as an average of the positions of arrows on the target. Therefore, group center can be determined by finding the average of all x coordinates and the average of all y coordinates and plotting those values together as one coordinate pair.</p><p>This is the formula I used for calculating the center point of a collection of coordinate pairs, where c is the center, x1, x2, and so on are the x axis coordinates, y1, y2, and so on are the y axis coordinates and n is the total number of coordinate pairs.</p><pre>c = (((x1 + x2 + ... + xn) / n), (y1 + y2 + ... + yn) / n)</pre><p>Using the arrows at (2, 3) and (-1, 2) from the previous examples, the group center formula reveals that the location of their midpoint is at (0.5, 2.5).</p><h3>The Development</h3><p>With the mockup ready and the formulas written it was finally time to start coding the actual web app. I opened my favorite IDE (Sublime Text) and got to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CyPvF6izf_ua4zeV2En2qg.jpeg" /><figcaption>HTML, CSS, and JavaScript</figcaption></figure><p>If a web page was a body then HTML would be the skeleton, CSS the skin, and JavaScript the muscles, or maybe the brain. I always start with the skeleton, piecing together the bare-bones structure of the page so I have something to arrange the rest of the anatomy around.</p><p>The HTML for this project was simple: a collection of elements to render the target and a stack of tables for displaying information. Once the skeleton was assembled I switched gears to start working on the outward appearance. Thanks to my high-fidelity mockup it was a breeze to write a handful of modular SCSS documents and compile them in the terminal as one, well-organized CSS file.</p><p>The JavaScript, however, proved to be more challenging.</p><h4>Vanilla JS</h4><p>JavaScript is widely used, even in environments outside web design. Much of its popularity stems from the many libraries built to extend the language and tailor it to specific uses. One of the most commonly used libraries is jQuery, intended to make writing JavaScript for the web easier and have it run consistently across browsers. However, jQuery is massive and modern browsers already do a pretty good job of interpreting JavaScript. For smaller projects that don’t require all of jQuery’s capabilities the library adds unnecessary bulk to a page’s resources. In these cases it is important to be able to write plain JavaScript, or vanilla JS.</p><p>My project didn’t need all that the jQuery library offered, so I decided to only use vanilla JS. I also wanted a deeper understanding of JavaScript on its own which would help me know when to use libraries in the future.</p><p>One of the first things I noticed when writing plain JavaScript was that it took longer. Much longer. What took a single line in jQuery could easily span several in vanilla JS. For instance, here’s what assigning a class to specific elements looks like in jQuery versus plain JavaScript.</p><pre>// jQuery<br>$(&#39;div&#39;).addClass(&#39;active&#39;);</pre><pre>// JavaScript<br>var divs = document.getElementsByTagName(&#39;DIV&#39;);<br>for (i = 0; i &lt; divs.length; i++) {<br>    divs[i].classList.add(&#39;active&#39;);<br>}</pre><p>jQuery is obviously more concise. Its syntax is simple and easy to read. The plain JavaScript version is longer, but accomplishes the same task without the need to load a library; it takes four lines of code and that’s it. The jQuery version takes one… plus the entire library, which is thousands of lines of code when uncompressed.</p><p>For this one page data visualization project jQuery would have been overkill, so I forged ahead with vanilla JS. It took a bit of effort, but after some Googling, lots of debugging, and a little key mashing I had all the variables, functions, and event listeners that I needed.</p><p>It was finally time to collect some data.</p><h3>The Data</h3><p>All the pieces of my project had come together; I had a working web app that ran in a browser. I was eager to try it with some real data, but before I could grab my bow and loose some arrows I had to iron out the data collection process.</p><p>Since all the calculations rely on coordinates I needed an easy way to determine the placement of arrows on the physical target. I didn’t want to hold a ruler up to the target after each end, so I drew a grid right on top of one of my paper target faces.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvdAuCt1YXph8oOfPxazHA.jpeg" /><figcaption>Grid overlay</figcaption></figure><p>I also needed to ensure my shots were logged in the correct order for an accurate variation value. I planned to shoot three arrows per end and then log all of them when I retrieved them. To make sure I remembered what order they struck the target I marked each arrow with a certain color near the nock: red, green, and blue. As long as I shot in that sequence I would know what order to log them and my variation calculation would be accurate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gzS27LbrOHB6x89NPDTjrg.jpeg" /><figcaption>Yes, as in the RGB color space</figcaption></figure><h3>The Results</h3><p>I shot 30 arrows at an indoor target 18 meters away. These were my results:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9rI_Q-8eY_8dNtYn8EIdQ.jpeg" /></figure><p><strong>Total Score:</strong> 243/300<br><strong>Average Score:</strong> 8.2<br><strong>Average Variation:</strong> 3.3<br><strong>Group Center:</strong> (-0.1, -1.3)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FZxx44alRZEU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DZxx44alRZEU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FZxx44alRZEU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f453ada5c0665e46cbbf3151e8e2e1c2/href">https://medium.com/media/f453ada5c0665e46cbbf3151e8e2e1c2/href</a></iframe><h3>Analysis</h3><p>I had a few stray arrows that hurt my average, but an 8.2 is still a solid B on a ten point grade scale. I’d like to work my way up to an A, but my variation will need to improve. A 3.3 average variation means a possible score deviation of three whole points from shot to shot. My group center was almost perfect along the x axis, but needed to be just a little higher along the y axis.</p><p>Overall, I was pleased with the results. My accuracy is pretty good, but I need to tighten up my grouping. I also may need to slightly adjust my sight to raise the group center.</p><h3>The Wrap-up</h3><p>From start to finish this project was both challenging and fun. I had the opportunity to be my own client, designer, and end user. The data visualization allowed me to analyze my shots in more detail than ever before with concrete stats and now I have a benchmark to compare against and hopefully track improvement as time passes.</p><p>I have made this web app available to use online at <a href="https://targetlog.carsonford.info/">https://targetlog.carsonford.info/</a>. If you are a fellow target archer test it out and let me know if you find it useful or have ideas to make it better.</p><p>My mind is already buzzing with ideas and improvements for version 2.0. I would like to develop a method to track arrows and log their placement on the target automatically in real time. It could be the beginning of a whole new side project…</p><p>But for now, thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b105fbe9f982" width="1" height="1" alt=""><hr><p><a href="https://medium.com/front-end-weekly/combining-design-development-with-target-archery-b105fbe9f982">Combining Design &amp; Development with Target Archery</a> was originally published in <a href="https://medium.com/front-end-weekly">Frontend Weekly</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>