<?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 Samuel Pinto on Medium]]></title>
        <description><![CDATA[Stories by Samuel Pinto on Medium]]></description>
        <link>https://medium.com/@samuelpinto?source=rss-e0c4277773a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kFkXvdrhMaug3o2gJe32wg.png</url>
            <title>Stories by Samuel Pinto on Medium</title>
            <link>https://medium.com/@samuelpinto?source=rss-e0c4277773a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 18:34:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@samuelpinto/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[Do we need a UI to build a Frontend?]]></title>
            <link>https://samuelpinto.medium.com/do-we-need-a-ui-to-build-the-fe-d1b14e07053e?source=rss-e0c4277773a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1b14e07053e</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[clean-architecture]]></category>
            <category><![CDATA[superpowers]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <dc:creator><![CDATA[Samuel Pinto]]></dc:creator>
            <pubDate>Thu, 13 May 2021 22:30:03 GMT</pubDate>
            <atom:updated>2021-05-27T13:06:49.908Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LzjbTkFbNFDjBnwF8NF8TQ.png" /></figure><blockquote>A <strong>frontend </strong>is<strong> </strong>the graphical User Interface of a computer that makes it easier to use. <strong>For</strong> <strong>example</strong>, Microsoft Windows 3.11 was a <strong>frontend</strong> for the MS-DOS command line. Before Windows, the user had to memorize a series of commands to perform tasks on the command line that made computers difficult for most users. (<a href="https://www.computerhope.com/jargon/f/frontend.htm">Computer Hope, 2020</a>)</blockquote><h3>So, do we need a UI to build a FE? I say MAYBE NOT.</h3><p>If a frontend (<strong>FE)</strong> is the graphical user interface (<strong>UI) </strong>of a computer application, what am I thinking about?</p><p>Before you assume that I’m crazy (which can be legit), let me use an alternative example to explain my point of view. I will use the movie <a href="https://www.imdb.com/title/tt0317705/">The Incredibles</a> to illustrate the case. It’s not a problem if you didn’t see the movie but be aware of spoilers.</p><p>Let&#39;s change the topic for a bit.</p><h3>Do we need a SUIT to be a SUPERHERO?</h3><p>The superhero suit is quite important, it defines its branded image and at the same time keeps the superhero’s real identity safe. If I ask you to guess which superhero uses their underwear on top of their pants, this may not be a very good clue, but if I say that they have a big <a href="https://en.wikipedia.org/wiki/Superman">S</a>, a <a href="https://en.wikipedia.org/wiki/Batman">Bat</a> or a <a href="https://en.wikipedia.org/wiki/Spider-Man">Spider</a> on the chest, that may be easier to identify.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ur1hM6uwocmyxRBK" /><figcaption>Meet the family</figcaption></figure><p><em>This movie is about a family of undercover superheroes while trying to live the quiet suburban life, who are forced into action to save the world.</em></p><p><strong>Dad</strong> has super-strength, <strong>Mom</strong> has body elasticity. <strong>Violet</strong> has invisibility and force fields. <strong>Dash</strong> has super speed and <strong>Jack-Jack</strong> is just a baby.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*wIkgkzpolVuh17Kd" /><figcaption>Who they are and the SuperPowers</figcaption></figure><p>The Incredibles have a very strong branded image, as we can see their brand has <a href="https://www.schemecolor.com/the-incredibles-color-scheme.php">5 colours</a> which are #AA0A00, #D52D12, #F4B900, #0B0B0B and #E7A17E. Well, let&#39;s say <strong>red</strong>, <strong>yellow</strong> and <strong>black</strong> 😅.</p><p>To help build their branding, they use a mask and have a cool logo on the chest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*vzbhPvgyJVUhzHUMIdpNKA.gif" /></figure><p>If Jack-Jack doesn’t have superpowers then why does he need a suit? Well, looks like Jack-Jack has <strong>17 powers</strong> of his own. This was not clear when the movie started. At that point, for all of us, Jack-Jack was just a baby.</p><p>Building a suit for a superhero is not an easy task. For example, the <strong>Mom’s suit</strong> has to be compliant with her superpowers. Each time she stretches, the suit has to be elastic enough. Finding the materials that support this elasticity in this scale is a hard job.</p><p><strong>Violet</strong> can get invisible, but if the suit doesn’t get invisible, she would be discovered easily. On the other hand, if the suit can get invisible but she can’t, that will give her the power of being naked 😆.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1-fuOtlObIobvq3w4RUMNw.png" /><figcaption>Jack-Jack, the person with superpowers</figcaption></figure><p>We can notice that each power impacts the suit design. Let’s focus on the superpowers subset extend fire emission, polymorphing, laser vision and electricity out of his 17 to build a suit for <strong>Jack-Jack</strong>.</p><p>When Jack bursts into flames, his clothes will burn which will make him naked. So one of the main requirements for the suit would be fireproof. When he transforms into a monster, his body changes in size, so the suit must adapt to multiple shapes and sizes. When he uses laser vision, his mask must be ready to allow the laser to go through. Last on our list we have electricity, this superpower will not allow us to use any electronics in our suit. 😭</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rBSR_K3Ht6hPyqAr1HpdIQ.png" /><figcaption>Jack-Jack can activate powers</figcaption></figure><p>Jack’s superpowers are quite complex and can be activated in many distinct ways. He needs to understand them in a way to get better use of them.</p><p>The first times that he applied his powers was when he got scared, excited, or in another emotional state. Somehow, this emotional input triggered a power. Because he was still very young, he couldn’t control them very well. However, when he had a strong reason, like when he wanted that <a href="https://www.youtube.com/watch?v=a8Dk2CnqlPY&amp;ab_channel=EntertainmentAccess">jar of cookies</a>, he activated his powers to achieve his goal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ua04mPxO0s_1srycd1KzSQ.png" /><figcaption>Jack-Jack is a superhero, not a villain</figcaption></figure><p>There is no use of a superhero without a villain and this movie has one. But why Jack is a superhero and not a villain?</p><p>Jack is a superhero because of his psychological infrastructure. This interface is responsible for defining what he thinks is funny, good and bad, likes and dislikes, and many other attributes. Just by changing a property in his personality, we could easily transform Jack into a villain. If he changes the way he sees good and evil, that transformation into a villain is within reach.</p><p>If he was a villain, probably his suit would be very different. Maybe green, black, or purple with some scary logo.</p><p>Well, well, well… Jack is a complicated person, but <strong>does he need a suit to have his superpowers,</strong> to love his family (and cookies), and to define his personality? <strong>I would say NO</strong>. Jack can be all of these without a suit!</p><h3>What does all of this have to do with FE and UI?</h3><p>Ok, let&#39;s mirror the Jack-Jack example into a frontend application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gWQwPlIrTXEUGuTk24AYKg.png" /></figure><p>As we can see, there are so many important things in our superhero besides the suit. As we’ve seen before, the suit is very important as it defines the superhero brand. A brand helps you to connect emotionally with your audience/fans/clients. But … did <strong>Spider-Man</strong> use the same suit all these years? Spider-Man changed his suit many times in history, he even added devices to it (web-shooters) to help him. This hack developed by Peter helped him to perform better, the changes he made to the suit are numerous but he never changed the superhero’s core superpowers.</p><p>Maybe Peter was the one to inspired frontend developers who implement all domain rules in the UI. This makes it harder to replace and maintain the UI. But he learned from his mistakes! He detached the web-shooters from the suit, making it independent from it, allowing him to change or replace the suit faster.</p><h3>Final notes: How I wish all FE developers thought</h3><ul><li>The UI is definitely important but not the main/only focus.</li><li>Low coupling + high cohesion= THE GOAL.</li><li>Keeping your domain pure (no libraries or frameworks dependencies) makes it easier to test, maintain, and iterate on.</li></ul><h4><strong>How about you?</strong></h4><p>Are you ready to re-brand your apps without losing or re-writing any features?<br>Are you ready to have UX per user/device/region/etc with a shared logic?</p><p><strong>Thanks for reading and share your thoughts ❤️</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1b14e07053e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>