<?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 Donnie D&#39;Amato on Medium]]></title>
        <description><![CDATA[Stories by Donnie D&#39;Amato on Medium]]></description>
        <link>https://medium.com/@ddamato?source=rss-3b26799739a9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*WG3srIYNJUUNStE9t5poBw.jpeg</url>
            <title>Stories by Donnie D&amp;#39;Amato on Medium</title>
            <link>https://medium.com/@ddamato?source=rss-3b26799739a9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 12:35:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ddamato/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[Short Circuit 40th Anniversary]]></title>
            <link>https://medium.com/@ddamato/short-circuit-40th-anniversary-7e04fed6a17a?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e04fed6a17a</guid>
            <category><![CDATA[astoria-oregon]]></category>
            <category><![CDATA[short-circuit]]></category>
            <category><![CDATA[johnny-5]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Fri, 12 Jun 2026 02:35:56 GMT</pubDate>
            <atom:updated>2026-06-12T02:44:53.893Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5gAaO2Ix8SeL7ieSarvvSA.jpeg" /><figcaption>Me and Johnny 5 at Stephanie’s house in Astoria, OR</figcaption></figure><p>Short Circuit 2 is my favorite movie of all time. I watch at least once a year. I cry at the end scene. And when I saw there was a possibility of an event centered around the original movie that started it all 40 years ago, I knew I had to be there.</p><p>The event was held in Astoria, Oregon. This is where the first movie was filmed in part, specifically the house where the character Stephanie lived. Getting there was a significant trek. While there’s a direct flight from New York to Portland, Oregon, getting the rest of the way was more of a challenge. I opted not to rent a car because I am notoriously unable to sleep on a plane and thought that I wouldn’t be in good condition to drive for 3 hours once I landed. Instead, I opted to go for mass transit to Astoria. This required a 45-minute light rail ride close to Amtrak’s Union Station and then a 3-hour bus ride to Astoria. This is roughly an additional 4 hours of travel time. What I haven’t told you yet is that the bus only runs twice a day, once in the morning and once in the evening. The wait for the bus going to Astoria ended up being roughly 5 hours. After it all, I got to Astoria on Friday night, missing the double feature of both movies in the theater but had a reasonable night sleep; jetlag considering.</p><p>The next morning, I decided to watch the first movie again just to get into the groove. Then I headed to the theater for the opening ceremony. I sat just behind the photo table while they introduced the VIPs for the weekend, including Steve Guttenberg and Ally Sheedy, along with some of the folks who built the original robot. Then they introduced Johnny 5, specifically a smaller version. It happened to drive right next to me from the back of the theater. It was cute but admittedly I have a similar one at home from Titan Ross. But then they introduced a full, life-size, movie accurate model from the front of the stage. I legitimately cried. The 7-year-old inside took control over me when seeing it animated in the same room. I didn’t have an opportunity to get closer. I had a feeling I’d be able to later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEZx7gSPoNbA918oX0LqKw.jpeg" /><figcaption>Cast and crew of Short Circuit</figcaption></figure><p>I actually met another person named Donnie there sitting right next to me in the theater. We walked to the armory together talking about the movie. We split when we got there. I did a lap in reverse just to check out all the booths and determine what I might get on queue for later. I also went next door to check out the exhibit for the movies. The golden Johnny 5 was on display, along with some of the accessories from Short Circuit 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9avS_vy1XN_eWCAcPZKzQ.jpeg" /><figcaption>Golden Johnny 5 from Short Circuit 2</figcaption></figure><p>The schedule said that there was going to be a photo-op at Stephanie’s house in about an hour, so I walked over there. It’s roughly a 20-minute walk which isn’t bad for someone who regularly walks the streets of New York. Getting closer to the house, you can see the hugh hills of Astoria. The house is located on these hills. On the map, there’s “walking path” that goes just behind the house. I decided to try it, and it was a mistake. While the path starts with stairs, it turns into stairs covered in ivy, and then it just turns into a steep hill with a single railing. It’s super dangerous. I made it to the top and saw a few people walking around the exterior of the house. We were all waiting for Johnny 5 to arrive. Except we eventually found out that the model meant to come to the house was actually stuck in customs. It didn’t make it to the house that day.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ax2cJXYqIM2h8TEUZHqdZg.jpeg" /><figcaption>Stephanie’s house on a hill behind other houses</figcaption></figure><p>Later that day there was a panel with the folks that build the original model. Eric Allard told the story about how he got introduced to the project and explained how organized the crew was in comparison to other projects he was on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mrYMM93tnsLXk0PYFjuUyg.jpeg" /><figcaption>Eric Allard presenting a photo of one of the demos of Johnny 5</figcaption></figure><p>At this point the jetlag was getting to me so I decided it was time for a nap. After I woke up, it was time for a exclusive party at Stephanie’s house. I decided to take a taxi this time since the walk, and specifically the hill was something I didn’t want to experience again. After waiting for the taxi for 40 minutes, it eventually came and dropped me off right at the entrance. The Johnny 5 from the morning was there, along with some of the cast and crew. Tim Blaney, the voice of Johnny 5, had a mic and was connected to the robot making him say all sorts of things you’d never see in the movie.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OCTBqjm-Se0Tu01H-KYh3w.jpeg" /><figcaption>Tim Blaney with Johnny 5 at Stephanie’s house</figcaption></figure><p>Toward the end of the party, it started to rain so I went to the bottom of the hill to wait for the last shuttle of the night. The shuttle took us to the Community College where the organizers hosted an 80’s prom night.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C5THMrbMuDnGTmQPEDfPjQ.jpeg" /><figcaption>80s prom banner on the bleachers</figcaption></figure><p>Music was pretty good but it stopped often. The DJ was having some trouble. It was getting late so I was about to head home for the night except once I got outside, I saw a box truck being unloaded with not one but 2 Johnny 5s!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a8CdeKx2WMvl9kp9bBPMLA.jpeg" /><figcaption>Johnny 5s being unloaded from the box truck</figcaption></figure><p>I had to stay and I’m glad I did. They ended the night with a dance off to a few songs. I took video of it. It was fun see them together. Apparently, this is the first time that there’s been more than one robot in Astoria since the original movie so many years ago. When the night was over, I walked down the hill and went to bed from a great full day.</p><p>The next morning, I decided to watch the sequel in the morning and then headed to the armory. I had my eye on a bomber jacket and said that if it was still there and in my size that I’d buy it and well… the photo below says how that turned out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PkZKfMN63c4J_wQOAOCplg.jpeg" /><figcaption>Me and Johnny 5</figcaption></figure><p>The armory was quiet that day, so I got the opporunity to talk to a few of the cast and crew that were busy the day before. Really interesting meeting some of the folks behind the scenes. For example, I met Rico who was in charge of all the hand puppeting. At the end of the first movie, Johnny 5 throws a chair out of the van to drive. Then he points toward the road and says “yooooooo”. Core memory and Rico was behind the move. He also said it took a few tries to throw the tracker earlier in the movie to get it to feel lifelike. That’s some great attention to detail.</p><p>Before leaving to start my trek back to the east coast, I checked out the Input Inc panel. They are a group of enthusiasts that build movie accurate Johnny 5 models. The one that I was taking all of these pictures with was one of the first complete models from the group as I understand it. It’s really an incredible effort and serious attention to detail. I feel like if I had a proper shop, I’d consider going on the journey, but I’ll say I’m happy with my smaller models though I wish they had lip lights.</p><p>From there it was a long journey back home. I messed up when booking the flights and ended up having a 12 hour wait at the airport. Even with all of the downtime, I’d say that the trip was worth it though I don’t think I’d do it again. My inner child was happy.</p><p>A big thank you to the organizers of the event, to the VIPs that came for us nerds, and for the people who brought their Johnny 5s from miles away for the fans. It was a huge treat and I’ll never forget it.</p><p>Photo/Video album: <a href="https://photos.app.goo.gl/pxwvMLnQBhEXFRnm6">https://photos.app.goo.gl/pxwvMLnQBhEXFRnm6</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e04fed6a17a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[First Days with the Marvel Vs. Capcom Fighting Collection]]></title>
            <link>https://medium.com/@ddamato/first-days-with-the-marvel-vs-capcom-fighting-collection-1f74b0a56d07?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f74b0a56d07</guid>
            <category><![CDATA[nintendo-switch]]></category>
            <category><![CDATA[arcade-games]]></category>
            <category><![CDATA[marvel-vs-capcom]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Mon, 16 Sep 2024 16:18:32 GMT</pubDate>
            <atom:updated>2024-09-16T16:18:32.316Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Poster for the Marvel vs. Capcom Fighting Collection" src="https://cdn-images-1.medium.com/max/1024/1*O_BbpOi7lE1AnJbdrXlEfg.jpeg" /></figure><h4>My History</h4><p>I was an arcade rat growing up in the 90s. I loved going to the local arcade and playing the latest releases. I think I was pretty good for being young. I remember when the local arcade got Tekken 3, and some guy left me the printed movelist from GameFAQs to learn. Those were the days.</p><p>I remember seeing the first screenshots of X-Men: Children of the Atom in a game magazine. I distinctly remember them highlighting how big the stages were going to be. In 2D fighters before, the stages were rectangular. In this new game, they’d be a large square with a lot of height. This meant a big focus would be on super jumps and air-to-air combat.</p><p>I remember playing often in the arcade across the way from my mother’s store in the flea market. Later, it came out for the Sega Saturn, and I even got the updated RAM cartridge for it. I loved how unique this game was, with so much personality. The animations were like nothing I’ve seen before from a 2D fighter.</p><p>The game initially came out in 1994, so I can finally play it again 30 years later. It&#39;s also among other games I love, like Marvel Super Heroes and X-Men vs. Street Fighter. I’m less fond of the later titles, first for having a less-than-desirable roster and further for adding a lot of complexity with the assists. So, for this collection, I’ve been sticking with the first 3 titles.</p><p>It’s interesting to watch a lot of the content being created about the game, with much of the focus on the MvC1 and MvC2 titles. Granted, there was a lot of history about these games from a competitive scene, but it seems many people weren’t around for the older titles like I was. You see the progression when you are in it. I just watched <a href="https://www.youtube.com/watch?v=EJll7s2q3yE">a video</a> this morning about a move Sentinel is seen having in Spiral’s air super within MvC2. The creator didn’t realize that this was an actual move Sentinel had in X-Men COTA.</p><h4>All the Games</h4><p>It was important for me to try all the games in the collection (except The Punisher, which I have zero interest in). My characters across the games tend to include Omega Red, Shuma-Gorath, and Gambit, with filler characters where one of these doesn’t exist.</p><p>Omega Red is the most interesting across the titles because he changes a lot on his way to finally being in MvC2. While he retains the same moves across the games, the way they are performed changes, and so does his combo system.</p><p>In X-Men COTA, the combo system was super wacky. You could combo a fierce punch into a short kick. It was usually a matter of certain button combinations that just worked. It wasn’t a matter of strength. This has some serious results where you could cancel the recovery of heavy-hitting moves with quicker ones. For Omega Red, all punches would cancel into any kick. So you could easily hit standing fierce and whiff cancel into standing short, making it super fast. His super, Omega Destroyer, is done with a fireball forward and two punches.</p><p>In X-Men COTA, off-the-ground attacks are super effective, and with Omega Red, you can grab people off the ground if you are fast. He loses this in later games because the opponent isn’t on the ground long enough to catch again. I used to have some great follow-ups with this technique if my execution was working with me.</p><p>His next appearance is in Marvel Vs. Street Fighter, where he’ll get an air super, Carbonadium Smash, and new combo routes. Now, it’s buttons of increasing strength. So, a fierce punch no longer combos into a short kick. This means he has a different way of playing, more like the other characters, now that Aerial Raves (air combos) are more well-defined.</p><p>And finally, in Marvel Vs. In Capcom 2, some attacks are not easily deployed because the medium-strength attacks are hidden after lighter attacks. In other games, his crouching strong punch was a quick anti-air, and his standing forward kick was a quick get-off-of-me button. Another thing that threw me off was the Omega Destroyer&#39;s motion, which was changed to backward. This makes it hard for him to play since the button combinations differ entirely from what I used to play.</p><p>Shuma-Gorath and Gambit didn’t change much across the games in combo routes and moves, other than eventually in MvC2, where the medium-strength buttons are missing. This is one of the most significant reasons I don’t enjoy MvC2. I’d be more interested in playing if I could access the medium attacks easily.</p><h4>Playing Now</h4><p>I have the Nintendo Switch version using a 6-button controller. I don’t have any modern consoles other than this one because I’m not a hardcore gamer anymore. However, that doesn’t mean I don’t still have some skills. I’ve been focusing on playing X-Men COTA, and my Omega Red is solid now. It was a rusty start, but I think I have regained my groove.</p><p>I checked my ranking this morning, and I’m #8 in the world in X-Men: Children of the Atom on the Switch today, just underneath a whole bunch of Japanese aliases! I’m surprised, but I also feel pretty good about that. I was playing a person trying to use the hidden characters and held my own, winning all those matches.</p><p>Maybe I’ll find <a href="https://x.com/JWonggg/status/1835208487028375735">Justin Wong roaming around online</a>. I don’t have high hopes for it since he’s more into the later titles, but we’ll see! I am having fun reliving my childhood on a big screen with online play.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f74b0a56d07" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Jazz, genius, and representation]]></title>
            <link>https://medium.com/@ddamato/jazz-genius-and-representation-68c4ae404f81?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/68c4ae404f81</guid>
            <category><![CDATA[genius]]></category>
            <category><![CDATA[representation]]></category>
            <category><![CDATA[jazz-music]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Mon, 02 Oct 2023 16:11:29 GMT</pubDate>
            <atom:updated>2023-10-02T16:11:29.500Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the weekend, I saw a tweet that spawned a stream of consciousness.</p><h3>Arty the Art Historian on Twitter: &quot;Controversial opinion: Jazz is simply failed music. It sounds like a child scribbling all over the page. Formless, meaningless, and unpleasant. Just a bunch of random noise that people trick themselves into liking, while they become numb to true musical quality in the process.... pic.twitter.com/gIvNEBYXvV / Twitter&quot;</h3><p>Controversial opinion: Jazz is simply failed music. It sounds like a child scribbling all over the page. Formless, meaningless, and unpleasant. Just a bunch of random noise that people trick themselves into liking, while they become numb to true musical quality in the process.... pic.twitter.com/gIvNEBYXvV</p><p>When I was young my father would often take me whether we were going in his station wagon with CD 101.9 playing on the radio; smooth jazz and R&amp;B. My father was a jazz musician before he met my mother and played all over the tristate area. He also owned a music store when he was younger and taught music lessons for a time. In my mother’s car we listened to KTU, which played pop music and a genre called freestyle which is like pop music but more electronic. It’s probably not a good description of freestyle since practically all pop music is electronic now. In either case, I found both jazz and freestyle to be both rhythmically interesting.</p><p>I felt this shaped the kind of music that I enjoy today. However, this isn’t entirely true so science says.</p><h4>Very superior</h4><p>At the age of 4, my mother took me to see a psychologist for an evaluation. Specifically the <a href="https://en.wikipedia.org/wiki/Wechsler_Preschool_and_Primary_Scale_of_Intelligence">Wechsler Preschool and Primary Scale of Intelligence (WPPSI)</a> based on some feedback that I’ve been developing faster than normal. The result: a score of 150 described as “very superior” intelligence.</p><p>My mother was then given a choice, to either put me in a special school for the gifted or to put me with normal kids in the standard education system. She decided I should go in the normal school and in my opinion this was the correct choice, even if more difficult for me.</p><p>While it might seem that being a genius is easy, it’s just like any other “not normal” quality to have. There are challenges to overcome. One early example is believing that everyone is like me, so seeing other kids struggle in class made me frustrated. “Why don’t you know this!” I’d shout and squirm in my seat. One parent-teacher conference later, my parents had to sit me down to help me understand that I was different.</p><p>What was important about the choice my mother made early on was that a normal school would help assimilate me into normal society. If I just existing around other kids like me, I’d have a more difficult time finding out that everyone else isn’t gifted. Learning how to make relationships through emotion over intelligence would be more difficult to grasp since I wouldn’t have experienced it in those crucial development years.</p><p>In much more recent times, there was a TV show that aired on CBS called <a href="https://en.wikipedia.org/wiki/Scorpion_(TV_series)">Scorpion</a>. It follows a team of geniuses, using their intelligence to solve problems and overall do good. The pilot makes me tear every single time.</p><p>What’s important about the show is it accurately represents much of my life. I assume it does this well because the show’s main character is based off of a real genius who is a consultant in production. This isn’t just a mashup of Big Bang Theory and Law &amp; Order. There are very realistic topics that are brought up between the action. The show accurately describes my own behavior toward death, museums, tunnel-vision, frustrations and more.</p><p>This is aligned to the stories about representation of people in the media. How people feel better seeing themselves portrayed on screen. Seeing your race, background, orientation, or otherwise described accurately makes you feel more comfortable in this life. When you don’t see it, you feel like an outcast because you are fundamentally different. That’s the power of representation and this show made me feel better about being different.</p><p>While the show does describe me well, it does take some creative freedom and makes assumptions in certain areas.</p><h4>Patterns</h4><p>In an episode toward the end of Season 2, the character Sylvester (a human calculator) is commenting about how he hates jazz. He mentions that all music should have a clear pattern; verse, chorus, verse. He goes so far as to cover his ears when jazz is playing during the scene.</p><p>When I saw this, I had questions. Is liking jazz considered “normal”? Are geniuses more interested in music that has a pattern? This was a very different behavior from mine.</p><p><a href="https://www.dailymail.co.uk/sciencetech/article-7063073/Those-love-jazz-classical-music-smarter-peple-prefer-lyrics-study-finds.html">Turns out; no</a>. It is more common for folks with a high IQ to enjoy jazz and other non-verbal music. This makes sense to me because if the song has a pattern, it feels like I already know the entire song just by listening to the first minute or so. Why should I continue listening if I already know what’s coming? Instead, I’m often much more engaged in music when it’s difficult to know what comes next. These are not absolutes. This doesn’t mean I don’t like all repetitive music or that I like all non-repetitive music; it’s a tendency.</p><p>So when it comes to the comment about jazz, it’s possible that the lack of pattern is what turns folks off to the music. Many people have comfort is knowing what comes next; familiar patterns to help reduce stress.</p><p>That’s my secret, Cap’. <em>I’m always stressed.</em> I’m always trying to solve problems, make things better. I’m at a constant state of improvement. Figuring out what comes next in a well-composed asymmetrical musical track is what focuses me. Reading in a crowded subway train, speeding into the city with sensory overload, keeps all of the neurons distracted so that I can read an article with comprehension.</p><p>So, those were my thoughts on the tweet. I’ll end with a few of my favorite music tracks:</p><ul><li>Electric Girl by she: <a href="https://www.youtube.com/watch?v=ej9XDg1Xyj8">https://www.youtube.com/watch?v=ej9XDg1Xyj8</a></li><li>Playing God by Polyphia: <a href="https://www.youtube.com/watch?v=Z5NoQg8LdDk">https://www.youtube.com/watch?v=Z5NoQg8LdDk</a></li><li>Fire Riddim by edIT: <a href="https://www.youtube.com/watch?v=-9zDwupVADM">https://www.youtube.com/watch?v=-9zDwupVADM</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68c4ae404f81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My journey through producing DAMATO.design]]></title>
            <link>https://medium.com/@ddamato/my-journey-through-producing-damato-design-9b2158eabfce?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b2158eabfce</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[design-thinking]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Wed, 01 Jul 2020 19:25:46 GMT</pubDate>
            <atom:updated>2020-07-01T19:31:43.101Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://damato.design/">DAMATO.design</a> is my interpretation of a design system reference site based on my experience with product design, engineering, and other best practices for the web.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jJ2pTlyssWW8QPSnQz46Ew.png" /><figcaption>Screenshot of DAMATO Design</figcaption></figure><p>I won’t be discussing the aesthetic choices here, the site itself does a good job explaining the decisions made. Instead, this post is a peek behind the curtain behind the development process.</p><h3>Audiences</h3><p>There are two major audiences for a design system reference site; designers and engineers. It is my belief that designers don’t want to scroll through lines of code and API documentation and but engineers might want access to that information. However, that information shouldn’t exist on separate pages (or sites); a single link shared within the team to the component or relevant information should be the source of truth for that item and all the information is accessible at that link.</p><p>I decided to have expandable content boxes that will collapsible if the content isn’t geared toward a particular audience. You can collapsible everything in the site globally and expand items individually as needed. By default all content is available. I also change the main accent color of the site depending on what global setting is selected.</p><h3>User Preferences</h3><p><a href="https://damato.design/introduction#features">The site explains</a> the purpose of the approach taken <a href="https://stackoverflow.com/questions/61686140/site-color-theming-with-css-custom-properties-and-media">but not the mess</a> that I had to make in order for it to work. I had install <a href="https://sass-lang.com/">Sass</a> specifically here to allow for collections of declarations to be reused.</p><pre>@mixin light-theme() {<br>  --body-backgroundColor: #fff;<br>}</pre><pre>@mixin dark-theme() {<br>  --body-backgroundColor: #111;<br>}</pre><pre>:root { @include <strong>light-theme()</strong> }<br>@media screen {<br>  html[theme=&quot;inverse&quot;] { @include <strong>dark-theme()</strong> }<br>}</pre><pre>@media screen and (prefers-color-scheme: dark) {<br>  :root { @include <strong>dark-theme()</strong> }<br>  html[theme=&quot;inverse&quot;] { @include <strong>light-theme()</strong> }<br>}</pre><p>For a single variable, this isn’t much of a problem. However, the theme within the page is actually about 2 dozen. That means the ~24 variables become 48 statements. For design systems with more component variation, this could be a lot of duplication because the collection must be written twice but only used once. Doing this also for the separate light and dark themes means the page has nearly 100 variables when only 25% are actually being used.</p><p>The html[theme=&quot;inverse&quot;] is used specifically for the toggle switch to use the opposite of the OS/browser preference. So, if your system is set to dark mode, you can change to light mode but it observes your system first rather than requiring you to set it or just forcibly determining it without control.</p><p>And if you have a better approach using the @media rule to not require the duplication, I’d love to see it. I racked my head on it for a few days.</p><h3>Components</h3><p>What is a design system without components?</p><p>I didn’t want to design and build tons of components; just enough to get some points across. Admittedly, the <a href="https://damato.design/components#textfield">textfield</a> is the only component in the library that isn’t actually used in the site but I felt it to be a fundamental element and needed some representation.</p><p>I used the idea of <a href="https://www.lightningdesignsystem.com/components/overview/">Blueprints from the Salesforce Lightning Design System</a> to design each component; no JavaScript until it was absolutely necessary. I ended up leveraging the <a href="https://css-tricks.com/the-checkbox-hack/">checkbox hack</a> a few times to add functionality to otherwise static components. This is important to try and bring as much functionality as possible to a site that has turned JavaScript off. This also makes the site accessible with CSS turned off as well. Trust your semantic markup, HTML is powerful in its own right.</p><p>From there, I created a build process that would bundle each Blueprint folder (HTML, CSS) as a web component. That will keep things consistent and reusable across the system. The code to do this isn’t complex. I have a component BluComponent that is extended from HTMLElement which is used to extend from each Blueprint</p><pre>class <strong>BluComponent</strong> extends HTMLElement {<br>  // Define self documenting code here...<br>}</pre><pre>class BluTextfield extends <strong>BluComponent</strong> {<br>  // <a href="https://github.com/ddamato/damato.design/blob/master/bin/bundle.js#L83">Reused templated code here</a>...<br>}</pre><p>This is how I got my Blueprints to auto-document their code on the page. Every Blueprint has the ability to show the code that is used to create it by setting the custom selfdocument attribute. <a href="https://raw.githubusercontent.com/ddamato/damato.design/master/components/toggle-range/toggle-range.md">Here’s an example</a> of the content describing the togglerange component which appends a Blueprint summary below it.</p><pre>&lt;blu-togglerange <strong>selfdocument</strong> type=&quot;checkbox&quot; input-type=&quot;checkbox&quot;&gt;<br>  Checkbox toggle<br>&lt;/blu-togglerange&gt;</pre><p>Some components needed additional JavaScript in order for them to work within the site. For example, to show the output value of the togglerange, I needed to create a <a href="https://github.com/ddamato/damato.design/blob/master/js-components/js-togglerange.js">web component version</a> using the Blueprint HTML and CSS. That gets added into the component’s ShadowDOM and then wired up using selectors.</p><h3>Performance</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikKM2fkl9Y0bb_cPK3L6pQ.png" /><figcaption>Lighthouse score</figcaption></figure><p>I ran the site through <a href="https://developers.google.com/web/tools/lighthouse">Lighthouse</a> making tweaks each time. One of the big performance enhancements was to reduce the fonts down to a single variable font. While <a href="https://indestructibletype.com/Jost.html">Jost</a> is <a href="https://fonts.google.com/specimen/Jost">available on Google Fonts</a>, the way in which they host the different weights isn’t the way you might expect. Try as I might, <a href="https://github.com/google/fonts/issues/2445#issuecomment-636426508">I couldn’t get both the weight and slant within the same font in one query</a>. I ended up finding the font elsewhere with the correct metrics and hosting it on the site. <a href="https://csswizardry.com/2020/05/the-fastest-google-fonts/#google-fonts-async-snippet">I also went through this strategy</a> to load the fonts (and also the CSS) fast.</p><p>One of the things that does fluctuate is the number of DOM elements on certain pages due to <a href="https://prismjs.com/">Prism.js</a> wrapping snippets in lots of &lt;span/&gt; elements to style code blocks. I haven’t found a good way to resolve this.</p><p>I also <a href="https://github.com/ddamato/damato.design/blob/master/root/sw.js">added a service worker</a> to turn the site into a PWA. All it does is store all the requests in the cache. The code there is basically the same found from a video on <a href="https://www.youtube.com/watch?v=ksXwaWHCW6k">Traversy Media</a>. Just about anyone could take that code and put it in their own site to turn it into a PWA.</p><p>Speaking of Lighthouse, I also took this opportunity to use best practices in SEO. The sitemap is generated as a text file any time the site is built. This could have just been done by hand since there’s only a few pages but it made sense to just generate in the event I wanted to add a page. Also added a few <a href="https://ogp.me/">OpenGraph</a> tags and <a href="https://developers.google.com/search/docs/guides/intro-structured-data">Schema.org </a><a href="https://developers.google.com/search/docs/guides/intro-structured-data">ld+json</a> to top it off. We’ll see what effect this has as I haven’t announced the project at the time of this writing.</p><h3>Building/Compiling</h3><p><a href="https://medium.com/@ddamato/how-i-built-a-cms-in-a-day-759b8171926a">I’ve made my own CMS before using Markdown</a>, and I really enjoy the ability to customize the way the site builds by doing this. This time, I found <a href="https://www.npmjs.com/package/front-matter">Front Matter</a> which is a syntax that can inform the site’s navigation and hierarchy. Each content page has some metadata at the top to determine its place in the navigation.</p><p>Combining this with <a href="https://mozilla.github.io/nunjucks/">Nunjucks</a> (templating) and <a href="https://markdown-it.github.io/">Markdown-It</a> (Markdown to HTML) makes building a site from parts super easy. For example using the <a href="https://www.npmjs.com/package/markdown-it-container">Markdown-It Container plugin</a>, I created a special syntax that renders the selectsummary components for different audiences.</p><h3>Icons</h3><p>Another big deal for me is iconography. At first I wanted this to be super simple but after realizing that <a href="https://medium.com/@ddamato/icon-font-within-web-components-5814788919c2">using FontAwesome</a> is downloading way too much when I don’t use the entire library, I needed to manage the icons a bit more carefully. I also started <a href="https://medium.com/claritydesignsystem/the-road-to-svg-and-custom-elements-in-clarity-icons-1d691c6cc91">using web components</a> but these still need all of the icons stored in browser memory for them to be rendered. It’s not bad for the number of icons that I’m managing but we can do better.</p><p>I ended up creating my own installable solution for this called <a href="https://www.npmjs.com/package/savager">Savager</a>. There’s a few different ways to use it. For this site, I just add all of the icons in a reference sheet embedded in the page. Savager will inject icons through web components as necessary (id reference won’t work through the ShadowDOM). While I might not use all the icons added to the sheet, the number of icons for the entire site is currently 12. If this was a full design system with a large icon set, I might consider using the external reference technique instead. Savager gives you a few options depending on what is important to you. <a href="https://ddamato.github.io/savager/">Check it out!</a></p><h3>Accessibility</h3><p>This was in mind throughout the project, as each page has an entire section dedicated to usability. I made efforts in ensuring everything was labeled, focusable, and appropriately interactive. Colors were chosen to be accessible on light and dark backgrounds. Font size can be increased based on user preferences which also will affect spacing by using rem units. Much of the process in which this was decided is outlined in pages of the site.</p><p>I also tested the site in <a href="https://chrome.google.com/webstore/detail/chromevox-classic-extensi/kgejglhpjiefppelpmljglcjbhoiplfn?hl=en-GB#:~:text=The%20ChromeVox%20screen%20reader%20is,like%20HTML5%2C%20CSS%20and%20Javascript.&amp;text=ChromeVox%20is%20just%20one%20of%20the%20Google%20Accessibility%20extensions.">ChromeVox</a> to understand how the site’s content was to be announced through a screen-reader experience. I had to make quite a few changes based on this which were enlightening. For example, I had to set specific roles within the navigation <a href="https://www.digitala11y.com/treeitem-role/">to announce its tree structure</a>.</p><p>For anyone that has run Lighthouse to verify the score above, you might get conflicting accessibility scores based on the system color preferences. Specifically, the report may target that using the accent color as text on a dark background does not meet the 4.5:1 contrast ratio. I’ve increased the brightness on these elements using a CSS filter to meet the contrast ratio but the report isn’t able to view that modification. Firefox’s accessibility tab also shows a few notices, but also fails to catch the additional accessibility features I’ve added (eg. toggle checkbox focus styles).</p><h3>Conclusion</h3><p>Less completion, more foundation. This is definitely a good start but, now I need feedback. I hope the community interested in design systems can find ways of improving my findings and provide constructive commentary about this work. I look forward to what comes from this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b2158eabfce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Icon font within web components]]></title>
            <link>https://medium.com/@ddamato/icon-font-within-web-components-5814788919c2?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5814788919c2</guid>
            <category><![CDATA[web-components]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[icons]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Wed, 13 May 2020 16:59:59 GMT</pubDate>
            <atom:updated>2020-05-13T16:59:59.241Z</atom:updated>
            <content:encoded><![CDATA[<p>Working on a project right now that I’d like to use FontAwesome’s 4.7.0 icon set. Version 5 requires JavaScript but I really liked how version 4 was just CSS. I wanted to use these within my web component work but always had some difficulty. This is how to get it to work using just CDNs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M50xHe9iYkqxs-YbigM4KA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@aquatium?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Harpal Singh</a> on <a href="https://unsplash.com/s/photos/icons?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>First, add the CDN link to the top of the page that the components will be on.</p><pre>&lt;link href=&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&quot; rel=&quot;stylesheet&quot;&gt;</pre><p>Next in the .css file for the component, add the following to the top of the file (assuming file name is styles.css).</p><pre>@import url(https://medium.com/&quot;https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css&quot;);</pre><p>This should be included in the CSS applied within the Shadow DOM for the component.</p><pre>import html from &#39;./component/template.html&#39;;<br>import css from &#39;./component/styles.css&#39;;</pre><pre>class MyComponent extends HTMLElement {<br>  constructor() {<br>  super();<br>  this.attachShadow({mode: &#39;open&#39;});<br>  this.shadowRoot.innerHTML = `&lt;style type=&quot;text/css&quot;&gt;${css}&lt;/style&gt;${html}`;<br>}</pre><p>If you’re setting icons using the content property of a pseudo-element, you’ll need to escape the slashes before setting the CSS within the component.</p><pre>.closeButton:before {<br>  content: &quot;\f00d&quot; /* Will render as &quot;00d&quot; without escaping */<br>}</pre><p>Add the following .replace() method to escape:</p><pre>class MyComponent extends HTMLElement {<br>  constructor() {<br>  super();<br>  this.attachShadow({mode: &#39;open&#39;});<br>  this.shadowRoot.innerHTML = `&lt;style type=&quot;text/css&quot;&gt;${css<strong>.replace(/\\/g, &#39;\\\\&#39;)</strong>}&lt;/style&gt;${html}`;<br>}</pre><p>And that should work! It’s a super simple way to get the icons in the web components. No notes on performance, just looking for the easiest developer experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5814788919c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Doing a really Good Job!]]></title>
            <link>https://medium.com/@ddamato/doing-a-really-good-job-44aa3859bd25?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/44aa3859bd25</guid>
            <category><![CDATA[nintendo]]></category>
            <category><![CDATA[good-job]]></category>
            <category><![CDATA[nodamage]]></category>
            <category><![CDATA[nintendo-switch]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Mon, 27 Apr 2020 22:33:09 GMT</pubDate>
            <atom:updated>2020-04-28T00:18:09.876Z</atom:updated>
            <content:encoded><![CDATA[<p>The following is a description of how to complete every room of the game <a href="https://www.nintendo.com/games/detail/good-job-switch/">Good Job! for the Nintendo Switch</a> <strong>without damaging anything</strong>.</p><p>This description excludes Floors 0 and 9 since there are no tasks in Reception and the Penthouse doesn’t require you to pick anything up nor does it give you a final score once completed. In-game time for all of these rooms together is just over 5 hours (301:18).</p><h3>General technique</h3><p>For most rooms, you’ll want to move breakable things away from the path. This includes cardboard boxes, safety cones, trophies, and anything else that you can pick up and move in some way. If the door doesn’t open when you walk toward it, there’s definitely a way to power the door using a plug without needing to bust through a wall. Remember you can use a chair to move the employees around the room and when using equipment, use it gently.</p><h3>Floor 1, Finance</h3><h4>101 Legal, Replace the Projector</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C43A0-sChAMzuP7RzzNiAw.jpeg" /></figure><p>This is mostly straight-forward. Unplug the projector and use the cord to power the door for that room. Be careful of the desk right outside of the door when moving the projector. Unplug the wire in the way and use it to open the next large set of doors. Use the plug next to the vending machine outside the meeting room to open the final door.</p><h4>102 Accounting, Fix the Internet</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g4GXM91mK1eHI2DkSL9Qkg.jpeg" /></figure><p>This one can be a bit frustrating for your first time and I honestly found the solution by accident. There’s a fire extinguisher just outside the entrance, use it to blow the sign away from outside the bathroom. This will unblock the direct path to the target room. From there, take care in moving boxes so they don’t fall and break while moving around rooms. Use a rolling cart to keep the motion sensor door open.</p><h4>103 Taxes, Improve Meeting Attendance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_7Qy70uGexYJRyxFtkyolA.jpeg" /></figure><p>The first employee will need to be rolled up the stairs, take the plug next to the large door and plug it in outside the hallway; it’s behind a printer. You’ll probably need to move the plant to keep the motion sensor door open while you do this. The hidden employee behind the sink shouldn’t be a problem. The employee in the storage room just needs to be picked up with a chair. The rest of the employees just need some plug management to open the doors. Take the plug from the storage room and open the door in the hallway. Then take the plug from the hallway and open the next room. Undo as you collect the employees.</p><h4>Auditorium, Company Presentation</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p4oD8_JULXygilTxxG06Ig.jpeg" /></figure><p>Use the bench to collect the employees hanging out in front of the entrance to the upstairs. You’ll also do this for the ones by the stage. Upstairs, it’s plug management again. You can open the closed set of doors by going into the room that’s blocked by the bulletin boards and grabbing the plug to power the doors. Then it’s just a matter of maneuvering the projector downstairs without breaking anything.</p><h3>Floor 2, Logistics</h3><h4>201 Container Storage, Misplaced Cargo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sed34__HeMz9RVO6owCdBA.jpeg" /></figure><p>This is the first instance of using the crane. You need to work this slow or you’ll knock things over. First thing is to pull out the dolly from underneath the glass platform on the left side which has a purple container. Then start removing the blue containers from the middle of the room. One of them has a purple container inside. I was able to slide that container out by placing the blue container on the stairs to slide it out. You might need to do this a few times for this one container to slide out completely. Use the invisible wall to your advantage by moving the containers against it as you move pieces across the room. Avoid the middle as much as you can.</p><h4>202 Waste Management, Defective Package</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEx3EBWqnqVfSqVfwslaQA.jpeg" /></figure><p>This is the first instance of driving the forklift. One of the first things you should do is clear a path in front of the crates at the top. As you can see in the photo, I put all of that stuff behind the crates. I also move the large container to make a bridge to cross later. Then it’s just a matter of carefully driving the forklift across the room and up the elevator to the conveyor belt. Moving things out of your way as you need.</p><h4>203 Distribution, End the Lunch Break</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uCsFWEWbE-dICVwhnZqTvw.jpeg" /></figure><p>This is probably one of the first levels that things can break unexpectedly. The trick here is to make sure all of the packages never wind up on a conveyor belt. You can do this by keeping them outside of the green target area on the floor. This also took me a while because I captured each employee with a chair to escort them downstairs via the elevator instead of just expecting the conveyor to drop them. You’ll need the crane to drop some of the employees into the area and take care while getting the employees sitting on the bench at the back of the room. It definitely helps to move the trophy off of the catwalk.</p><h4>Loading Dock, Lost Packages</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GT4DE1EUyjcOnr1Cr3vw2A.jpeg" /></figure><p>This level has a couple of tricks to it. First, there’s an elevator button behind a package at the end of the left conveyor belt. That will help you access the package found at the edge of the crane rig. You can walk on the crane rig if you position it properly.</p><p>You’ll want to take the printer on top of the boxes with the crane and get it on the elevator next to the crane controls. Before going upstairs, plug it in. That will carry the plug upstairs to power the doors on. Next, you’ll need to bring a forklift all the way upstairs. Before you do, clear the area near the conveyor belt, even the safety cones. Knocking into them will cause damage and when sending things downstairs, you don’t want to damage anything.</p><p>There are three packages in the back area. Use the forklift to pull the one at the right corner off the shelf. Clean the stuff off of the long pallet on the left and then move it into the center to act as a bridge to get the center package. Finally, shift the other packages out of the way to get the final large package. The larger package can be sent in the conveyor belt below but I hand-carried the smaller packages downstairs.</p><h3>Floor 3, Recreation</h3><h4>301 Flower Garden, Tend to the Garden</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JFePEao79zpS9oYsiszlcA.jpeg" /></figure><p>In this room, if you step on flowers that have bloomed, you’ll damage them. Start by removing all of the lamps; they’ll knock over with the firehose. I put them in the lobby elevator to keep them away or by the fish tank at the top right after blooming the flowers in that area by pouring buckets. There’s also a light at the top of the stage by the fountain, be careful not to drag it into the water. Then connect the firehose to the fountain and rotate the fountain to bloom the flowers in the area. Disconnect the hose and move it to the larger area.</p><p>After you’ve cleared the larger top area of lights, use the firehose to spray the bushes from the center of the area. Stay away from the edges as the water could spray down to the lower level and hit something you weren’t expecting. Consider using the bucket if you want to be careful. Also, use the bucket on the singular planters around the lower level, try not to water anything on the ground yet so you don’t step on anything accidentally.</p><p>There are two statues at the left side, pull them into the pools to expose the nozzles underneath. Take the hose that is from the bottom of the room and connect to the nozzle by the center garden. That should water everything on the floor. Spin the statue to water the flowers by the small pool next to that nozzle.</p><h4>302 Cinema, Start the Movie</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_qOxJpVmv4WfVrfT5Mj7iw.jpeg" /></figure><p>There are four employees you’ll need to move; each one has a gimmick. The first one is like the ones you’ve done before. Just drag the chair into the cinema. The one with the mop will follow the spills of water into the room. The one looking for heat will follow the small fireplaces as long as they are close. Put them out as you get closer to the cinema. The final person needs to watch TV, so plug in the TVs on the way to that area and then start unplugging them.</p><h4>303 Swimming Pool, Clean the Pool</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IlM0B0qiEWSQZK0KK42QSg.jpeg" /></figure><p>This one is oddly difficult as things will break that you might not expect. For example, when trying to reach an item on the stack of inner tubes by the bridge, sometimes I’d damage something. I recommend bringing the cart by the jukebox (after cleaning the items from the top section) and grabbing the items from the lazy river one-by-one. There’s a large beach ball on the left, carefully roll it into the large pool without knocking into the fish tanks that are close. I recommend doing this later as sometimes things get stuck around the bend if there are too many things in the pool. Move items out of the way as needed. I also don’t recommend using the life-preserver as a lasso; I’ve never been able to control it properly.</p><h4>Zen Garden, Restore Balance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mzW5CdhjK1W-b26RPNNbvA.jpeg" /></figure><p>The title of this room is pretty ironic as <strong>this is the hardest level to do without damage</strong>. As you can see in the photo, I had to bring a forklift in here to place the final boulder. Just about everything in here can take some sort of damage; the railings, the walls, and even the boulders themselves! I use the tables from the top right room to stop the boulders from rolling down the stairs until I’m ready to take them down. The boulder on top of the tree is grabbed by watering the bushes and making a path to it. When rolling this off, your character might get stuck in the wobbling state while the boulder rolls away (the reason for the tables). You’ll need to carefully push the center column into the bridge to drop that boulder from it and do something similar for the third boulder on the smaller column. You’ll rock the column from behind slowly to push the ball from it. The fourth boulder requires you to ring the gong in that room and roll it up to the others. All of these boulders are possible to move towards the target area without damage. I’ve done this several times.</p><p>The things that make this room difficult are actually getting the boulders into the target areas (they will just roll right out of the holes) and the final large boulder that will crush everything just in the area that it starts in; let alone the rest of the room. It looks like it might be possible to actually roll that large boulder without crushing anything but I simply can’t control it well enough.</p><p>Instead, I went to the sixth floor, grabbed the forklift from the warehouse, and brought it down to this room (you can only do this in New Game +; after you beat the game). Then I carefully drive it over to the large boulder. There’s definitely some glitchy stuff when driving near the yoga room at the bottom that needs to happen (it’s surrounded by a moat) but after several days of trying, I finally got it out of there without damage. I’m super curious to know if there’s a way to do this without external resources.</p><h3>Floor 4, Research</h3><h4>401 Goo Production, Clean Up</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w6zbCFNAvLSX5RtOZ_0Adw.jpeg" /></figure><p>This is one of the first rooms I focused on for trying a no damage attempt and it took the longest in this list. The method I used was to clean sections of the room and then move things into the clean sections. I’d clean with the machine without walking so I didn’t accidentally fly into a container. I even moved individual books from the desks, because knocking one on the floor will cost you.</p><p>As big as the container is in the back of the room, it is forgiving when moving it around. Be careful not to knock into the goo stored in small containers on the shelves as that will break easily.</p><h4>402 Cryogenics, Raise the Temperature</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ekKW0c90VKoggL0PfJq8lA.jpeg" /></figure><p>This one is pretty easy to do without damage, just be careful as you walk around the room with the tubes. There are a few long glass cylinders around that you might want to consider placing somewhere else.</p><h4>403 Goo Testing, Experimental Goo</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F903opDE_NQM3lksH2UATQ.jpeg" /></figure><p>One of the first things I recommend is to move the glass bulb of goo found in the smaller glass room out into the next room. As you go around the corner with the cube, it’ll collect goo making it bigger and potentially push you into the rack which may break the containers. Once getting the cube into the main area, just pull it down into the larger glass room where the pool of goo will be. Connect the tubes (one of the tubes is just outside of the glass room here) and grow the cube. Assuming you’ve cleared a path to the target weighing station (including the large white cubes in the way), you should be able to pull it over there without a problem.</p><h4>Biome, Bring the Biome to Life</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lHAYBhA4gjlkMOiKPkRRw.jpeg" /></figure><p>This is also pretty simple to do without damage. The trickiest part might be the connections for the third fountain. Just be careful when moving the cans around to connect the hoses and you should be fine.</p><h3>Floor 5, Marketing</h3><h4>501 Customer Support, Fix the Wi-Fi</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9NpervIniFO2z81Z6tdUiQ.jpeg" /></figure><p>This room is pretty easy, just move some things out of the way or move people closer when appropriate. You might need to move some packages or items here or there but overall this room is a good place to start trying no damage.</p><h4>502 Mail Room, Deliver the Mail</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhAGK2Xc7K6eHimgL-1CtQ.jpeg" /></figure><p>A couple of things to note here. The room with the green employee needs to be cleared before using the plug to open the door, I also recommend clearing the hallway just outside to help. The purple package method is weird. In order to move the table in the large conference room, I had to remove the frame from the wall behind it. This dislodged the table and made it a bit easier to move around. Here you just get the plug to give power to the door and make your delivery. The rest of the packages are straight-forward.</p><h4>503 Design Department, Rearrange the Office</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfiBcuQs2xqO4hXWjWs2aw.jpeg" /></figure><p>This room will just use a lot of moving skills. Move things in safe locations that won’t receive accidental damage. The purple room has a sliding window that gives you access to the door to get inside. Slide it back to power the larger door. Get inside the middle room and power the door to move things out. Also remember that things just need to touch the colored area, not be completely inside of it.</p><h4>Security, Broken Surveillance</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nyEQegjkAGd6Y531a4MoA.jpeg" /></figure><p>This room is very tricky to do without damage. As you can see in the photo, I opted to clear out the entire left side of the surveillance room and put most of those items in the starting room. That made a safe path for the items to be dragged to the bottom. The long piece in the left-most room is probably the hardest to maneuver; push the first two rolling shelves to the wall and then walk against the third (don’t roll it, the trophy might fall) to move it toward the wall just a bit. Then carefully move the piece and align it between the railing and the last rolling shelf (the plug will fit into the railing). Pull the piece until it stops and then walk against the final wall until you can pull the piece out completely. Then you should be able to get it through the rest of the larger doors.</p><p>The piece at the top right is also a bit challenging, just be careful when moving the large rolling blocks. The packages on top can shift quickly and fall. The rubber dongle on top of this piece might also hit things so take it easy.</p><h3>Floor 6, Manufacturing</h3><h4>601 Cold Storage, Organize the Freezer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R62oYste6YGPqO7_Oux7aQ.jpeg" /></figure><p>This room just takes a lot of patience. Take each piece one at a time into the designated areas and avoid the towers of boxes. The medium size brown package at the top of the stairs in the back should be able to slide down with a pull and without an issue. Drive the forklift very slowly.</p><h4>602 Fulfillment Center, Large Order</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tcW2Md8Y2jKDKISfZF_UPQ.jpeg" /></figure><p>The hardest part of this room is the office with the glass floor. There’s a lot of breakable things in that room so take each package carefully to one of your helpers to send out. You can pass the plugs to power the doors to some of your partners in specific areas. They will also help you push containers.</p><h4>603 Depot, Prepare the Shipment</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yK1CEx0aJiiX3ovCiU1sTg.jpeg" /></figure><p>Like the room on the second floor but this time you’ll need to open some doors. Move the large shelves to make a bridge to the rooms where you can carry the plug to power the doors. Use the crane as little as possible. Move packages out of the way as necessary.</p><h4>Warehouse, Cargo Inspection</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6xKkuVWn2nEp3MyP3FVYIw.jpeg" /></figure><p>I figure most people can’t be bothered with the broken elevator at the left side of the room and will just break the glass instead. The method here is to put the rolling containers onto that elevator and give the inspector a place to walk. There’s a few just to the right of that room. The packages blocking the second inspector need to be removed carefully as well. I took them one at a time and walked them to the opposite side of the warehouse. As always, drive the forklift carefully.</p><h3>Floor 7, Robotics</h3><h4>701 Assembly Line, Finished Product</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zMjD-6nGyDlFT0CUklnbmQ.jpeg" /></figure><p>This can be done without damage easily for the most part. I think the trickiest area might be the spot just past the first conveyor belt bridge. There’s a cart with a ton of breakable items on there. I recommend moving that stuff away and continuing on.</p><h4>702 Laser Lab, Battery Charging</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZxmOPhBBIb424N9jO63Ww.jpeg" /></figure><p>Also pretty easy to do without breaking things. Just be careful not to heat any canisters with the laser otherwise you’ll get an explosion.</p><h4>703 Machine Learning, Data Collecting</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIJrbKZv0dRpt8nm4P8QDQ.jpeg" /></figure><p>This room is definitely tricky. You’ll need to use the rolling stairs to get glass bulbs of goo from the tops of boxes and desks to ensure the robot doesn’t knock them over. Clean the bottom area of the middle lab to help the robot move easily. Have the robots travel under low pipes to avoid items found on existing paths.</p><h4>Reactor Core, Green Energy</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uvu60h3Bdgh1os1lwbG4Ag.jpeg" /></figure><p>The biggest problem here is the glass cylinders. There are a lot (mostly found in the left room) and I took each one and placed it on the catwalk in the core room to get them out of the way. The robot on the left can then make it around the stack of boxes and to its dock. The robot on the right just needs the large track cleared up a bit before powering the arms and then painting a line to a dock. The middle robot should be pretty straight-forward from there.</p><h3>Floor 8, Executive</h3><h4>801 Executive Suites, Executive Delivery</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y4aPtbIEB3GJLiKtIvzGYg.jpeg" /></figure><p>Take your time with this one. Move the small trophy from the bookshelves with some purple packages above before shifting the bookshelf slowly to make them fall. You’ll need to clean up the area a bit to get to some of the other packages. Make a path to the executive office to help get the yellow packages on the desk without breaking things. Move the coffee cups away from the cart in the large conference room before using the rolling stairs to get the long green package. Pull that package into the classroom next door and then around the top of the package room; moving things out of the way as appropriate. I recommend not using the cart as it’s difficult to control.</p><h4>802 The Archives, Rearrange the Statues</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3X6uUV_PHjcF15RMZtXzA.jpeg" /></figure><p>The only room where you’ll use the vacuum. Don’t try to get the vacuum by the door, there’s too much stuff there. Instead, use the one that’s already in the room. Move some of the smaller items in the main gallery to the bottom so the vacuum doesn’t grab them. Suck the papers that are left off of the floor. Then take the vacuum in the far left room and pull the large statue away from the door in the next room over until the path is clear (don’t move it more, it’ll help guide the ball out). Go into that room, move the globe, and then open the vault. Move each bundle of bills away from the ball until the ball rolls down from the pile. Push the ball down from the vault straight to the floor and roll it carefully into place.</p><p>Move all of the standing area lights to the left wall and get the vacuum head next to the spiral piece. Begin gently tapping the vacuum to pull the piece into place across the room to its target area. Then go into the classroom and push all of the seats against the wall. Bring the vacuum in from the back of that room and gently tap the vacuum to pull the block statue across. If a seat begins to get close, stop and push it away again. Clear a path out of the room behind and be careful not to suck anything other than paper into the vacuum. Too many things in the vacuum can also make it explode.</p><h4>803 Art Gallery, Prepare the Exhibition</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GJa_T_Tmx99WzaqSa2ZAw.jpeg" /></figure><p>Be careful not to walk too close to the paintings as you can damage them by proximity. When the UI says “Take” is close enough for a picture to be grabbed. The first few hangings are simple around the bottom. When hanging the paintings at the upper right, you may want to make some adjustments as people may walk over and break a painting after you put one up. Take the paintings that are stacked in the corner around (not under) the hanging studio lights to affix to the wall. Clean the middle area up to hang the pictures found underneath and clear everything from the top to walk the largest painting up and over to its placement area. Pushing the items against the wall is effective here.</p><h3>Last words</h3><p>This game is super fun and I enjoy that there are several ways of challenging yourself. You can <a href="https://www.youtube.com/watch?v=tdCO221UgZA">speedrun it by finishing it as quickly as possible</a>, <a href="https://www.youtube.com/watch?v=DdLi13pRMMc&amp;list=PL7fzisO2hSksaVBUPBsnNVSCeRdsaNz18">try to find all of the collectible items</a>, or try to complete with the highest score or least damage.</p><p>And I hope someone does find a way to handle Zen Garden without a forklift.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44aa3859bd25" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This isn’t about freedom, it’s about saving lives]]></title>
            <link>https://medium.com/@ddamato/this-isnt-about-freedom-it-s-about-saving-lives-33e112b4d223?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e112b4d223</guid>
            <category><![CDATA[new-york]]></category>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[cuomo]]></category>
            <category><![CDATA[masks]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Sun, 19 Apr 2020 15:34:42 GMT</pubDate>
            <atom:updated>2020-04-19T15:34:42.270Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*rRiQtA5GSRO39IyHtNds0w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@rresenden?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ricardo Resende</a> on <a href="https://unsplash.com/s/photos/protection?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>While I don’t post much more than a photo these days, I still browse Facebook to see… other people posting photos. I have my share of political posts in the feed and I normally don’t react to them. However, I saw a video from a friend I made a long time ago and felt the need to pick it apart.</p><p><a href="https://www.facebook.com/MerryGoGroundByMelissaToro/videos/2928599000539216/">The link to the video.</a></p><blockquote>They cannot, constitutionally, force us to wear masks to shop.</blockquote><p>Prefacing with not a lawyer but I did search within the <a href="https://constitutionus.com/">US Constitution</a>, and certainly there’s nothing specific in there about “masks” and “shopping” specifically. The part that is most related to the topic is within <a href="https://constitutionus.com/#x14">Article XIV</a> (the fourteenth amendment).</p><blockquote>No State shall make or enforce any law which shall abridge the privileges or immunities of citizens of the United States; nor shall any State deprive any person of life, liberty, or property, without due process of law; nor deny to any person within its jurisdiction the equal protection of the laws.</blockquote><p>My interpretation of the protection of “life” is attempting to ensure that a state does not make or enforce a law that would lose lives. Similarly, it does not make a law that would lose “freedom”. The fact that you are able to go to the store at all is a testament to that right. While we all use the term “lockdown”, most people are not caged in this time.</p><p>The order coming from the governor is made more for a record as an official recommendation, but <a href="https://en.wikipedia.org/wiki/Executive_order#State_executive_orders">it may be law</a>. It seems <a href="https://abcnews.go.com/Health/brooklyn-bar-operator-1st-person-arrested-violating-covid/story?id=69871861">other executive orders have led to arrests</a> in New York. From the <a href="https://youtu.be/QFfgH2-XiTo?t=2353">press conference where this was announced</a>, there were no civil penalties planned yet.</p><p>I also want to mention that the US Constitution is <a href="http://stateoftheunion.onetwothree.net/appendices.html#FK">written with a higher reading level</a> with language that would make most Americans unable to understand it. So I can imagine more colorful interpretations to present themselves.</p><blockquote>I am not suffocating myself with a mask… um, ya know,… I’m not setting myself on fire to, ya know, theoretically, save someone else and keep them warm.</blockquote><p>There’s a lot to unpack here but I’ll preface also by saying I don’t know this woman’s medical history or current condition. If she is actually suffocating herself by wearing the mask, then she’s right according to the executive order as she’s unable to “medically tolerate” wearing a mask. However, if she’s simply inconvenienced by wearing the mask; I’d say that doesn’t count.</p><p>Now for this big statement; comparing wearing a mask to setting your body ablaze is very extreme. If you want to use a fire analogy, consider this: If someone was currently on fire, would you try to save them unprotected? No, of course not, you’d socially distance yourself from them because you (probably) aren’t qualified or prepared to save someone from a fire. The recommendation for using a mask is for your protection and often protection is uncomfortable (just ask anyone who buys condoms).</p><p>You’re not just keeping people warm, you are saving lives by not accidentally catching fire and spreading it.</p><p>I relate this to the security industry. People in security are there to deter bad behavior; could you imagine all of the theft that could have occurred without security officers? Could you imagine all of the people that would be infected if we didn’t have protective measures? You probably could not determine a number accurately in both cases. While in the security case, we have a concept of morals where people can decide to do the right or wrong thing, a virus doesn’t decide. It affects anyone within spitting distance.</p><p>Put a door on your home to keep wild animals from coming inside, and to keep your animals from escaping outside to a new home.</p><blockquote>If I’m holding an umbrella, it does not keep you dry.</blockquote><p>Ok, getting warmer here. We’re talking about a form of protection. The reason an umbrella works is because the rain typically falls in one direction; down. You might know when there’s a bad wind with rain that you need to direct the umbrella into the wind so the rain doesn’t hit you from the side. You do this instinctually because you can feel the rain hitting you where you aren’t protected. In the case of the virus, we cover our nose and mouth to keep it from entering our body.</p><p>Many stores have plastic bags for umbrellas or a bucket at the entrance. Why do they do that? Well, they don’t want the water from the umbrella to be tracked around the store. Not only would it cause the store to get damp, but it could also cause injury if someone slips on a puddle. Some stores can’t afford the plastic bags or forget the buckets but that is a risk they are taking to the aforementioned events.</p><p>If you are holding a wet umbrella in a store, it may make me break my neck.</p><p>How do we relate to the above quote? If we all have umbrellas (own masks) and leave them at the door (use them properly) then none of us are wet (infected).</p><blockquote>So what are the key factors? If you can medically tolerate, good for you. Go and put your mask on if that’s what you want. I can’t.</blockquote><p>Again, I don’t know her medical history here, but the tone of the monologue makes me believe the frustration doesn’t exist in wanting to wear a mask and being medically unable to do so. It seems she’s frustrated that people are bothering her to wear the mask. She later uses the term “mask-shaming” in the video. To be clear, no one truly <em>wants</em> to wear a mask. People are wearing masks to protect each other. If people wanted to wear masks, they would have done so before the pandemic just for fun (ie. because they want to). Why are people wearing masks now versus then? Is it somewhat because medical professionals are advising it, maybe? Is it because the government is recommending it, perhaps? It is because we want to protect ourselves, probably.</p><p>But here’s the part that involves you not wearing a mask.</p><blockquote>One of the [pieces of] information that we have pretty much confirmed now is that a significant number of individuals that are infected actually remain asymptomatic. That may be as many as 25%. That’s important, because now you have individuals that may not have any symptoms that can contribute to transmission, and we have learned that in fact they do contribute to transmission.</blockquote><p>This quote comes from <a href="https://www.npr.org/sections/health-shots/2020/03/31/824155179/cdc-director-on-models-for-the-months-to-come-this-virus-is-going-to-be-with-us">an interview with the CDC director, Dr. Robert Redfield</a>. To summarize; 1 in every 4 people can be infected without ever knowing it. So if you’re going into a store carrying an infection, social distancing alone isn’t going to save the people around you. Keeping the virus from exiting your nose and mouth will. I’m not saying you’re infected, I’m saying the odds aren’t in anyone’s favor so to help stop an infection, we stop transmission with protection.</p><blockquote>I’m not going near anyone in the store. One woman was grabbing her tomatoes, I waited more than six-feet away until she was finished and then I approached the tomatoes.</blockquote><p>So going back to the previous rebuttal, let’s say 1 in every 4 people approaching the tomatoes has become infected with the virus. They look for the best tomatoes to take home by touching a few, putting them back, and then heading off to pay. You’ve waited for that person to leave by social distancing and then you touched a tomato they touched. Maybe touch some other fresh produce, maybe a cart for the groceries, maybe a few other things. Wearing gloves? That’s good, but it’s still potentially moving the virus around. Ok, you saw every tomato they touched and made a conscious effort not to touch any of those tomatoes. What about the people you didn’t see? Again, this is an invisible threat, you can’t see what has been infected nor can you be sure that you aren’t carrying it yourself (especially with the lack of adequate mass testing). However, to keep the liberties you are desperately trying to uphold, the government is saying it’s ok to go outside and shop. Just do it responsibly. Speaking of responsibly…</p><blockquote>We can all responsibly handle social distancing like responsible adults.</blockquote><p>Responsibilities can change over time. As an adult, think about your getting your own cell phone. Suddenly, you are responsible for paying that bill. You didn’t have that responsibility before, what happened? Well, something in your life changed and now you need to maintain it like a responsible adult. Our lives have changed in that wearing a mask is saving lives. Is it inconvenient, absolutely but so are the bills that need to be paid every month. The responsibility of wearing a mask is new and we might not like it but, this isn’t about me or you, it’s about us. It’s about getting life back to the way we were used to without the masks as soon as it’s safe to do so for everyone.</p><p>In closing here is a <a href="https://youtu.be/lSFzsOnquDY?t=2701">video of Governor Cuomo</a> addressing the opposition about the mask mandate. I think he’s missed the critical point that 25% of people don’t know they are infected. If 1 in 4 people who don’t wear a mask are out in public, this will continue to spread.</p><p>Do you want to be free and potentially spreading death or do you want to be inconvenienced and potentially save lives?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e112b4d223" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I built a CMS in a day]]></title>
            <link>https://medium.com/@ddamato/how-i-built-a-cms-in-a-day-759b8171926a?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/759b8171926a</guid>
            <category><![CDATA[template-engine]]></category>
            <category><![CDATA[cms]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[static-site-generator]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Thu, 23 Jan 2020 04:33:09 GMT</pubDate>
            <atom:updated>2020-01-24T16:48:22.387Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I Built a CMS in a Day</h3><p>I’m confident that any engineer that has had to work on a CMS (Content Management System), either building or integrating, will tell you that it’s an <em>absolute nightmare</em>. Many CMSs are trying to do too many things and want to provide everyone’s hopes and dreams in a daunting API.</p><figure><img alt="Person holding neon pink goop in their lifted hand" src="https://cdn-images-1.medium.com/max/1024/1*pbAOzvSN7HlAFW19g82Z2A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kyle_brinker?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kyle Brinker</a> on <a href="https://unsplash.com/s/photos/helping-hand?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I’ve always thought that there’s a special spot that wasn’t being highlighted in CMS-land; a handoff from a developer creating a site to someone who just updates the content on a regular basis. You don’t want a developer to update the site’s content because it’s costly; both time and money which should be an easy change. It’s the reason content curators ask for CMSs.</p><p>I came across <a href="https://www.vapid.com/">Vapid</a> last year and thought it was on the right track to solving this problem. The idea is something I’ve had in mind for a while; write whatever template tags you want in your HTML pages and have a CMS populate fields based on the tags found. I was able to use it for a while and then for any machine I tried to install it on, it would just error. There have been lots of workarounds posted but the barrier of entry for people (especially those just familiar with HTML/CSS) is way too high when the terminal doesn’t provide anything helpful.</p><p>So I’ve had enough, it was time to just build my own.</p><h3>Requirements</h3><p>I really liked Vapid’s presentation of just creating whatever template tags you want and the CMS would just find them and create a field for input inside. I wanted to borrow this idea but none of the popular libraries that use this tagging system (<a href="https://mustache.github.io/">mustache</a>, <a href="https://handlebarsjs.com/">handlebars</a>, <a href="https://mozilla.github.io/nunjucks/">nunjucks</a>, etc) seemed to have an API that provided a list of found tags. I realized that I’d need to make my own compiler.</p><p>I also wanted this to be super simple for people who knew how to build a basic web page or site with just HTML/CSS. No fancy scripts or frameworks, just put your files in a directory and serve like the good ole’ days of FTP.</p><h4>Building the compiler</h4><p>The general gist is the following:</p><ul><li>Go through each HTML file</li><li>Find the template tags</li><li>When found, do a lookup to see if the tag exists (replace) or not (store)</li><li>Write a file that represents the store of all found tags</li></ul><p>Going through each HTML file is pretty straight-forward, I use the glob npm package to find all the files that end in .html in a target directory and then read each one. I’ll also try to initialize a place to store the tags here.</p><pre>import fs from &#39;fs-extra&#39;;<br>import glob from &#39;glob&#39;;</pre><pre>function writeFile(filePath, fileContents) {<br>  fs.ensureFileSync(filePath);<br>  fs.writeFileSync(filePath, fileContents, &#39;utf-8&#39;);<br>}</pre><pre>function getHtmlFilePaths(directory) {<br>  return glob.sync(`${directory}/**/*.html`);<br>}</pre><pre>function getFileContents(path) {<br>  return fs.readFileSync(path, &#39;utf-8&#39;);<br>}</pre><pre>let database = {};<br>try {<br>  <em>// Get the existing data<br>  </em>database = require(DATABASE_JSON_PATH);<br>} catch (err) {<br><em>  // First time running; build the database later<br>  console</em>.info(`Awaiting at ${DATABASE_JSON_PATH}`);<br>}</pre><pre>const htmlFilePaths = getHtmlFilePaths(HTML_WEB_DIR);<br>htmlFilePaths.forEach((htmlPath) =&gt; {<br>  const templatedHtml = getFileContents(htmlPath);<br>  // More to come...<br>})</pre><p>Next, is the replacement using a Regular Expression. The RegExp for these tags is fairly easy to find but I’ll just include it here so you don’t stop reading this post. During the replacement step, we’ll also want to record the tag found.</p><pre>// ...inside the forEach method</pre><pre>const TEMPLATE_TAG_REGEX = /{{\s*([\w\.]+)\s*}}/g;</pre><pre>const replacedHtml = templatedHtml.replace(TEMPLATE_TAG_REGEX, (match, tagName) =&gt; {<br>  <em>// If the tag isn&#39;t in the store, init it<br>  </em>if (!database[tagName]) {<br>    database[tagName] = { value: match }<br>  }</pre><pre>  return database[tagName].value;<br>});</pre><p>I initialize the value as the matched tag (eg. {{ pageTitle }}) and then have it as the provided replacement for the new .html file. If there was a value in the store, it would return that instead.</p><p>The last part is to write the new .html file, and this is also pretty straight-forward as well. As an aside, I use fs-extra instead of the built-in fs package as it has some better tools.</p><pre>// ...final step inside the map</pre><pre>const newFilePath = htmlPath.replace(HTML_WEB_DIR, &#39;&#39;);<br>writeFile(HTML_DIST_DIR + newFilePath, replacedHtml);</pre><p>I keep the directory structure by doing a string diff between the directory I found the files in and each .html file path. At this point, the last bit of code for the compiler is writing our store.</p><pre>writeFile(DATABASE_JSON_PATH, JSON.stringify(database));</pre><p>There’s a couple of other things that you should / could do in here. In my version, I also copy all the other non-.html files over to the HTML_DIST_DIR directory. I also keep a record of which pages each tag was found, as I think that’ll be helpful to display which pages use the tag within the CMS. There’s one more thing that my version does, but we’ll get to that later.</p><h4>About the database</h4><p>At this point, you can see that the store is just a .json file; no credentials, no process to query in the background. I don’t like working with databases because they need a ton of overhead to setup. I figured the easiest way for me to get this working was to just do a key lookup in an object. The project is meant to be cloned and deployed from one computer (the person managing the content), but I also think it could easily be altered to actually connect to a database. Maybe in some future, I’ll make it as a class that can connect somewhere but for now, doing it locally is way easier. Especially for small projects like portfolio sites.</p><p>So after creating the compiler and giving it some sample .html files to work with, it was successfully creating the store. I updated the store manually to add some values to it and after compiling again, the new .html files had content where the tags were. Success!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yKCOowSsIrCJoaVZCVGR8w.png" /><figcaption>The .html file with tags and the compiled .html output</figcaption></figure><h4>Building the CMS</h4><p>I knew this was going to be a simple app that would run locally on a content curators machine. I’m not going to run through the entire app setup here but, you can make the app any way you like. There are links for navigation that redirect to a page where you can edit the content that the tag represents. Upon editing, the app will make a call to update the store with that value. I also made a button to compile the site from the CMS. I also included the ability to filter the tag list to help find tags easier if there’s a lot of them.</p><h4>Value types</h4><p>One of the things I was considering when creating the store was a key that defined what type of value was being held. I was basing this off of <a href="https://docs.vapid.com/content-types">Vapid’s content types</a>, where you can further define what kind of content is expected for the tag. I was planning on having a text for simple strings and then also wanted to have a full markdown editor for more complex formatting. Then after thinking about it, I said why not just make everything as a markdown editor? That way I wouldn’t have to figure out any validation or translating in the compiler; I’d just write whatever was there.</p><h4>Markdown processing</h4><p>This has two parts.</p><ul><li>A client-side markdown editor</li><li>A local process in the compiler for translating markdown into HTML</li></ul><p>The client-side markdown editor was easy. I found a <a href="https://cdnjs.com/libraries/simplemde">CDN</a> (Content Delivery Network) resource for <a href="https://simplemde.com/">SimpleMDE</a>, a simple markdown editor. While I could install and bundle it so this could be used offline, I just wanted to get moving with an editor and throwing the script in the &lt;head&gt; of the page is the easiest way.</p><p>The trickier part was a solution for the compiler. The first thing was that if the markdown only had one line of text, I did not want to wrap that text in &lt;p&gt; tags. This seems to be something that many markdown translators do, but I found that markdown-it has a separate method to handle inline text called renderInline(). This meant that I could check for new line characters in the string and if there weren’t any, we’ll return only the inline version of the markdown. Here’s the change inside the forEach loop from before.</p><pre>const { value } = database[tagName];</pre><pre>if (/\n/.test(value)) {<br>  return md.render(value);<br>}</pre><pre>return md.renderInline(value);</pre><p>The md here represents a new instance of markdown-it which comes straight <a href="https://github.com/markdown-it/markdown-it#simple">from its documentation</a>. But there was another thing I wanted to include. In markdown, you should also be able to write HTML. By default, this is turned off. To turn it on, you need to pass it as an option when you create the instance.</p><pre>import MarkdownIt from &#39;markdown-it&#39;;</pre><pre>const md = new MarkdownIt(<strong>{ html: true }</strong>);</pre><p>Now, when you write HTML in the markdown editor within the CMS, it’ll render as HTML on that page!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RXdOymf41hICq-yaCe5-PQ.png" /><figcaption>Editing the {{ pageTitle }} tag within the CMS, outputs text</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IEwU-uK5W-WVoYZx_88TTg.png" /><figcaption>Editing the {{ pageTestimonials }} tag within the CMS, outputs HTML</figcaption></figure><h3>Introducing handsoff</h3><p>I called the project “handsoff” to relate to the developer’s handoff and that it was pretty hands-off for an HTML/CSS person to build a site and also for the content curator to manage. <a href="https://github.com/ddamato/handsoff">The code for it is found here</a>. I invite you to clone and use it for whatever site you might want to build. 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=759b8171926a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design Systems and Systems Design — what’s the difference?]]></title>
            <link>https://uxdesign.cc/design-systems-and-systems-design-whats-the-difference-b184aa6e5f0d?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b184aa6e5f0d</guid>
            <category><![CDATA[design-systems]]></category>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[product-design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Tue, 12 Nov 2019 17:00:59 GMT</pubDate>
            <atom:updated>2019-11-19T18:14:12.799Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Design Systems</em> and Systems Design — what’s the difference?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GUGarK_KogMB_tXibaHuhA.png" /></figure><p>I’ve had several recruiters read my resumé about my experience in <strong><em>Design Systems</em></strong> and contact me about jobs. Only to find out they were hiring for people with <strong><em>Systems Design</em></strong> experience. I’d like to outline what both topics are and help people understand the qualities of each.</p><h3>Design Systems</h3><p>An engineer who works on a design system typically has some interest in visual design and/or user experience. The engineer would be interested in colors, typography, spacing, and reusable components. They would also be interested in design tools like Sketch and Figma and how to integrate or enhance product design tools. Their work revolves around creating the building blocks that their peers can use to create interfaces and experiences quickly; keeping a consistent look and feel. They may also be responsible for coding features into components or creating the framework that allows the parts to be used easily by their peers.</p><p>These engineers are typically not developing apps or features nor are they often creating wireframes or flows, except when a smaller component has several states (eg. date-picker). However, it is common for these types of people to help their peers within feature teams integrate their deliverables into the larger system.</p><p>When this type of role didn’t exist, these engineers would liken themselves toward traditional frontend engineering roles. These roles might include:</p><ul><li>Web Developer</li><li>UX Engineer</li><li>UI Developer</li><li>Creative / Design Technologist</li><li>Frontend Developer/Engineer</li></ul><p>More resources on Design Systems:</p><ul><li><a href="https://www.invisionapp.com/inside-design/guide-to-design-systems/">A comprehensive guide to design systems</a></li><li><a href="https://uxdesign.cc/everything-you-need-to-know-about-design-systems-54b109851969">Everything you need to know about Design Systems</a></li></ul><h4>About frontend</h4><p>The definition of <em>frontend</em> (or front-end) has shifted over the years. Before JavaScript was able to run on the server-side; if you were a frontend developer you worked almost exclusively in web browser technologies. Your languages were HTML, CSS, and JavaScript. You hardly ever had to connect to a database or create an API.</p><p>Today, frontend developers are often required to be closer to what traditionally meant fullstack. They are now not only responsible for the frontend (or user interface) but also serve that frontend, manage the state of the application, and connect to backend services. This is also why many of them do not have visual design experience or even CSS experience (a technology that is quintessentially frontend). They are now responsible for too much.</p><p>Personally, I wish the term frontend didn’t shift and instead we use JavaScript engineer to describe roles that use JavaScript on the browser and server as this more accurately describes what these engineers are doing.</p><p>More resources on this topic:</p><ul><li><a href="https://css-tricks.com/the-great-divide/">The Great Divide</a></li><li><a href="https://bradfrost.com/blog/post/frontend-design-react-and-a-bridge-over-the-great-divide/">frontend design, react, and a bridge over the great divide</a></li></ul><p>&lt;/tangent&gt;</p><h3>Systems Design</h3><p>I’d like to first admit that I don’t identify myself as having systems design experience except that in my experience creating design systems, I often need to connect parts to create a larger system. This is the basis for the role of engineers with system design skills. These engineers are making decisions on how a database might connect to a server, how many load-balancers would be needed for web traffic, how to deploy code from a repository to different environments or perhaps as simple as creating an API for a component.</p><p>An engineer creating a system will be taking parts to create a greater whole. The process of deciding and moving the parts around is the design part of systems design. Deciding on which method to use to iterate over an array could be considered systems design (performance versus readability).</p><p>I don’t believe there are many roles that focus only on systems design except roles that include the word “architect”. As the name suggests, an architect designs the building, but other people follow the plans and build the structure. In the word of tech, architects are very senior engineers who create plans where junior engineers would learn and code using those plans.</p><p>More resources on Systems Design</p><ul><li><a href="https://medium.com/the-andela-way/system-design-in-software-development-f360ce6fcbb9">System Design in Software Development</a></li><li><a href="https://hackernoon.com/fundamentals-of-system-design-part-1-c87b1d2bfd31">Fundamentals of System Design</a></li></ul><h3>Takeaway</h3><p><em>Design Systems</em> is a focus that some designers, engineers, and other partners deliver to their peers in the form of guidelines, components, and other resources. <em>Systems Design</em> is a skill that engineers should possess when connecting different technologies together.</p><p>A person who creates the system in which designers and developers use the same resources and technologies could be called the <em>system designer</em> (ie. architect) of the company’s <em>design system </em>(ie. component library). However, a person working on a design system might not be the person creating it. They might just be adding to it or making changes. These might be people in the engineering roles listed above or designers, researchers, copywriters, and other partners. These are examples of people in design systems roles that are not systems designers.</p><p>I hope this helps people outside the community of design systems understand the usage of the design and systems better as it pertains to our work and focus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b184aa6e5f0d" width="1" height="1" alt=""><hr><p><a href="https://uxdesign.cc/design-systems-and-systems-design-whats-the-difference-b184aa6e5f0d">Design Systems and Systems Design — what’s the difference?</a> was originally published in <a href="https://uxdesign.cc/">UX Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Extending the Semantic Version Redirect]]></title>
            <link>https://medium.com/compass-true-north/extending-the-semantic-version-redirect-ec8fff345f43?source=rss-3b26799739a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec8fff345f43</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[semver]]></category>
            <category><![CDATA[redirection]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Donnie D'Amato]]></dc:creator>
            <pubDate>Mon, 05 Aug 2019 14:01:01 GMT</pubDate>
            <atom:updated>2019-08-05T14:01:01.453Z</atom:updated>
            <content:encoded><![CDATA[<p>We solved the Design System’s problem of getting styles simply through our platform using <a href="https://medium.com/compass-true-north/semantic-version-redirects-at-the-edge-1bbb6b83f9c6">Semantic Version Redirect at the Edge</a>. After using this method for a while, we found one caveat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKtpp0q3IKOKoBAXmQVizA.jpeg" /></figure><h3>Breaking Everything At Once</h3><p>In the Design System team, we make every effort to ensure that when we choose a semver number that it correctly identifies the type of change that is expected for the platform. This means, we expect patch updates to not include breaking changes to the platform and it should be safe to have features point to a major or major.minor version without issues.</p><p>Additionally, when we publish a new version, it’s made instantly available for our organization and platform. For packages that require an install, this allows teams to choose when to use the next version. For CDNs, this means changes will be instant to all environments directly after the publish occurs.</p><p>Since every page in the platform has their own hard-coded &lt;link&gt; tag at the top of the page that is <strong>always</strong> targeting the production assets, this means all environments get the new assets at the same time based on how the &lt;link&gt; satisfies the semver redirect. If we accidentally include a breaking change in a patch, everything will break at once.</p><h3>Controlled Breakage</h3><p>In order to ensure that our platform-wide changes wont break the public site, we need to test them in a specific and controlled environment. We also want to do this without having each feature team have their own method of conditionally creating the &lt;link&gt; based on environment. The asset request knows which environment this is, so the response should just send assets based on that information.</p><p>The solution was to create a pre-release version that was to target a specific environment as long as the redirect rules matched.</p><p>Let’s assume a page has the following link to Cx:</p><pre>&lt;link rel=”stylesheet” type=”text/css” href=”/cx/1.8/cx.min.css”&gt;</pre><p>And a subset of available versions of Cx:</p><pre>cx@1.8.7-dev<br>cx@1.8.6<br>cx@1.8.5</pre><p>Under the current state of affairs, the semver redirect rules will choose cx@1.8.6, the highest stable release matching the major.minor provided.</p><p>Now, if we create a lookup that checks the pre-releases for a specific tag based on the environment making the request, we could instead serve the cx@1.8.7-dev assets instead. This would target the environment that requested the asset and could thereby be tested in that environment specifically.</p><h3>Steps</h3><p>First, we create a pre-release tag whitelist and separate by environment. Notice production is not included. We do not want any pre-release versions to enter production.</p><pre>prerelease_tag_whitelist:<br>    development: dev<br>    test: test</pre><p>Next, when we resolve the version, the filter should now include pre-releases but only ones that are provided by the whitelist based off of the environment that requested them. We’re using the <a href="https://www.npmjs.com/package/semver">semver</a> package here.</p><pre>const sortedVersions = versions.sort(semver.compare);<br>const ptw = prerelease_tag_whitelist.split(&#39;,&#39;);<br>const filteredVersions = sortedVersions.filter((version) =&gt; {<br>    const [tag] = [].concat(semver.prerelease(version));<em><br>    </em>return !tag || ptw.includes(tag);<br>});</pre><p>In the semver.compare, stable versions are higher than unstable versions of the same semver number. In other words, ifcx@1.8.7 and cx@1.8.7-dev both exist, the stable version (cx@1.8.7) will be sorted to the front of the array with the unstable version (cx@1.8.7-dev) directly behind it. Finally we pass in the includePrerelease option to the maxSatisfying method.</p><pre>const options = {includePrerelease: !!prerelease_tag_whitelist};<br>return semver.maxSatisfying(filteredVersions, range, options);</pre><h3>Following Through</h3><p>Just because a code change has occurred doesn’t mean everything is ready to rock. We also needed to communicate this change across the organization. I have a group of engineers called Cx Ambassadors that are engineers who represent each feature team in the company. I reviewed the changes with those engineers in detail and then sent a summary of the changes to the larger engineering organization. In this way, when we are testing a new version of Cx, the ambassadors can know about the change and report regressions <em>before</em> they are found in production. This will also allow them to test new additions or features of the design system before release in actual products.</p><p>The change is super new to our system so no word on usage yet but, we can expect more posts like this one making our engineering ecosystem better everyday!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec8fff345f43" width="1" height="1" alt=""><hr><p><a href="https://medium.com/compass-true-north/extending-the-semantic-version-redirect-ec8fff345f43">Extending the Semantic Version Redirect</a> was originally published in <a href="https://medium.com/compass-true-north">Compass True North</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>