<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>phun-ky.net</title>
    <link>https://phun-ky.net/</link>
    <atom:link href="https://phun-ky.net/feed.xml" rel="self" type="application/rss+xml" />
    <description>The world from my point of view, and some pedantic creativity</description>
    <language>en-gb</language>
    <item>
      <title>Fix your god damned typography!</title>
      <link>https://phun-ky.net/2025/01/27/fix-your-god-damned-typography</link>
      <guid isPermaLink="true">https://phun-ky.net/2025/01/27/fix-your-god-damned-typography</guid>
      <pubDate>Mon, 27 Jan 2025 00:00:00 GMT</pubDate>
      <category>Talks</category>
      <category>typography</category>
      <category>metrics</category>
      <category>basekick</category>
      <category>line-height</category>
      <category>fonts</category>
      <category>frontend</category>
      <category>talk</category>
      <category>conference</category>
      <category>booster</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;This talk will demonstrate the pains a developer have with the designer when the developer implements typography design. Ever wondered why the distance between a title and the text says 30px in the sketch, but it won't line up with your html and css? Well, this talk will make you understand why, and how to fix this :)&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://vimeo.com/813230688&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;&lt;img class=&quot;ph&quot; src=&quot;https://phun-ky.net/img/blog/booster-fix-typography.webp&quot; alt=&quot;Screenshot of the talk I had at booster 2023&quot; title=&quot;Fix your god damned typography!&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>What is Technology Management?</title>
      <link>https://phun-ky.net/2025/01/25/what-is-technology-management</link>
      <guid isPermaLink="true">https://phun-ky.net/2025/01/25/what-is-technology-management</guid>
      <pubDate>Sat, 25 Jan 2025 00:00:00 GMT</pubDate>
      <category>Management</category>
      <category>people</category>
      <category>knowledge</category>
      <category>competence</category>
      <category>skill</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;To me, &lt;em class=&quot;ph&quot;&gt;technology management&lt;/em&gt; is about balancing human and technological resources to achieve the organization's goals.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;To me, &lt;em class=&quot;ph&quot;&gt;technology management&lt;/em&gt; is about balancing human and technological resources to achieve the organization's goals.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;It involves leading technologists and development processes in a way that not only ensures progress but also fosters a learning culture where &lt;em class=&quot;ph&quot;&gt;knowledge&lt;/em&gt; is continuously shared and developed.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The main focus of technology management, as I see it, is facilitation:&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Facilitating the acquisition of competence&lt;/strong&gt;: Ensuring that employees have access to the right knowledge and tools, whether through training, coaching, or by creating an environment where learning happens naturally.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Facilitating the sharing of competence&lt;/strong&gt;: Building structures and a culture for knowledge sharing, where experiences and insights flow between team members and departments.&lt;/li&gt;&lt;/ol&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Building a Better Professional Environment: Collaboration and Innovation in Focus</title>
      <link>https://phun-ky.net/2025/01/25/building-a-better-professional-environment-collaboration-and-innovation-in-focus</link>
      <guid isPermaLink="true">https://phun-ky.net/2025/01/25/building-a-better-professional-environment-collaboration-and-innovation-in-focus</guid>
      <pubDate>Sat, 25 Jan 2025 00:00:00 GMT</pubDate>
      <category>Management</category>
      <category>people</category>
      <category>knowledge</category>
      <category>competence</category>
      <category>skill</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;I've tried to reflect a bit on how to transform a struggling professional environment into a market-leading one. I believe that the connection between collaboration, culture-building, and an innovation/product-oriented perspective can provide a structured path forward. What do you think?&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Our ability to work together, that is our greatest strength.&amp;quot; — Christopher&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;em class=&quot;ph&quot;&gt;—Pike, Captain of USS Enterprise (NCC-1701)&lt;/em&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/unsplash-photo-1492366254240-43affaefc3e3.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;People rowing a boat on body of water&quot; src=&quot;https://phun-ky.net/img/external/unsplash-photo-1492366254240-43affaefc3e3.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/unsplash-photo-1492366254240-43affaefc3e3.webp&quot;&gt;People rowing a boat on body of water&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Photo by &lt;a class=&quot;ph&quot; href=&quot;https://unsplash.com/@mrsunflower94?utm_content=creditCopyText&amp;amp;utm_medium=referral&amp;amp;utm_source=unsplash&quot;&gt;Matteo Vistocco&lt;/a&gt; on &lt;a class=&quot;ph&quot; href=&quot;https://unsplash.com/photos/people-riding-boat-on-body-of-water-Dph00R2SwFo?utm_content=creditCopyText&amp;amp;utm_medium=referral&amp;amp;utm_source=unsplash&quot;&gt;Unsplash&lt;/a&gt;&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;1-collaboration-as-a-core-value&quot; class=&quot;ph&quot;&gt;1. Collaboration as a Core Value&lt;a class=&quot;ph heading-link&quot; href=&quot;#1-collaboration-as-a-core-value&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;As the quote says: &amp;quot;Our ability to work together, that is our greatest strength.&amp;quot; Transformation starts with collaboration. This involves building a bridge between leadership and employees and establishing a shared understanding of goals and values:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Mutual Trust&lt;/strong&gt;: Leadership must demonstrate their support for the professional environment through actions, such as prioritizing time and resources for learning and development.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Open Communication&lt;/strong&gt;: Create forums where employees can share ideas and challenges with leadership, such as professional groups, evening seminars, knowledge-sharing days, or innovation workshops.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Shared Responsibility&lt;/strong&gt;: Enable both leadership and employees to take ownership of the process of building a strong professional environment. When employees feel a sense of ownership, engagement and contributions increase.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;2-a-culture-of-continuous-improvement-and-innovation&quot; class=&quot;ph&quot;&gt;2. A Culture of Continuous Improvement and Innovation&lt;a class=&quot;ph heading-link&quot; href=&quot;#2-a-culture-of-continuous-improvement-and-innovation&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Continuous improvement must be embedded in the organization’s DNA. This requires a culture that values experimentation, learning, and sharing:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Create Space for Experimentation&lt;/strong&gt;: Dedicate time to innovation through activities like hackathons or R&amp;amp;D initiatives. This can lead to concrete improvements and inspire larger projects.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Reward Learning and Sharing&lt;/strong&gt;: Provide incentives for employees who contribute to the development of the environment, such as through internal presentations, mentoring, or creating new tools.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Minimize Technical Debt&lt;/strong&gt;: Make it a priority to clean up existing systems and processes so innovation can occur without unnecessary obstacles.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;3-innovation-and-product-orientation-as-a-driving-force&quot; class=&quot;ph&quot;&gt;3. Innovation and Product Orientation as a Driving Force&lt;a class=&quot;ph heading-link&quot; href=&quot;#3-innovation-and-product-orientation-as-a-driving-force&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;To build a world-class professional environment, innovation and product development must be a strategic priority:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;User-Centric Development&lt;/strong&gt;: Train employees to think like product developers. This includes understanding user needs, gathering feedback, and iteratively improving solutions.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Small, Value-Driven Initiatives&lt;/strong&gt;: Start with small, targeted projects that build value over time, such as developing prototypes, testing new methods, or upgrading existing systems.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Focus on Technology and the Future&lt;/strong&gt;: Invest in technology and research to ensure the company stays ahead of the curve.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;4-measuring-and-celebrating-success&quot; class=&quot;ph&quot;&gt;4. Measuring and Celebrating Success&lt;a class=&quot;ph heading-link&quot; href=&quot;#4-measuring-and-celebrating-success&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Transformation requires making progress visible and celebrating successes along the way:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Define Clear Goals&lt;/strong&gt;: Set specific goals for the development of the professional environment, such as an increased number of presentations, innovation projects, or customer recommendations.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Measure Initiative Value&lt;/strong&gt;: Document how professional and innovative efforts have improved products, processes, or customer experiences.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Celebrate Wins, Big and Small&lt;/strong&gt;: Recognize contributions from individuals and teams to build motivation and culture.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;what-could-this-look-like-in-practice&quot; class=&quot;ph&quot;&gt;What Could This Look Like in Practice?&lt;a class=&quot;ph heading-link&quot; href=&quot;#what-could-this-look-like-in-practice&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Imagine a journey where the company begins with small steps to build trust and an innovative culture:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Leadership allocates 10% of work hours for professional development time and offers clear incentives for learning and sharing.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;A team launches a pilot project to develop a new feature for an existing solution, with a strong focus on user feedback.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;The results of the pilot are shared internally, and the success is celebrated at a professional development day, where employees are encouraged to present their own ideas for the next round.&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Over time, these small initiatives will create momentum and strengthen the professional environment.&lt;/p&gt;&lt;/blockquote&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>A frontenders experience with with NDC Oslo 2024</title>
      <link>https://phun-ky.net/2024/06/21/a-frontenders-experience-with-with-ndc-oslo-2024</link>
      <guid isPermaLink="true">https://phun-ky.net/2024/06/21/a-frontenders-experience-with-with-ndc-oslo-2024</guid>
      <pubDate>Fri, 21 Jun 2024 00:00:00 GMT</pubDate>
      <category>Programming</category>
      <category>conferences</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;I have attended and spoken at &lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;NDC Oslo&lt;/a&gt; for several years, and this year I'm writing a brief summary about my experience attending NDC Oslo 2024.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-conference&quot;&gt;The conference&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-venue&quot;&gt;The venue&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-talks-i-attended&quot;&gt;The talks I attended&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#what-the-soviet-space-program-taught-me-about-digital-product-development&quot;&gt;What the Soviet Space Program Taught Me About Digital Product Development&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#advanced-html-for-performance--accessibility&quot;&gt;Advanced HTML for Performance &amp;amp; Accessibility&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#eventsource-the-under-appreciated-sibling-of-websockets--a-dive-into-real-time-communication&quot;&gt;EventSource: The under appreciated sibling of WebSockets – a dive into real time communication&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#other-talks&quot;&gt;Other talks&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#afterthought&quot;&gt;Afterthought&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#summary&quot;&gt;Summary&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;This summary could be interpreted as a too brief summary, but I am not that good to write down thoughts and memories in my head. Articles takes weeks and months, and in some occasions, &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2015/09/09/trusted-data&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;years to write&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;h2 id=&quot;the-conference&quot; class=&quot;ph&quot;&gt;The conference&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-conference&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003725.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003725.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003725.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;What is NDC? From their website:&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The first NDC conference was held at the Radisson Scandinavia hotel in Oslo back in 2008. The conference had more than 800 attendees and included 1 day of Agile and 1 day of .NET. Since then the conference has come a long way. There are now NDC conferences in locations around the world, including Oslo, London, Sydney, Porto, and Copenhagen.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;NDC will cover all topics interesting to developers. You can see most of our previous talks on our YouTube channel → &lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/ndcconferences&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;NDC Conferences&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;NDC Oslo 2024&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;NDC Oslo consists of 2 workshop days followed by 3 days of conference sessions in Oslo Spektrum. NDC will be an in-person event with multiple tracks, an expo and after-parties. We expect more than 2700 people to attend.&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;This was my 3rd or 4th time at NDC Oslo, first one was in 2012, and I have even &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2023/01/17/from-nothing-to-state-of-the-art-how-we-build-design-systems-for-all&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;held a talk at NDC!&lt;/a&gt;&lt;/p&gt;&lt;h2 id=&quot;the-venue&quot; class=&quot;ph&quot;&gt;The venue&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-venue&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;In the early years, NDC was mostly focused on backend with .NET/backend related talks, but over the years we saw that it directed the agenda to be a more cross disciplinary conference. This suited me, since I am a frontender. The last two times however, it was clear that they are turning their focus back to backend and .NET :/&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The venue has in the last years always been at &lt;a class=&quot;ph&quot; href=&quot;https://oslospektrum.no/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Oslo Spektrum&lt;/a&gt;, a huge multi use hall that was opened in 1990. It is located right smack in the middle of down town, and easily accessible.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;A fun fact is that it is designed to be a tank/heavy vehicle repair depot in the eventuality of war in Norway. The rig in the ceiling is more than capable of lift several thousand tons, e.g. tanks, and originally the entrances was made so that those vehicles could easily enter.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;One thing that I like with NDC (and perhaps other conferences do the same as well), is that they have an overflow area where you can use a headset to tune in to the different talks while they are held.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003695.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003695.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003695.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;And of course, my company, Knowit, had the biggest stand at the venue:&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003726.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003726.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003726.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;the-talks-i-attended&quot; class=&quot;ph&quot;&gt;The talks I attended&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-talks-i-attended&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;What struck me as peculiar, was the presence of 3 space related talks on the agenda. Are we shifting our focus to the stars?&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/on-becoming-a-space-faring-civilization/d8f200df08fa&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;On Becoming a Space-Faring Civilization&lt;/a&gt; by Richard Campbell&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/space-flight-in-2024/ad750a0430b5&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Space Flight in 2024&lt;/a&gt; by Richard Campbell&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/what-the-soviet-space-program-taught-me-about-digital-product-development-08k1/0uonpzyaz24&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;What the Soviet Space Program Taught Me About Digital Product Development&lt;/a&gt; by Dean Schuster&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;The last one was more related to my area, and not directly related to the future of us as a space faring civilization.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003726.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003726.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003726.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;what-the-soviet-space-program-taught-me-about-digital-product-development&quot; class=&quot;ph&quot;&gt;What the Soviet Space Program Taught Me About Digital Product Development&lt;a class=&quot;ph heading-link&quot; href=&quot;#what-the-soviet-space-program-taught-me-about-digital-product-development&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;I wanted to join all, but due to conflicting talks and me helping around the Knowit stand at the conference, I only managed to partake in one of them. And that was &lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/what-the-soviet-space-program-taught-me-about-digital-product-development-08k1/0uonpzyaz24&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;What the Soviet Space Program Taught Me About Digital Product Development&lt;/a&gt; by Dean Schuster.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003698.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003698.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003698.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;He talked about how we can use the Soviet space program as an example on how to NOT build products. Albeit, during the Cold War, Soviet had almost all of the firsts. First animal in space, first man in space, first space walk, first satelite, first to another planet. However, the way they got there was by sacrificing a lot. They skipped testing and safety procedures etc just to be first.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003701.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003701.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003701.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;This resultet in a very unstable foundation to build upon. While the Soviets were first in many things, they did not have the most important first, beeing the first to put a man on the moon.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The US did things a bit slower, but with the momentum they build up by going slow, ultimately led them to be the first to put a man on the mooon.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003702.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003702.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003702.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;I think the key giveaway here is that you do not always have to be first, but like the old catchphrase, slow and steady wins the race, if you create and develop a product in a steady pace, you can eventually by the shear momentum, create something that can outlive you.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003704.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003704.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003704.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;advanced-html-for-performance-accessibility&quot; class=&quot;ph&quot;&gt;Advanced HTML for Performance &amp;amp; Accessibility&lt;a class=&quot;ph heading-link&quot; href=&quot;#advanced-html-for-performance-accessibility&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003692.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003692.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003692.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Another talk I attended, was Many Michaels talk about &lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/advanced-html-for-performance-and-accessibility-0c3a/0gu5sy38yn9&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Advanced HTML for Performance &amp;amp; Accessibility&lt;/a&gt;.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003694.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003694.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003694.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;I really hoped that I was going to learn something new and cool, but this was just another &amp;quot;use this attributes&amp;quot; talk for accessibility that I've seen and heard so many times before.&lt;/p&gt;&lt;h3 id=&quot;eventsource-the-under-appreciated-sibling-of-websockets-a-dive-into-real-time-communication&quot; class=&quot;ph&quot;&gt;EventSource: The under appreciated sibling of WebSockets – a dive into real time communication&lt;a class=&quot;ph heading-link&quot; href=&quot;#eventsource-the-under-appreciated-sibling-of-websockets-a-dive-into-real-time-communication&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Benedicte Emilie Brækken had a really good &lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/eventsource-the-under-appreciated-sibling-of-websockets-a-dive-into-real-time-communication-0p76/0daulnnd8vu&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;talk about EventSource&lt;/a&gt;, an alternative to WebSockets. And she managed to raise my curiosity about it, and I would like to try it out on an occasion where I need real time communication.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003711.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003711.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003711.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003712.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003712.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003712.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003713.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003713.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003713.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003719.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003719.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003719.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;other-talks&quot; class=&quot;ph&quot;&gt;Other talks&lt;a class=&quot;ph heading-link&quot; href=&quot;#other-talks&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Even though the program is not a good fit for me, as a frontender, the NDC program commitee STILL manages to put talks that I wanted to go to in conflicting slots. So I just have to wait to see it &lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/@NDC&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;until it is uploaded on YouTube&lt;/a&gt;:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/your-website-does-not-need-javascript-0noc/045kt3e9g1y&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Your website does not need JavaScript&lt;/a&gt; by Amy Kapernick&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/the-history-of-computer-art-03ko/01upfhbdeit&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;The History of Computer Art&lt;/a&gt; by Anders Norås&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://ndcoslo.com/agenda/on-becoming-a-space-faring-civilization/d8f200df08fa&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;On Becoming a Space-Faring Civilization&lt;/a&gt; by Richard Campbell&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;As a big fan of minimized and simple web applications, I am looking forward to Amys talk. And Anders Norås always delivers fantastic talks. And I must admit, I am a space nerd, so would love to listen in on Richard Campbell.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003723.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003723.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003723.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;There were other talks, of course, that peaked my interest. But due to a conflicting schedule with family, and that I also stepped in for some of my colleagues at out stand, I could not attend everything I wanted. But that is the life of a dad and a consultant ;)&lt;/p&gt;&lt;h2 id=&quot;afterthought&quot; class=&quot;ph&quot;&gt;Afterthought&lt;a class=&quot;ph heading-link&quot; href=&quot;#afterthought&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Allthough NDC is primarily a .NET/backend conference, the program still lacks the full cross functionality theme that revolves around us. No backender ever interacts solely with backend code. I mean, they do try to have some frontend/ux/design and non-tech talks, but it is not quite cutting it to be honest.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003696.jpg&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Photo from NDC Oslo 2024&quot; src=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003696.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ndc-oslo-2024/1000003696.jpg&quot;&gt;Photo from NDC Oslo 2024&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;summary&quot; class=&quot;ph&quot;&gt;Summary&lt;a class=&quot;ph heading-link&quot; href=&quot;#summary&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;To sum it up, in general, the NDC conference is a great conference, but it fails to hit the bullseye within my competence field. Yes, it is a great venu, yes the speakers are great. You get to mingle and interact with people from around the globe, and yes, great food and coffee, but I do not think I will partake in an NDC conference, unless I am speaking or helping with the company stand.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Will I recommend this conference to a backend developer? Yes. A frontend developer, no, unless there are talks that are specific to &lt;strong class=&quot;ph&quot;&gt;you&lt;/strong&gt;.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Standard refactoring issue text</title>
      <link>https://phun-ky.net/2024/05/14/standard-refactoring-issue-text</link>
      <guid isPermaLink="true">https://phun-ky.net/2024/05/14/standard-refactoring-issue-text</guid>
      <pubDate>Tue, 14 May 2024 00:00:00 GMT</pubDate>
      <category>Programming</category>
      <category>issues</category>
      <category>project</category>
      <category>programming</category>
      <category>project-management</category>
      <category>refactoring</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Due to auditability reasons when creating issue for refactoring code, I came up with a standard issue boilerplate text that helped me cover all bases when it comes to the reasoning behind the refactoring. Feel free to use this on your own projects.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;h2 id=&quot;formatted-ready-to-copy&quot; class=&quot;ph&quot;&gt;Formatted, ready to copy&lt;a class=&quot;ph heading-link&quot; href=&quot;#formatted-ready-to-copy&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Background&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&amp;lt;Insert background for the issue here&amp;gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;User story&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;As a developer on the project, I want to refactor the relevant code to enhance readability and maintainability. This will allow us to better adhere to coding standards, improve code organization, and make future updates and maintenance tasks more efficient.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Proposed solution&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Separate out code for better readability&lt;/strong&gt;: Identify sections of code with complex logic or multiple responsibilities and refactor them into smaller, more manageable pieces. This can involve extracting functions, creating separate modules, or splitting components.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Renaming of variables and functions/methods&lt;/strong&gt;: Review variable and function/method names to ensure they accurately reflect their purpose and improve understanding for other developers. Rename entities where necessary to align with naming conventions and make the code base more consistent.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Adhere to a desired length of the file&lt;/strong&gt;: Analyze file lengths and refactor files that are excessively long to adhere to a desired length, improving code organization and readability. This may involve splitting files into smaller modules or components.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Move code to the correct context&lt;/strong&gt;: Review the current placement of code and ensure it is logically grouped in the correct context. Move code to more appropriate locations within the code base to improve organization and maintainability.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Rewrite function/method/components to optimize both code and readability&lt;/strong&gt;: Identify functions, methods, or components that are overly complex or inefficient and rewrite them to optimize both code performance and readability. This may involve simplifying logic, eliminating redundancy, or improving algorithm efficiency.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Removal of dead code&lt;/strong&gt;: Identify and remove any dead or unreachable code, including unused variables, functions, or components. This helps to streamline the code base, reduce clutter, and improve overall code maintainability.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Eliminate unnecessary dependencies&lt;/strong&gt;: Review the existing dependencies and identify any that can be replaced with native alternatives provided by the language or framework being used. By leveraging native functionality, we can reduce external dependencies, simplify the code base, and potentially improve performance and compatibility.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Keep dependencies up to date&lt;/strong&gt;: Regularly review and update dependencies to ensure that the project is using the latest stable versions. This involves monitoring changelogs, security advisories, and compatibility issues, and upgrading dependencies as needed to take advantage of new features, bug fixes, and security patches.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Acceptance criteria&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;The relevant code undergoes a comprehensive review to identify areas for refactoring based on the proposed solutions.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Refactored code follows established coding standards and naming conventions.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Refactored code is logically organized and easy to understand for other developers.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Refactored code demonstrates improved readability, maintainability, and adherence to best practices.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;The length of files adheres to the desired standard, with any excessively long files being appropriately refactored.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Refactored code is successfully integrated into the existing code base without introducing regressions or breaking existing functionality.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Developers involved in the refactoring process provide feedback on the effectiveness of the changes and suggest further improvements if necessary.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Dead code is identified and removed from the code base, reducing clutter and improving code maintainability.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Unnecessary dependencies are identified and replaced with native alternatives where applicable, reducing external dependencies and simplifying the code base.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Dependencies are regularly reviewed and updated to ensure that the project is using the latest stable versions, incorporating new features, bug fixes, and security patches.&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;ph&quot;&gt;This issue aims to address the identified areas for refactoring in order to enhance the overall quality and maintainability of the code base.&lt;/p&gt;&lt;h2 id=&quot;markdown&quot; class=&quot;ph&quot;&gt;Markdown&lt;a class=&quot;ph heading-link&quot; href=&quot;#markdown&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;markdown&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-markdown&quot; language=&quot;markdown&quot;&gt;&lt;code class=&quot;ph markdown language-markdown&quot;&gt;**Background**

&amp;amp;lt;Insert background for the issue here&amp;amp;gt;

**User story**

As a developer on the project, I want to refactor the relevant code to enhance
readability and maintainability. This will allow us to better adhere to coding
standards, improve code organization, and make future updates and maintenance
tasks more efficient.

**Proposed solution**

1. **Separate out code for better readability**: Identify sections of code with
   complex logic or multiple responsibilities and refactor them into smaller,
   more manageable pieces. This can involve extracting functions, creating
   separate modules, or splitting components.
2. **Renaming of variables and functions/methods**: Review variable and
   function/method names to ensure they accurately reflect their purpose and
   improve understanding for other developers. Rename entities where necessary
   to align with naming conventions and make the code base more consistent.
3. **Adhere to a desired length of the file**: Analyze file lengths and refactor
   files that are excessively long to adhere to a desired length, improving code
   organization and readability. This may involve splitting files into smaller
   modules or components.
4. **Move code to the correct context**: Review the current placement of code
   and ensure it is logically grouped in the correct context. Move code to more
   appropriate locations within the code base to improve organization and
   maintainability.
5. **Rewrite function/method/components to optimize both code and readability**:
   Identify functions, methods, or components that are overly complex or
   inefficient and rewrite them to optimize both code performance and
   readability. This may involve simplifying logic, eliminating redundancy, or
   improving algorithm efficiency.
6. **Removal of dead code**: Identify and remove any dead or unreachable code,
   including unused variables, functions, or components. This helps to
   streamline the code base, reduce clutter, and improve overall code
   maintainability.
7. **Eliminate unnecessary dependencies**: Review the existing dependencies and
   identify any that can be replaced with native alternatives provided by the
   language or framework being used. By leveraging native functionality, we can
   reduce external dependencies, simplify the code base, and potentially improve
   performance and compatibility.
8. **Keep dependencies up to date**: Regularly review and update dependencies to
   ensure that the project is using the latest stable versions. This involves
   monitoring changelogs, security advisories, and compatibility issues, and
   upgrading dependencies as needed to take advantage of new features, bug
   fixes, and security patches.

**Acceptance criteria**

1. The relevant code undergoes a comprehensive review to identify areas for
   refactoring based on the proposed solutions.
2. Refactored code follows established coding standards and naming conventions.
3. Refactored code is logically organized and easy to understand for other
   developers.
4. Refactored code demonstrates improved readability, maintainability, and
   adherence to best practices.
5. The length of files adheres to the desired standard, with any excessively
   long files being appropriately refactored.
6. Refactored code is successfully integrated into the existing code base
   without introducing regressions or breaking existing functionality.
7. Developers involved in the refactoring process provide feedback on the
   effectiveness of the changes and suggest further improvements if necessary.
8. Dead code is identified and removed from the code base, reducing clutter and
   improving code maintainability.
9. Unnecessary dependencies are identified and replaced with native alternatives
   where applicable, reducing external dependencies and simplifying the code
   base.
10. Dependencies are regularly reviewed and updated to ensure that the project
    is using the latest stable versions, incorporating new features, bug fixes,
    and security patches.

This issue aims to address the identified areas for refactoring in order to
enhance the overall quality and maintainability of the code base.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Better frontend developer experience</title>
      <link>https://phun-ky.net/2024/02/09/better-frontend-developer-experience</link>
      <guid isPermaLink="true">https://phun-ky.net/2024/02/09/better-frontend-developer-experience</guid>
      <pubDate>Fri, 09 Feb 2024 00:00:00 GMT</pubDate>
      <category>Programming</category>
      <category>developer</category>
      <category>experience</category>
      <category>programming</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Over my 26 years of programming, developing applications, snippets, servers, APIs etc, I have been through a lot of different coding setups, editors, environments and so on. To sum up parts of my experience, I am attempting to disclose to you how you can have the best frontend developer experience.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;However, I am &lt;em class=&quot;ph&quot;&gt;not&lt;/em&gt; going to tell you how to set up your editor directly. Every developer has a different opinion on which extension, theme, setting etc that is best, my self included.&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;This is not 100% objective, but formed from my experience, and what works for me. I am not trying to persuade you to use or do something that works great for &lt;em class=&quot;ph&quot;&gt;me&lt;/em&gt;. &lt;abbr class=&quot;ph&quot; title=&quot;Your Mileage May Vary&quot;&gt;YMMV&lt;/abbr&gt; ( &lt;a class=&quot;ph&quot; href=&quot;https://www.oxfordlearnersdictionaries.com/us/definition/english/ymmv&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Your Mileage May Vary&lt;/a&gt; )&lt;/p&gt;&lt;/div&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#standardize&quot;&gt;Standardize&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#semantic-versioning&quot;&gt;Semantic versioning&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#commits&quot;&gt;Commits&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#commitizen&quot;&gt;Commitizen&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#linting&quot;&gt;Linting&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#functions&quot;&gt;Functions&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#naming&quot;&gt;Naming&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#return-early&quot;&gt;Return early&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#nested-ternary-operators&quot;&gt;Nested ternary operators&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#jsx&quot;&gt;JSX&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#imports&quot;&gt;Imports&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#aliasing&quot;&gt;Aliasing&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#sorting-and-grouping-of-imports&quot;&gt;Sorting and grouping of imports&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#nomenclature&quot;&gt;Nomenclature&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#folder-structure&quot;&gt;Folder structure&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#applications&quot;&gt;Applications&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#public&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;public&quot;&gt;public&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#scripts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;scripts&quot;&gt;scripts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcassets&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets&quot;&gt;src/assets&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srccomponents&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/components&quot;&gt;src/components&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcconfig&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/config&quot;&gt;src/config&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srccontexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/contexts&quot;&gt;src/contexts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcfeatures&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/features&quot;&gt;src/features&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcservices&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/services&quot;&gt;src/services&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclib&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib&quot;&gt;src/lib&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcpages&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages&quot;&gt;src/pages&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcstyles&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/styles&quot;&gt;src/styles&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcstores&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/stores&quot;&gt;src/stores&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srctest&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/test&quot;&gt;src/test&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srctypes&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/types&quot;&gt;src/types&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcutils&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/utils&quot;&gt;src/utils&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#automate&quot;&gt;Automate&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#changelog&quot;&gt;Changelog&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#releases&quot;&gt;Releases&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#cicd&quot;&gt;CI/CD&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#extrapolate&quot;&gt;Extrapolate&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#documentation-generation&quot;&gt;Documentation generation&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#minimize&quot;&gt;Minimize&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#reduce-code&quot;&gt;Reduce code&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#smaller-repositories&quot;&gt;Smaller repositories&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#reduce-dependencies&quot;&gt;Reduce dependencies&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#reduce-builds&quot;&gt;Reduce builds&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#conclusion&quot;&gt;Conclusion&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;standardize&quot; class=&quot;ph&quot;&gt;Standardize&lt;a class=&quot;ph heading-link&quot; href=&quot;#standardize&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;I love standards, especially standards that promotes effecient workflows, clean code and helps both the individual programmers and cooperating teams when developing applications. These are the standards I found to give me the best frontend developer experience:&lt;/p&gt;&lt;h3 id=&quot;semantic-versioning&quot; class=&quot;ph&quot;&gt;Semantic versioning&lt;a class=&quot;ph heading-link&quot; href=&quot;#semantic-versioning&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;As described on the &lt;a class=&quot;ph&quot; href=&quot;https://semver.org/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Semantic Versioning website&lt;/a&gt;, semantic versioning (semver) consists of three numbers: MAJOR, MINOR, and PATCH. Each number is incremented in different circumstances:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;the &lt;em class=&quot;ph&quot;&gt;MAJOR&lt;/em&gt; version when we make incompatible API changes (read: breaking changes),&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;the &lt;em class=&quot;ph&quot;&gt;MINOR&lt;/em&gt; version when we add functionality in a backward-compatible manner, and&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;the &lt;em class=&quot;ph&quot;&gt;PATCH&lt;/em&gt; version when we make backward-compatible bug fixes.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Using semver helps a great deal for developers, and non-developers to understand what has changed, since the changed number in the version reflects what the actual change consists of.&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Is it something that I need to deal with? Do I need to make changes in my own code for the change to work on my end?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Is it a new feature that I could check out?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Is it a bug fix, documentation update, or any non-important change?&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;commits&quot; class=&quot;ph&quot;&gt;Commits&lt;a class=&quot;ph heading-link&quot; href=&quot;#commits&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;The perfect commit message should have certain qualities:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;It should be understandable even by seeing only the header of the message&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;It should be to the point, and not too detailed.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;It should be unambiguous.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Use the imperative, present tense. It is easier to read and scan quickly:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;txt&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-txt&quot; language=&quot;txt&quot;&gt;&lt;code class=&quot;ph txt language-txt&quot;&gt;Right: Add feature to alert admin for new user registration
Wrong: Added feature ... (past tense)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The reason behind using present tense is that the commit message is answering the question &amp;quot;What will happen after the commit is applied?&amp;quot;. If we think of a commit as an independent patch, it does not matter if it applied in the past. What matters is that this patch is always supposed to make that particular change when it is applied.&lt;/p&gt;&lt;/blockquote&gt;&lt;h4 id=&quot;commitizen&quot; class=&quot;ph&quot;&gt;Commitizen&lt;a class=&quot;ph heading-link&quot; href=&quot;#commitizen&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/commitizen/cz-cli&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Commitizen&lt;/a&gt; helps you write better commit messages!&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ git log --pretty=format:'%h %s'.
3332279 style: 💄 Lint.
60f0ec8 fix: 🐛 Fix sticky header issues.
9f5fdcd feat: 🎸 Add read time.
55bf3ad feat: 🎸 Add copy code button and language string to code blocks.
813df4a refactor: 💡 Some adjustments.
79549ab refactor: 💡 Adjust code blocks.
6876cec fix: 🐛 Add label attribute to heading link.
8bf68c6 refactor: 💡 Comment out copy / language feat for prism.
9f97ebf feat: 🎸 Make header sticky in desktop mode.
95ceac0 style: 💄 Tune lint rules for markdown.
d7c3a13 feat: 🎸 Add `print.css`.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Install it:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;sudo npm install -g commitizen git-cz
commitizen init git-cz
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Update &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt;:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  …
  &amp;quot;scripts&amp;quot;: {
    …
    &amp;quot;commit&amp;quot;: &amp;quot;npx git-cz&amp;quot;,
    …
  },
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After you have staged your files for commit, run &lt;code class=&quot;ph language-&quot; content=&quot;npm run commit&quot;&gt;npm run commit&lt;/code&gt; or &lt;code class=&quot;ph language-&quot; content=&quot;yarn commit&quot;&gt;yarn commit&lt;/code&gt; in your project root folder. You will get an interactive guide that helps you with your commits:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm run commit

&amp;gt; phun-ky.github.io@1.0.0 commit
&amp;gt; git cz

? Select the type of change that you're committing: (Use arrow keys or type to search)
❯ 💍  test:       Adding missing tests
  🎸  feat:       A new feature
  🐛  fix:        A bug fix
  🤖  chore:      Build process or auxiliary tool changes
  ✏️  docs:       Documentation only changes
  💡  refactor:   A code change that neither fixes a bug or adds a feature
  💄  style:      Markup, white-space, formatting, missing semi-colons...
(Move up and down to reveal more choices)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;When you have chosen the type of commit you are commiting, press enter, and you can now enter a commit header:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;
? Write a short, imperative mood description of the change:
  [-------------------------------------------------------------] 54 chars left
   style: lint `src/styles/index.styl`
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After you have pressed enter, you can now enter an optional commit body, that has more space to descrive the change the commit adds:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;? Provide a longer description of the change:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After that, you will get an option to indicate if the change is a breaking change or not. If the change is NOT a breaking change, leave this field empty:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;? List any breaking changes
  BREAKING CHANGE:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;You now have an option to add an issue ID for tracking the commit to a relevant task. This works for Jira (if you have the service connection) and github issues.&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The guide suggests an issue ID format that works for github, i.e. #123, if you want it to work with Jira, you need to ommit the hash:&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;PRJ-123&quot;&gt;PRJ-123&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;? Issues this commit closes, e.g #123:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;When pressing enter, the interactive tool will stop, and output the commit output:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;[main 8f82e81] style: 💄 lint
 1 file changed, 1 insertion(+)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;When you now do a &lt;code class=&quot;ph language-&quot; content=&quot;git log&quot;&gt;git log&lt;/code&gt;, you'll see the change:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ git log
commit 8f82e8189e614332b6c80d2ab8291aa59325b130 (HEAD -&amp;gt; main)
Author: Alexander Vassbotn Røyne-Helgesen &amp;lt;alexander+github.com@phun-ky.net&amp;gt;
Date:   Fri Jan 5 15:11:19 2024 +0100

    style: 💄 lint `src/styles/index.styl`
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;If you entered a description and/or a issue ID, it could look like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ git log
commit 8f82e8189e614332b6c80d2ab8291aa59325b130 (HEAD -&amp;gt; main)
Author: Alexander Vassbotn Røyne-Helgesen &amp;lt;alexander+github.com@phun-ky.net&amp;gt;
Date:   Fri Jan 5 15:11:19 2024 +0100

    style: 💄 lint `src/styles/index.styl`

    For funsies

    ✅ Closes: #123

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;linting&quot; class=&quot;ph&quot;&gt;Linting&lt;a class=&quot;ph heading-link&quot; href=&quot;#linting&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;I think that linting, when the concept arrived, was for me one of the biggest features for me as a developer. It helped a great deal for project code that was worked on in a team, conforming to one set of format. It also made the code look and feel &lt;em class=&quot;ph&quot;&gt;cleaner&lt;/em&gt;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;My favourite setup for now, is to use &lt;code class=&quot;ph language-&quot; content=&quot;eslint&quot;&gt;eslint&lt;/code&gt; in combination with &lt;code class=&quot;ph language-&quot; content=&quot;prettier&quot;&gt;prettier&lt;/code&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;prettier&quot;&gt;prettier&lt;/code&gt; + &lt;code class=&quot;ph language-&quot; content=&quot;eslint&quot;&gt;eslint&lt;/code&gt; = &lt;code class=&quot;ph language-&quot; content=&quot;prettier-eslint&quot;&gt;prettier-eslint&lt;/code&gt; ♥&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;# Installs required deps
$ npm i -D eslint eslint-config-prettier eslint-plugin-prettier prettier prettier-eslint
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Preferred plugins:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;# Installs preferred plugins
$ npm i -D eslint-config-airbnb eslint-config-prettier eslint-plugin-compat eslint-plugin-import eslint-plugin-jest eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;For TypeScript projects, add these as well:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;# Installs required deps
$ npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;My standard &lt;code class=&quot;ph language-&quot; content=&quot;.eslintrc.json&quot;&gt;.eslintrc.json&lt;/code&gt;:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;env&amp;quot;: {
    &amp;quot;browser&amp;quot;: true,
    &amp;quot;es2021&amp;quot;: true
  },
  &amp;quot;extends&amp;quot;: [&amp;quot;eslint:recommended&amp;quot;, &amp;quot;prettier&amp;quot;],
  &amp;quot;root&amp;quot;: true,
  &amp;quot;overrides&amp;quot;: [],
  &amp;quot;parserOptions&amp;quot;: {
    &amp;quot;ecmaVersion&amp;quot;: &amp;quot;latest&amp;quot;,
    &amp;quot;sourceType&amp;quot;: &amp;quot;module&amp;quot;,
    &amp;quot;ecmaFeatures&amp;quot;: {
      &amp;quot;classes&amp;quot;: true
    }
  },
  &amp;quot;rules&amp;quot;: {
    &amp;quot;comma-dangle&amp;quot;: 1,
    &amp;quot;quotes&amp;quot;: [1, &amp;quot;single&amp;quot;],
    &amp;quot;no-undef&amp;quot;: 2,
    &amp;quot;prefer-const&amp;quot;: &amp;quot;error&amp;quot;,
    &amp;quot;one-var&amp;quot;: [&amp;quot;error&amp;quot;, &amp;quot;never&amp;quot;],
    &amp;quot;padded-blocks&amp;quot;: [&amp;quot;error&amp;quot;, &amp;quot;never&amp;quot;],
    &amp;quot;padding-line-between-statements&amp;quot;: [
      &amp;quot;error&amp;quot;,
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;return&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;export&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;export&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;export&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;export&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;*&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;if&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;if&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;*&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;const&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;*&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;const&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;let&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;*&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;let&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;var&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;*&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;var&amp;quot; },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;const&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;let&amp;quot;
      },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;never&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;const&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;const&amp;quot;
      },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;never&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;let&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;let&amp;quot;
      },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;never&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;var&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;var&amp;quot;
      },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;const&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;let&amp;quot;
      },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;const&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;var&amp;quot;
      },
      {
        &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;,
        &amp;quot;prev&amp;quot;: &amp;quot;let&amp;quot;,
        &amp;quot;next&amp;quot;: &amp;quot;var&amp;quot;
      },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;*&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;cjs-import&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;always&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;cjs-import&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;*&amp;quot; },
      { &amp;quot;blankLine&amp;quot;: &amp;quot;never&amp;quot;, &amp;quot;prev&amp;quot;: &amp;quot;cjs-import&amp;quot;, &amp;quot;next&amp;quot;: &amp;quot;cjs-import&amp;quot; }
    ],
    &amp;quot;global-strict&amp;quot;: 0,
    &amp;quot;indent&amp;quot;: [1, 2, { &amp;quot;SwitchCase&amp;quot;: 1 }],
    &amp;quot;no-extra-semi&amp;quot;: 1,
    &amp;quot;no-underscore-dangle&amp;quot;: 0,
    &amp;quot;no-console&amp;quot;: 1,
    &amp;quot;no-unused-vars&amp;quot;: 1,
    &amp;quot;no-trailing-spaces&amp;quot;: [1, { &amp;quot;skipBlankLines&amp;quot;: true }],
    &amp;quot;no-unreachable&amp;quot;: 1,
    &amp;quot;no-alert&amp;quot;: 1,
    &amp;quot;semi&amp;quot;: 1
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;My standard &lt;code class=&quot;ph language-&quot; content=&quot;.prettierrc&quot;&gt;.prettierrc&lt;/code&gt;:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;singleQuote&amp;quot;: true,
  &amp;quot;jsxBracketSameLine&amp;quot;: true,
  &amp;quot;tabWidth&amp;quot;: 2,
  &amp;quot;printWidth&amp;quot;: 80,
  &amp;quot;proseWrap&amp;quot;: &amp;quot;always&amp;quot;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Why &lt;code class=&quot;ph language-&quot; content=&quot;80&quot;&gt;80&lt;/code&gt; as &lt;code class=&quot;ph language-&quot; content=&quot;printWidth&quot;&gt;printWidth&lt;/code&gt; when most of the devs use widescreens?&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The reason why prettier uses 80 columns to format code is because this is the best heuristic we know. It's not perfect as you have seen but one interesting property is that it almost never looks terrible and most of the time it look reasonable.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://github.com/prettier/prettier/issues/4298#issuecomment-380680999&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com/prettier/prettier/issues/4298#issuecomment-380680999&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;And&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The longer the line, the bigger the diff and the harder it is to track what has been chanced&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://github.com/prettier/prettier/issues/4298#issuecomment-380891266&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com/prettier/prettier/issues/4298#issuecomment-380891266&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;My standard &lt;code class=&quot;ph language-&quot; content=&quot;.stylintrc&quot;&gt;.stylintrc&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;blocks&amp;quot;: false,
  &amp;quot;brackets&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;colons&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;colors&amp;quot;: &amp;quot;always&amp;quot;,
  &amp;quot;commaSpace&amp;quot;: false,
  &amp;quot;commentSpace&amp;quot;: false,
  &amp;quot;cssLiteral&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;depthLimit&amp;quot;: false,
  &amp;quot;duplicates&amp;quot;: false,
  &amp;quot;efficient&amp;quot;: &amp;quot;always&amp;quot;,
  &amp;quot;extendPref&amp;quot;: false,
  &amp;quot;globalDupe&amp;quot;: false,
  &amp;quot;indentPref&amp;quot;: 2,
  &amp;quot;leadingZero&amp;quot;: false,
  &amp;quot;maxErrors&amp;quot;: false,
  &amp;quot;maxWarnings&amp;quot;: false,
  &amp;quot;mixed&amp;quot;: false,
  &amp;quot;namingConvention&amp;quot;: false,
  &amp;quot;namingConventionStrict&amp;quot;: false,
  &amp;quot;noImportant&amp;quot;: false,
  &amp;quot;parenSpace&amp;quot;: false,
  &amp;quot;placeholders&amp;quot;: false,
  &amp;quot;prefixVarsWithDollar&amp;quot;: &amp;quot;always&amp;quot;,
  &amp;quot;quotePref&amp;quot;: false,
  &amp;quot;semicolons&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;stackedProperties&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;trailingWhitespace&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;universal&amp;quot;: false,
  &amp;quot;valid&amp;quot;: true,
  &amp;quot;zeroUnits&amp;quot;: &amp;quot;never&amp;quot;,
  &amp;quot;zIndexNormalize&amp;quot;: false
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;functions&quot; class=&quot;ph&quot;&gt;Functions&lt;a class=&quot;ph heading-link&quot; href=&quot;#functions&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;We all have our preferences when it comes to functions, these are some of mine.&lt;/p&gt;&lt;h4 id=&quot;naming&quot; class=&quot;ph&quot;&gt;Naming&lt;a class=&quot;ph heading-link&quot; href=&quot;#naming&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;I prefer readability, so I would like to read the function name, and know exactly what it does. When it comes to boolean functions or methods, I like to read them as the state they want to represent.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;// Don't
export const versionIsExpired = (…): boolean =&amp;gt; …;
// Do
export const isVersionExpired = (…): boolean =&amp;gt; …;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;// Don't
export const checkForApples = (…): boolean =&amp;gt; …;
// Do
export const hasApples = (…): boolean =&amp;gt; …;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;return-early&quot; class=&quot;ph&quot;&gt;Return early&lt;a class=&quot;ph heading-link&quot; href=&quot;#return-early&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;If you have conditional returns in a function or method, I love to pull out early, and it makes it, for me, easier to follow the flow. Especially if you calculations that is not required to do before escaping.&lt;/p&gt;&lt;figure class=&quot;stance ph dont&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;ts&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-ts&quot; language=&quot;ts&quot;&gt;&lt;code class=&quot;ph ts language-ts&quot;&gt;export const myFunction = (var) =&amp;gt; {

  if(var){
    return [1,2,3,4,5];
  } else {
    return [];
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Do not escape at the end of a conditional&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;stance ph do&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;ts&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-ts&quot; language=&quot;ts&quot;&gt;&lt;code class=&quot;ph ts language-ts&quot;&gt;export const myFunction = (var) =&amp;gt; {

  if(!var) return [];

  return [1,2,3,4,5];
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Escape as early as possible&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;nested-ternary-operators&quot; class=&quot;ph&quot;&gt;Nested ternary operators&lt;a class=&quot;ph heading-link&quot; href=&quot;#nested-ternary-operators&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Ternary operators are great, but use it with caution, because it can lead to horrible readability.&lt;/p&gt;&lt;figure class=&quot;stance ph dont&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;ts&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-ts&quot; language=&quot;ts&quot;&gt;&lt;code class=&quot;ph ts language-ts&quot;&gt;const a = b === null ? false : b === 2 ? false : true;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Do not use nested ternary operators&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;stance ph do&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;ts&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-ts&quot; language=&quot;ts&quot;&gt;&lt;code class=&quot;ph ts language-ts&quot;&gt;let a = false;

if (b === 2) {
  a = true;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Consider using if statements instead&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;jsx&quot; class=&quot;ph&quot;&gt;JSX&lt;a class=&quot;ph heading-link&quot; href=&quot;#jsx&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Please, do not use any logix in jsx! It promotes poor readability, and increases the number of lines in the file.&lt;/p&gt;&lt;figure class=&quot;stance ph dont&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;jsx&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-jsx&quot; language=&quot;jsx&quot;&gt;&lt;code class=&quot;ph jsx language-jsx&quot;&gt;export const MyComponent = ({isCool}) =&amp;gt; {

  return (
    {isCool ? &amp;lt;MyCoolComponent/&amp;gt; : &amp;lt;MyNotSoCoolComponent/&amp;gt;}
  )
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Do not use logic in jsx&lt;/figcaption&gt;&lt;/figure&gt;&lt;figure class=&quot;stance ph do&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;jsx&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-jsx&quot; language=&quot;jsx&quot;&gt;&lt;code class=&quot;ph jsx language-jsx&quot;&gt;export const MyComponent = ({ isCool }) =&amp;gt; {
  if (isCool) return &amp;lt;MyCoolComponent /&amp;gt;;

  return &amp;lt;MyNotSoCoolComponent /&amp;gt;;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Consider to create a new component that handles the logic, or return early instead&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;imports&quot; class=&quot;ph&quot;&gt;Imports&lt;a class=&quot;ph heading-link&quot; href=&quot;#imports&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4 id=&quot;aliasing&quot; class=&quot;ph&quot;&gt;Aliasing&lt;a class=&quot;ph heading-link&quot; href=&quot;#aliasing&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;If you have a large frontend applications, imports could be a huge mess, with long imports like:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import React from 'react';

import { Button } from '../../../../../../components/actions/Button';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;If you use TypeScript, you can add aliases in the &lt;code class=&quot;ph language-&quot; content=&quot;tsconfig.json&quot;&gt;tsconfig.json&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;compilerOptions&amp;quot;: {
    …
    &amp;quot;paths&amp;quot;: {
      &amp;quot;components/*&amp;quot;: [&amp;quot;./src/components/*&amp;quot;],
      …
    }
  },
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And for webpack:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;js&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-js&quot; language=&quot;js&quot;&gt;&lt;code class=&quot;ph js language-js&quot;&gt;{
  …
  alias: {
    components: path.resolve(__dirname, 'src/components'),
    …
  },
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;So that the import would look like this instead:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import React from 'react';

import { Button } from 'components/actions/Button';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;sorting-and-grouping-of-imports&quot; class=&quot;ph&quot;&gt;Sorting and grouping of imports&lt;a class=&quot;ph heading-link&quot; href=&quot;#sorting-and-grouping-of-imports&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;To be able to group imports, and to make the hierarchy clearer, you can use the &lt;code class=&quot;ph language-&quot; content=&quot;import/order&quot;&gt;import/order&lt;/code&gt; rule with ESLint:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  …
  rules: {
    'import/order': [
      'error',
      {
        groups: [
          'external',
          'builtin',
          'internal',
          'parent',
          'sibling',
          'index'
        ],
        pathGroups: [
          { pattern: 'components', group: 'internal' },
          { pattern: 'hooks', group: 'internal' },
          { pattern: 'redux', group: 'internal' },
          { pattern: 'utils', group: 'internal' },
          …
        ],
        pathGroupsExcludedImportTypes: ['internal'],
        alphabetize: {
          order: 'asc',
          caseInsensitive: true
        },
        'newlines-between': 'always'
      }
    ],
  }
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Which would make this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;//
import { useState } from 'react';
import { useHistory } from 'react-router-dom';
import {
  Heading2,
  Heading3,
  Paragraph,
  Label,
} from '@designssystem/typography';

import {
  Reference,
  SupplementProduct,
  ValidableElement,
  GenericParameterAssignment,
} from '../../../../models/index';
import { useI18N } from '../../../../hooks/useI18N';
import { saveFareProductTree } from '../../../../bucket/actions';
import { fareFrameIdFromOrganisation } from '../../../../utils/index';
import { LoadingStatus } from '../../../../components/feedback/Loading';
import OverlayLoader from '../../../../components/feedback/OverlayLoader';
import { useAppDispatch } from 'hooks/useAppDispatch';
import SimpleContentLoader from '../../../../components/feedback/SimpleContentLoader';
import FareTypeInfo from './components/FareTypeInfo';
import ConditionSummaryInfo from './components/ConditionSummaryInfo';
import AOPUPInfo from './components/AOPUPInfo';
import { useFetchFareTablesWithVersionsQuery } from '../../../../redux/features/products/apis/fare-table-api';
import SolidLine from '../../../../components/DesignSystemWrappers/components/SolidLine';
import './style.scss';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;turn into this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;//
import {
  Heading2,
  Heading3,
  Paragraph,
  Label,
} from '@designssystem/typography';
import { useState } from 'react';
import { useHistory } from 'react-router-dom';

import SolidLine from 'components/DesignSystemWrappers/components/SolidLine';
import { LoadingStatus } from 'components/feedback/Loading';
import OverlayLoader from 'components/feedback/OverlayLoader';
import SimpleContentLoader from 'components/feedback/SimpleContentLoader';
import { useAppDispatch } from 'hooks/useAppDispatch';
import { useI18N } from 'hooks/useI18N';
import {
  Reference,
  SupplementProduct,
  ValidableElement,
  GenericParameterAssignment,
} from 'models/index';
import { useFetchFareTablesWithVersionsQuery } from 'redux/features/products/apis/fare-table-api';
import { fareFrameIdFromOrganisation } from 'utils/index';

import { saveFareProductTree } from '../../../../bucket/actions/save-fare-product-tree';

import AOPUPInfo from './components/AOPUPInfo';
import ConditionSummaryInfo from './components/ConditionSummaryInfo';
import FareTypeInfo from './components/FareTypeInfo';

import './style.scss';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;nomenclature&quot; class=&quot;ph&quot;&gt;Nomenclature&lt;a class=&quot;ph heading-link&quot; href=&quot;#nomenclature&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Having a good naming convention is key in making logical sense of the code, and makes it easier to grasp the concept of the code and to get a better overview over what the code does.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Please, for the love of &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Cthulhu&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Cthulhu&lt;/a&gt;, do not have your naming convention like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-frontend
 ├── …
 ├── 📁 src
 │ └── 📁 components
 │   └── 📁 MyCoolComponent
 │     └── 📄 MyCoolComponent.js
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;The import would then look like:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;//
import MyCoolComponent from 'components/MyCoolComponent/MyCoolComponent';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Using an unecessary amount of bytes. It is better to do this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-frontend
 ├── …
 ├── 📁 src
 │ └── 📁 components
 │   └── 📁 MyCoolComponent
 │     └── 📄 index.js
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;The import would then look like:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import MyCoolComponent from 'components/MyCoolComponent';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;It's cleaner, shorter and saves bytes!&lt;/p&gt;&lt;h3 id=&quot;folder-structure&quot; class=&quot;ph&quot;&gt;Folder structure&lt;a class=&quot;ph heading-link&quot; href=&quot;#folder-structure&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Establishing a well-organized and sensible folder structure is one of the most crucial and demanding aspects of managing a large-scale application. Before contemplating the division of the codebase into multiple applications using micro frontends, it is advisable to take certain steps to enhance the project-level architecture. This approach can facilitate a smoother transition if such a path is ever considered.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The objective is to implement a form of modularization that enhances the comprehensibility of the codebase by defining clear boundaries between features. This strategy aims to minimize code coupling and reduce side effects for improved maintainability.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;This is how I recommend to set it up, based on what I feel works best for me. &lt;abbr class=&quot;ph&quot; title=&quot;Your Mileage May Vary&quot;&gt;YMMV&lt;/abbr&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-frontend
 ├── 📁 scripts
 ├── 📁 src
 │ ├── 📁 assets
 │ ├── 📁 components
 │ │ └── 📁 feedback
 │ │   ├── 📁 Notification
 │ │   │ ├── 📁 components
 │ │   │ ├── 📁 helpers
 │ │   │ ├── 📁 styles
 │ │   │ ├── 📁 test
 │ │   │ ├── 📁 types
 │ │   │ └── 📁 utils
 │ │   │ └── 📄 index.js
 │ │   └── 📁 Toast
 │ │     ├── 📁 components
 │ │     ├── 📁 helpers
 │ │     ├── 📁 styles
 │ │     ├── 📁 test
 │ │     ├── 📁 types
 │ │     └── 📁 utils
 │ │     └── 📄 index.js
 │ ├── 📁 features
 │ │ ├── 📁 profile
 │ │ │ ├── 📁 components
 │ │ │ ├── 📁 config
 │ │ │ ├── 📁 contexts
 │ │ │ ├── 📁 helpers
 │ │ │ ├── 📁 models
 │ │ │ ├── 📁 services
 │ │ │ ├── 📁 stores
 │ │ │ ├── 📁 styles
 │ │ │ ├── 📁 test
 │ │ │ ├── 📁 types
 │ │ │ ├── 📁 utils
 │ │ │ └── 📄 index.js
 │ │ └── 📁 map
 │ │   ├── 📁 components
 │ │   ├── 📁 config
 │ │   ├── 📁 contexts
 │ │   ├── 📁 helpers
 │ │   ├── 📁 models
 │ │   ├── 📁 services
 │ │   ├── 📁 stores
 │ │   ├── 📁 styles
 │ │   ├── 📁 test
 │ │   ├── 📁 types
 │ │   ├── 📁 utils
 │ │   └── 📄 index.js
 │ ├── 📁 config
 │ ├── 📁 contexts
 │ ├── 📁 lib
 │ ├── 📁 models
 │ ├── 📁 pages
 │ ├── 📁 services
 │ ├── 📁 stores
 │ ├── 📁 styles
 │ ├── 📁 test
 │ ├── 📁 types
 │ ├── 📁 utils
 │ └── 📄 main.js
 └── 📁 public
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;applications&quot; class=&quot;ph&quot;&gt;Applications&lt;a class=&quot;ph heading-link&quot; href=&quot;#applications&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;h5 id=&quot;javascript-web-application&quot; class=&quot;ph&quot;&gt;JavaScript Web Application&lt;a class=&quot;ph heading-link&quot; href=&quot;#javascript-web-application&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h5&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-frontend
 ├── 📁 scripts
 ├── 📁 src
 │ ├── 📁 assets
 │ ├── 📁 components
 │ ├── 📁 config
 │ ├── 📁 features
 │ ├── 📁 lib
 │ ├── 📁 pages
 │ ├── 📁 services
 │ ├── 📁 styles
 │ ├── 📁 test
 │ ├── 📁 utils
 │ ├── 📁 …
 │ └── 📄 main.js
 ├── 📁 public
 └── 📄 package.json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h5 id=&quot;typescript-web-application&quot; class=&quot;ph&quot;&gt;TypeScript Web Application&lt;a class=&quot;ph heading-link&quot; href=&quot;#typescript-web-application&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h5&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-ts-frontend
 ├── 📁 scripts
 ├── 📁 src
 │ ├── 📁 assets
 │ ├── 📁 components
 │ ├── 📁 config
 │ ├── 📁 features
 │ ├── 📁 lib
 │ ├── 📁 pages
 │ ├── 📁 services
 │ ├── 📁 styles
 │ ├── 📁 types
 │ ├── 📁 test
 │ ├── 📁 utils
 │ ├── 📁 …
 │ └── 📄 main.ts
 ├── 📁 public
 └── 📄 package.json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h5 id=&quot;react-web-application&quot; class=&quot;ph&quot;&gt;React Web Application&lt;a class=&quot;ph heading-link&quot; href=&quot;#react-web-application&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h5&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-react-frontend
 ├── 📁 scripts
 ├── 📁 src
 │ ├── 📁 assets
 │ ├── 📁 components
 │ ├── 📁 config
 │ ├── 📁 contexts
 │ ├── 📁 features
 │ ├── 📁 lib
 │ ├── 📁 pages
 │ ├── 📁 services
 │ ├── 📁 styles
 │ ├── 📁 stores
 │ ├── 📁 types
 │ ├── 📁 test
 │ ├── 📁 utils
 │ ├── 📁 …
 │ └── 📄 App.tsx
 │ └── 📄 main.ts
 ├── 📁 public
 └── 📄 package.json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h5 id=&quot;nodejs-application&quot; class=&quot;ph&quot;&gt;NodeJS Application&lt;a class=&quot;ph heading-link&quot; href=&quot;#nodejs-application&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h5&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-react-frontend
 ├── 📁 scripts
 ├── 📁 src
 │ ├── 📁 assets
 │ ├── 📁 config
 │ ├── 📁 lib
 │ ├── 📁 middlewares
 │ ├── 📁 router
 │ ├── 📁 types
 │ ├── 📁 test
 │ ├── 📁 utils
 │ └── 📄 index.ts
 └── 📄 package.json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;public&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;public&quot;&gt;public&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#public&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;All public files, but most likely, only &lt;code class=&quot;ph language-&quot; content=&quot;index.html&quot;&gt;index.html&lt;/code&gt; or any public static file.&lt;/p&gt;&lt;h4 id=&quot;scripts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;scripts&quot;&gt;scripts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#scripts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Put helper scripts for inhouse usage/auxilliary tools here.&lt;/p&gt;&lt;h4 id=&quot;srcassets&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets&quot;&gt;src/assets&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcassets&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;All your static assets goes here. This includes:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;prebuilt libs in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;images in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/img&quot;&gt;src/assets/img&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;icons in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/icons&quot;&gt;src/assets/icons&lt;/code&gt; (or &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/img/icons&quot;&gt;src/assets/img/icons&lt;/code&gt;)&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;prebuilt stylesheets (&lt;code class=&quot;ph language-&quot; content=&quot;*.css&quot;&gt;*.css&lt;/code&gt;) in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/css&quot;&gt;src/assets/css&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;fonts in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/fonts&quot;&gt;src/assets/fonts&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;meta stuff like &lt;code class=&quot;ph language-&quot; content=&quot;browserconfig.xml&quot;&gt;browserconfig.xml&lt;/code&gt;/&lt;code class=&quot;ph language-&quot; content=&quot;site.webmanifest&quot;&gt;site.webmanifest&lt;/code&gt; in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/meta&quot;&gt;src/assets/meta&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-frontend
 ├── 📁 src
 │ ├── 📁 assets
 │ │ ├── 📁 css
 │ │ ├── 📁 img
 │ │ ├── 📁 js
 │ │ └── …
 │ └── …
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srccomponents&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/components&quot;&gt;src/components&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srccomponents&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Shareable components goes here.&lt;/p&gt;&lt;h5 id=&quot;grouping&quot; class=&quot;ph&quot;&gt;Grouping&lt;a class=&quot;ph heading-link&quot; href=&quot;#grouping&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h5&gt;&lt;p class=&quot;ph&quot;&gt;These components should be grouped by the type of component, for example:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;link, menus etc goes into &lt;code class=&quot;ph language-&quot; content=&quot;src/components/navigation&quot;&gt;src/components/navigation&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;header, footer, main, intro goes into &lt;code class=&quot;ph language-&quot; content=&quot;src/components/page-section&quot;&gt;src/components/page-section&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;input fields, form stuff goes into &lt;code class=&quot;ph language-&quot; content=&quot;src/components/form&quot;&gt;src/components/form&lt;/code&gt; or &lt;code class=&quot;ph language-&quot; content=&quot;src/components/input-elements&quot;&gt;src/components/input-elements&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;tables, data-tables, comparison tables goes into &lt;code class=&quot;ph language-&quot; content=&quot;src/components/tables&quot;&gt;src/components/tables&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;errors, loading, notification, toasts goes into &lt;code class=&quot;ph language-&quot; content=&quot;src/components/feedback&quot;&gt;src/components/feedback&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-frontend
 ├── 📁 src
 │ ├── …
 │ ├── 📁 components
 │ │ ├── 📁 communication
 │ │ ├── 📁 content
 │ │ ├── 📁 meta
 │ │ ├── 📁 navigation
 │ │ ├── 📁 page-sections
 │ │ └── …
 │ └── …
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The names of the groups are meant as a guide, not set in stone. You are free to group your components depending on your setup and nomenclature.&lt;/p&gt;&lt;/div&gt;&lt;h5 id=&quot;hierarchy&quot; class=&quot;ph&quot;&gt;Hierarchy&lt;a class=&quot;ph heading-link&quot; href=&quot;#hierarchy&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h5&gt;&lt;p class=&quot;ph&quot;&gt;If a component requires other components &lt;em class=&quot;ph&quot;&gt;only&lt;/em&gt; specific to that component, you should have a child folder named &lt;code class=&quot;ph language-&quot; content=&quot;components&quot;&gt;components&lt;/code&gt;. For example, if you have a component named &lt;code class=&quot;ph language-&quot; content=&quot;Table&quot;&gt;Table&lt;/code&gt; in &lt;code class=&quot;ph language-&quot; content=&quot;src/components/tables/Table&quot;&gt;src/components/tables/Table&lt;/code&gt;, and you want &lt;code class=&quot;ph language-&quot; content=&quot;TableHeader&quot;&gt;TableHeader&lt;/code&gt;, &lt;code class=&quot;ph language-&quot; content=&quot;TableFooter&quot;&gt;TableFooter&lt;/code&gt;, &lt;code class=&quot;ph language-&quot; content=&quot;TableSort&quot;&gt;TableSort&lt;/code&gt; components, put them in &lt;code class=&quot;ph language-&quot; content=&quot;src/components/tables/Table/components/TableHeader/&quot;&gt;src/components/tables/Table/components/TableHeader/&lt;/code&gt; etc.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-react-frontend
 ├── 📁 src
 │ ├── 📁 components
 │ │ ├── 📁 tables
 │ │ │ ├── 📁 Table
 │ │ │ │ ├── 📁 components
 │ │ │ │ │ ├── 📁 TableHeader
 │ │ │ │ │ │ └── 📄 index.tsx
 │ │ │ │ │ └── 📁 TableFooter
 │ │ │ │ │   └── 📄 index.tsx
 │ │ │ │ └── 📄 index.tsx
 │ │ │ └── 📁 …
 │ │ └── 📁 …
 │ └── …
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;However, if you have only one extra component, put it alongside the main component&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-react-frontend
 ├── 📁 src
 │ ├── 📁 components
 │ │ ├── 📁 tables
 │ │ │ ├── 📁 Table
 │ │ │ │ ├── 📄 index.tsx
 │ │ │ │ └── 📄 TableHeader.tsx
 │ │ │ └── 📁 …
 │ │ └── 📁 …
 │ └── …
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;If a &lt;code class=&quot;ph language-&quot; content=&quot;*.tsx/*.jsx&quot;&gt;*.tsx/*.jsx&lt;/code&gt; context, if a component require a set of code that returns different components based on input, it is a helper, and should be in &lt;code class=&quot;ph language-&quot; content=&quot;src/components/tables/Table/helpers/&quot;&gt;src/components/tables/Table/helpers/&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-react-frontend
 ├── 📁 src
 │ ├── 📁 components
 │ │ ├── 📁 tables
 │ │ │ ├── 📁 Table
 │ │ │ │ ├── 📁 helpers
 │ │ │ │ │ └── 📄 tableRowIcon.tsx
 │ │ │ │ └── 📄 index.tsx
 │ │ │ └── 📁 …
 │ │ └── 📁 …
 │ └── …
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Each component can have a set of folders, similar to the &lt;code class=&quot;ph language-&quot; content=&quot;src&quot;&gt;src&lt;/code&gt; setup:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 my-react-frontend
 ├── 📁 src
 │ ├── 📁 components
 │ │ ├── 📁 tables
 │ │ │ ├── 📁 Table
 │ │ │ │ ├── 📁 components
 │ │ │ │ ├── 📁 helpers
 │ │ │ │ ├── 📁 lib
 │ │ │ │ ├── 📁 styles
 │ │ │ │ ├── 📁 types
 │ │ │ │ ├── 📁 utils
 │ │ │ │ └── 📄 index.tsx
 │ │ │ └── 📁 …
 │ │ └── 📁 …
 │ └── …
 └── …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srcconfig&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/config&quot;&gt;src/config&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcconfig&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Any configuration for your application goes here (not test configs or configs that should be in the project root).&lt;/p&gt;&lt;h4 id=&quot;srccontexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/contexts&quot;&gt;src/contexts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srccontexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;If you use a framework that uses contexts, put them here.&lt;/p&gt;&lt;h4 id=&quot;srcfeatures&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/features&quot;&gt;src/features&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcfeatures&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;The majority of the code should be placed in this location. To facilitate smoother maintenance and scalability, our objective is to house the bulk of the application code within the features folder. Each feature folder is intended to encompass domain-specific code related to a particular feature, ensuring organizational clarity.&lt;/p&gt;&lt;h4 id=&quot;srcservices&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/services&quot;&gt;src/services&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcservices&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Shared application services and providers&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Features vs services vs pages vs scenes&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;I've come across several phrases used to describe grouped code, and those groups that works for me is:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Features&lt;/strong&gt;: Describes a feature on a page, that &lt;em class=&quot;ph&quot;&gt;can&lt;/em&gt; be reusable, but is not mandatory to be reusable.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Services&lt;/strong&gt;: A service or group of code that either processes and/or fetches data for shared features/pages/components etc.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Pages&lt;/strong&gt;: Kind of self explanatory, the pages where a router is pointing to, or url is pointing to.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Views&lt;/strong&gt;: A large feature set on a page that can replace larger parts of the page.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Scenes&lt;/strong&gt;:&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;This is a wording I haven't familiarized myself with when it comes to frontend development, And I find the definition of this a bit odd. From what I can tell, it is derived from mobile development, especially iOS development, where a scene is one &amp;quot;view&amp;quot; of the application.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;If a &amp;quot;scene&amp;quot; is a page, then the application/site is the &amp;quot;stage&amp;quot;, and a &amp;quot;scene&amp;quot; has many &amp;quot;props&amp;quot;, If my interpretation of this is correctly. But then again, it's not calling a spade a spade. A page is a page. I more aliken the wording &amp;quot;scene&amp;quot; to &amp;quot;views&amp;quot;, where a page can have many views/scenes.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Remember!&lt;/strong&gt; This is &lt;em class=&quot;ph&quot;&gt;my&lt;/em&gt; take on this.&lt;/p&gt;&lt;/div&gt;&lt;h4 id=&quot;srclib&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib&quot;&gt;src/lib&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclib&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Config for 3rd party libs goes here, or if you require to have your own version of a 3rd party lib, and also have to compile it, put it here. If the 3rd party lib is not to be compiled by you, put it in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js/&quot;&gt;src/assets/js/&lt;/code&gt;.&lt;/p&gt;&lt;h4 id=&quot;srcpages&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages&quot;&gt;src/pages&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcpages&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Put pages here. Having all the pages in one place is very helpful but the logic inside them should be kept to the minimum.&lt;/p&gt;&lt;h4 id=&quot;srcstyles&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/styles&quot;&gt;src/styles&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcstyles&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Put global styles here.&lt;/p&gt;&lt;h4 id=&quot;srcstores&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/stores&quot;&gt;src/stores&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcstores&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;If you use stores, put them here.&lt;/p&gt;&lt;h4 id=&quot;srctest&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/test&quot;&gt;src/test&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srctest&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Test related stuff, mocks, helpers, utilities etc.&lt;/p&gt;&lt;h4 id=&quot;srctypes&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/types&quot;&gt;src/types&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srctypes&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;If you use TypeScript, puth types, interfaces and enums here.&lt;/p&gt;&lt;h4 id=&quot;srcutils&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/utils&quot;&gt;src/utils&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcutils&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;If the code is some standalone, drop in function or class, put it here.&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;If the standalone, drop in function or class is getting to big, you might want to consider creating a separate package for it.&lt;/p&gt;&lt;/div&gt;&lt;h2 id=&quot;automate&quot; class=&quot;ph&quot;&gt;Automate&lt;a class=&quot;ph heading-link&quot; href=&quot;#automate&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;I love to get rid of secondary activites, L O V E it. So if I can automate it, I automate it!&lt;/p&gt;&lt;h3 id=&quot;changelog&quot; class=&quot;ph&quot;&gt;Changelog&lt;a class=&quot;ph heading-link&quot; href=&quot;#changelog&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Changelog generation goes hand in hand with releases, or changes merged into the master. And since I use &lt;code class=&quot;ph language-&quot; content=&quot;commitizen&quot;&gt;commitizen&lt;/code&gt;, creating changelogs is a walk in the park. I use &lt;a class=&quot;ph&quot; href=&quot;https://github.com/conventional-changelog/conventional-changelog&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Conventional Changelog&lt;/a&gt; with &lt;code class=&quot;ph language-&quot; content=&quot;conventional-changelog-conventionalcommits&quot;&gt;conventional-changelog-conventionalcommits&lt;/code&gt;.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;npm i -D conventional-changelog-conventionalcommits
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;releases&quot; class=&quot;ph&quot;&gt;Releases&lt;a class=&quot;ph heading-link&quot; href=&quot;#releases&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;To orchestrate my releases, i use &lt;a class=&quot;ph&quot; href=&quot;https://github.com/release-it/release-it&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;release-it&quot;&gt;release-it&lt;/code&gt;&lt;/a&gt;, and it's basically fire and forget. You can do it with an interactive CLI, or like me, &lt;a class=&quot;ph&quot; href=&quot;https://github.com/phun-ky/speccer/actions/workflows/publish.yml&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;in an action&lt;/a&gt;.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;npm i -D release-it
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Update your scripts in &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  …
  &amp;quot;scripts&amp;quot;: {
    …
    &amp;quot;release&amp;quot;: &amp;quot;release-it&amp;quot;,
    …
  },
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And you can do &lt;code class=&quot;ph language-&quot; content=&quot;npm run release&quot;&gt;npm run release&lt;/code&gt;!&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;This is the &lt;code class=&quot;ph language-&quot; content=&quot;.release-it.json&quot;&gt;.release-it.json&lt;/code&gt; I use:&lt;/strong&gt;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;git&amp;quot;: {
    &amp;quot;commitMessage&amp;quot;: &amp;quot;chore: 🤖 release v${version}&amp;quot;
  },
  &amp;quot;github&amp;quot;: {
    &amp;quot;release&amp;quot;: true,
    &amp;quot;tokenRef&amp;quot;: &amp;quot;GH_TOKEN&amp;quot;
  },
  &amp;quot;npm&amp;quot;: {
    &amp;quot;publish&amp;quot;: true,
    &amp;quot;skipChecks&amp;quot;: true
  },
  &amp;quot;hooks&amp;quot;: {
    &amp;quot;after:bump&amp;quot;: &amp;quot;npm run build &amp;amp;&amp;amp; npm run docs:gen&amp;quot;,
    &amp;quot;after:release&amp;quot;: &amp;quot;echo Successfully released ${name} v${version} to ${repo.repository}.&amp;quot;
  },
  &amp;quot;plugins&amp;quot;: {
    &amp;quot;@release-it/conventional-changelog&amp;quot;: {
      &amp;quot;header&amp;quot;: &amp;quot;# Changelog&amp;quot;,
      &amp;quot;preset&amp;quot;: {
        &amp;quot;name&amp;quot;: &amp;quot;conventionalcommits&amp;quot;,
        &amp;quot;types&amp;quot;: [
          {
            &amp;quot;type&amp;quot;: &amp;quot;chore&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Tasks&amp;quot;
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;docs&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Documentation&amp;quot;
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;feat&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Feature&amp;quot;
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;fix&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Bug&amp;quot;
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;perf&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Performance change&amp;quot;
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;refactor&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Refactoring&amp;quot;
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;release&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Create a release commit&amp;quot;,
            &amp;quot;hidden&amp;quot;: true
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;style&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Markup, white-space, formatting, missing semi-colons...&amp;quot;,
            &amp;quot;hidden&amp;quot;: true
          },
          {
            &amp;quot;type&amp;quot;: &amp;quot;test&amp;quot;,
            &amp;quot;section&amp;quot;: &amp;quot;Adding missing tests&amp;quot;,
            &amp;quot;hidden&amp;quot;: true
          }
        ]
      },
      &amp;quot;infile&amp;quot;: &amp;quot;CHANGELOG.md&amp;quot;
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;cicd&quot; class=&quot;ph&quot;&gt;CI/CD&lt;a class=&quot;ph heading-link&quot; href=&quot;#cicd&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Use a decent CI/CD setup, I love &lt;a class=&quot;ph&quot; href=&quot;https://github.com/features/actions&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;GitHub Actions&lt;/a&gt;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I always use these actions, regardless of the type of project I am working on:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/actions/labeler&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com/actions/labeler&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/pozil/auto-assign-issue&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com/pozil/auto-assign-issue&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;extrapolate&quot; class=&quot;ph&quot;&gt;Extrapolate&lt;a class=&quot;ph heading-link&quot; href=&quot;#extrapolate&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;documentation-generation&quot; class=&quot;ph&quot;&gt;Documentation generation&lt;a class=&quot;ph heading-link&quot; href=&quot;#documentation-generation&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;If you use &lt;a class=&quot;ph&quot; href=&quot;https://jsdoc.app/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;JSDoc&lt;/a&gt;, you can generate documentation based on that. If you use TypeScript, you can have automagic documentation generated with &lt;a class=&quot;ph&quot; href=&quot;https://typedoc.org/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;TypeDoc&lt;/a&gt;.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;npm i -D typedoc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;My preferred plugins:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;npm i -D typedoc-plugin-frontmatter typedoc-plugin-markdown typedoc-plugin-mdn-links typedoc-plugin-no-inherit typedoc-plugin-rename-defaults
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Update your &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt; scripts:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  …
  &amp;quot;scripts&amp;quot;: {
    …
    &amp;quot;docs:gen&amp;quot;: &amp;quot;node ./node_modules/.bin/typedoc --entryPoints src --entryPointStrategy expand --gitRevision main --githubPages false --plugin typedoc-plugin-markdown --tsconfig tsconfig.json --hideInPageTOC --out api --readme none&amp;quot;,
    …
  }
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;This will generate documentation based of your code and JSdoc annotation in the &lt;code class=&quot;ph language-&quot; content=&quot;/api&quot;&gt;/api&lt;/code&gt; folder.&lt;/p&gt;&lt;h2 id=&quot;minimize&quot; class=&quot;ph&quot;&gt;Minimize&lt;a class=&quot;ph heading-link&quot; href=&quot;#minimize&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Why advocate for code minimization? Well, a primary objective in my approach to development, both professionally and as a human being, is to contribute to a better world. Streamlining and reducing code directly contribute to a lower carbon footprint by using fewer bytes and transmitting less data over the internet.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;While many developers already focus on optimizing applications for speed, the emphasis on sustainability is gaining prominence. The equation is straight forward: fewer bytes sent result in a faster application, leading to a reduced carbon footprint. It's a win-win scenario.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;To enhance your carbon footprint, you can apply the same principles used for optimizing and minimizing code. Additionally, there are other strategies to lessen the environmental impact in development, including:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;General reduction of code&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Minimizing the code stored in your repository&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Decreasing the number of dependencies in your project&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Reducing the frequency of builds or the shipment of artifacts to other vendors&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;reduce-code&quot; class=&quot;ph&quot;&gt;Reduce code&lt;a class=&quot;ph heading-link&quot; href=&quot;#reduce-code&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Repeat after me: Refactor, refactor, refactor. Continusly refactoring and pruning the application is to me kinda like the process of caring for a bonsai tree. Create reusable components, split out code, carefully select dependencies, IF you require them.&lt;/p&gt;&lt;h3 id=&quot;smaller-repositories&quot; class=&quot;ph&quot;&gt;Smaller repositories&lt;a class=&quot;ph heading-link&quot; href=&quot;#smaller-repositories&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;In the mantra of reducing code. Do not curate a large repository, consider splitting up the repository in smaller repositories. If some parts of the code is rarely updated, split it out. If parts of your code could be reusable in other projects, split it out. Consider to open source it!&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;You could also test out monorepos, for example with &lt;a class=&quot;ph&quot; href=&quot;https://lerna.js.org/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Lerna&lt;/a&gt;.&lt;/p&gt;&lt;h3 id=&quot;reduce-dependencies&quot; class=&quot;ph&quot;&gt;Reduce dependencies&lt;a class=&quot;ph heading-link&quot; href=&quot;#reduce-dependencies&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Do not use dependencies for code you can create yourself (&lt;a class=&quot;ph&quot; href=&quot;https://qz.com/646467/how-one-programmer-broke-the-internet-by-deleting-a-tiny-piece-of-code&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;leftpad anyone&lt;/a&gt;?). Many dependencies are created as polyfills for features a native API did not have in the beginning, but they have support for it now. Like &lt;a class=&quot;ph&quot; href=&quot;https://jquery.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;jQuery&lt;/a&gt;, &lt;a class=&quot;ph&quot; href=&quot;https://momentjs.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;moment&lt;/a&gt;, &lt;a class=&quot;ph&quot; href=&quot;https://date-fns.org/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;date-fns&lt;/a&gt; and &lt;a class=&quot;ph&quot; href=&quot;https://lodash.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;lodash&lt;/a&gt;/&lt;a class=&quot;ph&quot; href=&quot;https://underscorejs.org/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;underscore&lt;/a&gt;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Usefull links:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://youmightnotneedjquery.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://youmightnotneedjquery.com/&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/you-dont-need/You-Dont-Need-Momentjs&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com/you-dont-need/You-Dont-Need-Momentjs&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://youmightnotneed.com/lodash&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://youmightnotneed.com/lodash&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://youmightnotneed.com/date-fns&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://youmightnotneed.com/date-fns&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;reduce-builds&quot; class=&quot;ph&quot;&gt;Reduce builds&lt;a class=&quot;ph heading-link&quot; href=&quot;#reduce-builds&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Ask yourself these questions:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Do you really need to install every dependency for every build? Can you reuse some artifacts instead?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Do you really need to update snapshots?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Do you have to build for every release stage?&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;One example is, when you create a PR to &lt;code class=&quot;ph language-&quot; content=&quot;main&quot;&gt;main&lt;/code&gt;, you have a merge check, and most likely in that merge check, you have a build step and a test step. If the check is passing, do you really need to to a new check on &lt;code class=&quot;ph language-&quot; content=&quot;main&quot;&gt;main&lt;/code&gt;?&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Another example, if the PR only have changes in files that in no way effect the frontend application features/look/appearance, do you really need to have a merge-check?&lt;/p&gt;&lt;h2 id=&quot;conclusion&quot; class=&quot;ph&quot;&gt;Conclusion&lt;a class=&quot;ph heading-link&quot; href=&quot;#conclusion&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;In conclusion, achieving the best frontend developer experience involves a combination of standardization, automation, and code minimization. Standardizing practices, such as adopting semantic versioning for clear communication about changes, committing to readable and concise commit messages, and following consistent coding patterns, contributes to an efficient workflow and collaborative development.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Linting, particularly using tools like ESLint in conjunction with Prettier, enhances code quality and maintains a clean and uniform codebase. Establishing meaningful naming conventions, returning early in functions, and avoiding nested ternary operators improve code readability and maintainability.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Organizing code into a well-structured folder hierarchy, utilizing aliases for imports, and employing sorting and grouping for imports contribute to a more maintainable codebase. Additionally, having a clear folder structure, including features, services, pages, and utilities, is essential for managing large-scale applications.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Automation plays a crucial role in streamlining development processes. Leveraging tools like Commitizen for standardized commit messages, Release-it for automated releases, and GitHub Actions for continuous integration and deployment enhances efficiency and reduces manual intervention.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Code minimization, both in terms of reducing code size and optimizing development processes, is highlighted as a key principle. Refactoring code, adopting smaller repositories, minimizing dependencies, and optimizing build processes contribute to a smaller carbon footprint and a more sustainable development approach.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;In essence, the journey towards a better frontend developer experience involves a holistic approach that encompasses standardized practices, efficient automation, and a commitment to code minimization for improved sustainability and maintainability.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>@phun-ky/frameport</title>
      <link>https://phun-ky.net/2023/10/20/phun-ky-frameport</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/10/20/phun-ky-frameport</guid>
      <pubDate>Fri, 20 Oct 2023 00:00:00 GMT</pubDate>
      <category>Projects</category>
      <category>documentation</category>
      <category>style guide</category>
      <category>design system</category>
      <category>media queries</category>
      <category>responsive</category>
      <category>documentation helpers</category>
      <category>javascript</category>
      <category>css</category>
      <category>html</category>
      <category>viewport</category>
      <category>frame</category>
      <category>frameport</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Frameport enables you to showcase your responsive components in real-life media queries!&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/frameport/frameport-opengraph.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Frameport logo&quot; src=&quot;https://phun-ky.net/img/frameport/frameport-opengraph.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/frameport/frameport-opengraph.webp&quot;&gt;Frameport logo&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/phun-ky/frameport&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;GitHub&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.npmjs.com/package/@phun-ky/frameport&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;npm&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Frameport was created with the goal of simplifying the display of responsive components in style guides and documentation. It empowers you to create iframes with your component's HTML, CSS, and JavaScript, making them act as natural viewports. It's a zero-dependency package, making it easy to integrate into your projects.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;With frameport, you can create any viewport you want on a web page. This can be useful for a variety of purposes, such as:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Showcasing the different responsive modes of your components&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Sandbox content&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Frameport is incredibly easy to use. Simply add the add the required attributes or use the import with options, and frameport will do the rest. You can also wrap the viewports with the style of your choosing.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Read more &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/projects/frameport&quot;&gt;about it here&lt;/a&gt;.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>@phun-ky/speccer</title>
      <link>https://phun-ky.net/2023/10/18/phun-ky-speccer</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/10/18/phun-ky-speccer</guid>
      <pubDate>Wed, 18 Oct 2023 00:00:00 GMT</pubDate>
      <category>Projects</category>
      <category>open source</category>
      <category>html</category>
      <category>css</category>
      <category>design</category>
      <category>design system</category>
      <category>javascript</category>
      <category>spec</category>
      <category>inspect</category>
      <category>annotation</category>
      <category>annotate</category>
      <category>pin</category>
      <category>specifications</category>
      <category>anatomy</category>
      <category>dissection</category>
      <category>dissect</category>
      <category>documentation</category>
      <category>information</category>
      <category>specification</category>
      <category>specs</category>
      <category>html-elements</category>
      <category>inspect</category>
      <category>spacing</category>
      <category>speccer</category>
      <category>project</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Speccer is a zero dependency JavaScript package to highlight elements on web pages and in documentation. It's easy to use and highly customizable, making it the perfect tool for developers, designers, and content creators alike.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The image that was here (Speccer logo and slogan) is no longer available.&lt;/p&gt;&lt;/div&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/phun-ky/speccer&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;GitHub&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.npmjs.com/package/@phun-ky/speccer&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;npm&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The image that was here (demo of speccer) is no longer available.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Speccer was originally created to make it easier to document components in a design system, but you can use it for whatever you like, whenever you need to highlight any element in your web projects.&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The image that was here (Woman holding a phone with a site that is using speccer) is no longer available.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;With speccer, you can highlight any element on a web page or in documentation with pins, markers, arrows, and more. This can be useful for a variety of purposes, such as:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Showcasing the different parts of a component or design system&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Documenting how to use a particular element or feature&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Drawing attention to important information&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Creating interactive tutorials or demos&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Read more &lt;a class=&quot;ph&quot; href=&quot;https://speccer.dev&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;about it here&lt;/a&gt;.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Making Open Source Sustainable: Challenges and Solutions</title>
      <link>https://phun-ky.net/2023/10/09/making-open-source-sustainable-challenges-and-solutions</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/10/09/making-open-source-sustainable-challenges-and-solutions</guid>
      <pubDate>Mon, 09 Oct 2023 00:00:00 GMT</pubDate>
      <category>Open source</category>
      <category>open source</category>
      <category>sustainability</category>
      <category>challenges</category>
      <category>solutions</category>
      <category>open source fatigue</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Open source software has revolutionized the world of technology, enabling collaboration and innovation on a global scale. However, as open source projects have gained prominence, the challenge of ensuring their sustainability has come to the forefront. This article delves into the multifaceted aspects of sustainability in open source&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;This article is derived from my talk &lt;a class=&quot;ph&quot; href=&quot;https://slides.com/phun-ky/kds-2023-copenhagen-how-to-make-open-source-more-sustainable&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;How to make Open Source more sustainable&lt;/a&gt;, created December, 2022.&lt;/p&gt;&lt;/div&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1542601906990-b4d3fb778b09-652395485df64.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Cupped hands with a growing fern like plant with soil&quot; src=&quot;https://phun-ky.net/img/blog/photo-1542601906990-b4d3fb778b09-652395485df64.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1542601906990-b4d3fb778b09-652395485df64.webp&quot;&gt;Cupped hands with a growing fern like plant with soil&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Open source has been one of the defining trends in the technology industry over the past several decades. It enables global collaboration and innovation. However, ensuring its sustainability is a growing challenge.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-challenge&quot;&gt;The Challenge&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#examples-of-critical-open-source-projects&quot;&gt;Examples of Critical Open Source Projects&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#openssl&quot;&gt;OpenSSL&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#curl&quot;&gt;cURL&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#burnout-among-maintainers&quot;&gt;Burnout Among Maintainers&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#ramifications-of-unsustainable-open-source&quot;&gt;Ramifications of Unsustainable Open Source&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#examples-of-projects-that-was-on-the-brink-of-abandonment-or-was-removed&quot;&gt;Examples of projects that was on the brink of abandonment, or was removed&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#lerna&quot;&gt;Lerna&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#leftpad&quot;&gt;leftpad&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#finding-solutions&quot;&gt;Finding Solutions&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-key-questions&quot;&gt;The Key Questions&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#securing-funding-for-open-source&quot;&gt;Securing Funding for Open Source&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#github-sponsor&quot;&gt;Github sponsor&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#encouraging-contributions-to-open-source&quot;&gt;Encouraging Contributions to Open Source&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#hacktoberfest&quot;&gt;Hacktoberfest&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#bounty-source&quot;&gt;Bounty source&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#balancing-sustainability-and-open-source-principles&quot;&gt;Balancing Sustainability and Open Source Principles&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#conclusion&quot;&gt;Conclusion&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#open-source-and-a-sustainable-future&quot;&gt;Open Source and a Sustainable Future&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 id=&quot;the-challenge&quot; class=&quot;ph&quot;&gt;The Challenge&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-challenge&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1611273426858-450d8e3c9fce-6523954c5542d.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;A port with polution in the air&quot; src=&quot;https://phun-ky.net/img/blog/photo-1611273426858-450d8e3c9fce-6523954c5542d.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1611273426858-450d8e3c9fce-6523954c5542d.webp&quot;&gt;A port with polution in the air&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Open source projects are mainly maintained by unpaid volunteers. While this aligns with open source principles, it poses sustainability issues. These projects rely on donations and sponsorships, which can be inconsistent. Generating revenue remains a concern for open source companies.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Everyone uses open source, some open source is written by solo maintainers who struggle to pay the rent, which puts us all at risk, so that must change.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– Matt Asay in &lt;cite class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.infoworld.com/article/3706508/a-new-way-of-thinking-about-open-source-sustainability.html&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;A new way of thinking about open source sustainability, Infoworld&lt;/a&gt;&lt;/cite&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Open Source Dependency&lt;/strong&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Most software relies on open source components. Many solo maintainers struggle financially, endangering the ecosystem.&lt;/p&gt;&lt;h3 id=&quot;examples-of-critical-open-source-projects&quot; class=&quot;ph&quot;&gt;Examples of Critical Open Source Projects&lt;a class=&quot;ph heading-link&quot; href=&quot;#examples-of-critical-open-source-projects&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4 id=&quot;openssl&quot; class=&quot;ph&quot;&gt;OpenSSL&lt;a class=&quot;ph heading-link&quot; href=&quot;#openssl&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;1,320,000,000websites&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;638 community contributors&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;18 maintainers&lt;/li&gt;&lt;/ul&gt;&lt;h4 id=&quot;curl&quot; class=&quot;ph&quot;&gt;cURL&lt;a class=&quot;ph heading-link&quot; href=&quot;#curl&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;10 000 000 000installations of cURL worldwide&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;800 community contributors&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;8 maintainers&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;For instance, &lt;a class=&quot;ph&quot; href=&quot;https://thenewstack.io/open-source-vulnerabilities-still-a-challenge-for-developers/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Synopsys’ 2023 open source security report&lt;/a&gt;, which audited more than 1,700 codebases across 17 industries, found that:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;96% of the codebases included open source software.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Just over three-quarters of the code in the codebases — 76%— was open source.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;91% of code bases included open source software that had had no developer activity in the past two years — a timeframe that could indicate, the report suggested, that an open source project is not being maintained at all.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;burnout-among-maintainers&quot; class=&quot;ph&quot;&gt;Burnout Among Maintainers&lt;a class=&quot;ph heading-link&quot; href=&quot;#burnout-among-maintainers&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1591281700819-900258b1423e-65239547ee774.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Woman in a rally holding a sign where it says: I can't breathe&quot; src=&quot;https://phun-ky.net/img/blog/photo-1591281700819-900258b1423e-65239547ee774.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1591281700819-900258b1423e-65239547ee774.webp&quot;&gt;Woman in a rally holding a sign where it says: I can't breathe&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Open source maintainers often work unpaid. 60% consider themselves &amp;quot;unpaid hobbyists&amp;quot;, and 44% are sole maintainers, said the &lt;cite class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://tidelift.com/about/press-releases/tidelift-study-reveals-that-despite-increasing-demands-from-government-and-industry-60-of-maintainers-are-still-unpaid-volunteers&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;May 2023 Study by Tidelift&lt;/a&gt;&lt;/cite&gt;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Open source projects are more and more often victims of their own success. Those responsible for the packages end up spending thousands of hours a year maintaining and supporting packages that exists in the global infrastructure. This can lead to burnout and a lack of resources for maintaining and updating these projects.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1618706757440-25f2f017bdcb-6523954f29cbc.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;People in front of a protest march&quot; src=&quot;https://phun-ky.net/img/blog/photo-1618706757440-25f2f017bdcb-6523954f29cbc.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/photo-1618706757440-25f2f017bdcb-6523954f29cbc.webp&quot;&gt;People in front of a protest march&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Absolutely free, and usually only with outrage as the open source world's salary. It is not sustainable. Not in the long run. This is a massive challenge, across both companies and national borders. We as developers are definitely in a position where we can contribute, but what is really the right way to do it? I will try to answer this&lt;/p&gt;&lt;h2 id=&quot;ramifications-of-unsustainable-open-source&quot; class=&quot;ph&quot;&gt;Ramifications of Unsustainable Open Source&lt;a class=&quot;ph heading-link&quot; href=&quot;#ramifications-of-unsustainable-open-source&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Even more concerning than the sole maintainer projects are the zero maintainer projects, of which there are a considerable amount as well that are widely used&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;– Donald Fischer, CEO and co-founder of Tidelift&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;Discontinuing open source projects can have significant ramifications. Open source software is often integrated into many other systems and products, and it can disrupt these systems and cause significant technical problems. Furthermore, it can cause loss of trust and confidence in open source software, and discourage potential contributors from participating in open source projects.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Moreover, it can leave users and organizations without support or security updates, which can result in increased security risks and decreased stability. The discontinuation of an open source project can also lead to a lack of innovation and progress in a particular area, as other open source projects may not have the resources or community to fill the gap.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;In Tidelift's survey, 36% of maintainers said they have considered quitting their project; 22% said they already had.&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;In short, it can have far-reaching consequences and can undermine the sustainability of the open source ecosystem as a whole. It's important for open source projects to have sustainable funding and support, as well as clear governance and maintenance policies, to minimize the risk of discontinuation.&lt;/p&gt;&lt;h3 id=&quot;examples-of-projects-that-was-on-the-brink-of-abandonment-or-was-removed&quot; class=&quot;ph&quot;&gt;Examples of projects that was on the brink of abandonment, or was removed&lt;a class=&quot;ph heading-link&quot; href=&quot;#examples-of-projects-that-was-on-the-brink-of-abandonment-or-was-removed&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;h4 id=&quot;lerna&quot; class=&quot;ph&quot;&gt;Lerna&lt;a class=&quot;ph heading-link&quot; href=&quot;#lerna&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/lerna-6523aefc6b147.webp&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of an issue in the Lerna GitHub repository&quot; src=&quot;https://phun-ky.net/img/blog/lerna-6523aefc6b147.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/lerna-6523aefc6b147.webp&quot;&gt;Screenshot of an issue in the Lerna GitHub repository&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://lerna.js.org/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Lerna&lt;/a&gt; is a monorepo, that is, a modern build system for managing and publishing multiple packages from the same repository. It was solely driven by &lt;a class=&quot;ph&quot; href=&quot;https://twitter.com/evocateur&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;@evocateur&lt;/a&gt; a.k.a Daniel Stockman, but he got burnt out, and wanted to shut the whole thing down.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Lerna have up to 1.5 million downloads a day, and the creator have a total of 3.9 &lt;em class=&quot;ph&quot;&gt;billion&lt;/em&gt; downloads for his packages.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;… its creator @evocateur voiced his burnout and intention to abandon the project it was not made official until April 2020.&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;Due to the slow answer rate and almost no maintenance, people started to dislike it.&lt;/p&gt;&lt;blockquote class=&quot;ph twitter-tweet&quot;&gt;&lt;p class=&quot;ph&quot; lang=&quot;en&quot; dir=&quot;ltr&quot;&gt;I refuse to accept this man! Stay strong! I haven't seen any monorepo thingy-majingy doing the same as lerna &amp;lt;3&lt;/p&gt;— Alexander V. R-H (@phun_ky) &lt;a class=&quot;ph&quot; href=&quot;https://twitter.com/phun_ky/status/1483415938611437571&quot;&gt;January 18, 2022&lt;/a&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;However, luckily for the open source world, and the people using Lerna, the torch was passed to &lt;a class=&quot;ph&quot; href=&quot;https://nx.app/company&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Nrwl&lt;/a&gt;.&lt;/p&gt;&lt;h4 id=&quot;leftpad&quot; class=&quot;ph&quot;&gt;leftpad&lt;a class=&quot;ph heading-link&quot; href=&quot;#leftpad&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;module.exports = leftpad;
function leftpad(str, len, ch) {
  str = String(str);
  var i = -1;
  if (!ch &amp;amp;&amp;amp; ch !== 0) ch = ' ';
  len = len - str.length;
  while (++i &amp;lt; len) {
    str = ch str;
  }
  return str;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Certainly, the &amp;quot;leftpad&amp;quot; incident remains fresh in the memory of the open-source community.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;In the open source world, even the smallest components can wield significant influence. The &amp;quot;leftpad&amp;quot; story serves as a proof to this reality. Leftpad was a small JavaScript library that did a simple thing - it added spaces to the left side of a string to achieve a specified length. On the surface, it appeared trivial. 13-15 lines of code, that was it.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;However, a sudden decision by its maintainer to remove &amp;quot;leftpad&amp;quot; from the npm package registry sent shockwaves through the software development landscape. This unassuming library turned out to be a linchpin for countless projects and applications. Its abrupt absence caused widespread disruption and highlighted the vulnerability of open source ecosystems when a critical component is unexpectedly withdrawn.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The &amp;quot;leftpad&amp;quot; incident underscores the imperative of implementing sustainable open source practices, ensuring clear governance, and recognizing the significance of maintaining even the seemingly minor elements within the open source ecosystem. It serves as a sobering reminder that every contribution, irrespective of its size, plays a vital role in the symphony of open source development.&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;finding-solutions&quot; class=&quot;ph&quot;&gt;Finding Solutions&lt;a class=&quot;ph heading-link&quot; href=&quot;#finding-solutions&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;the-key-questions&quot; class=&quot;ph&quot;&gt;The Key Questions&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-key-questions&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;So, what can be done to ensure the financial sustainability of open source projects? To answer this question, we need to consider several crucial questions.&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;How can we secure funding for open source projects?&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;How can we ensure that open source developers are fairly compensated for their contributions?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;How can we measure the value of open source contributions?&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;How can we encourage more people to contribute to open source projects?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;How can we balance the need for financial sustainability with the principles of open source?&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;How can we ensure that open source projects are inclusive and accessible to all?&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h3 id=&quot;securing-funding-for-open-source&quot; class=&quot;ph&quot;&gt;Securing Funding for Open Source&lt;a class=&quot;ph heading-link&quot; href=&quot;#securing-funding-for-open-source&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Developing a model for &lt;em class=&quot;ph&quot;&gt;compensating&lt;/em&gt; open source developers. This could include offering monetary compensation, providing benefits such as more vacation, or allowing developers to work on open source projects as &lt;em class=&quot;ph&quot;&gt;part of their paid work&lt;/em&gt;.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Securing reliable funding sources for open source projects. This could include setting up a foundation to &lt;em class=&quot;ph&quot;&gt;support&lt;/em&gt; open source development, or partnering with companies or organizations that have an interest in supporting open source.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Measuring the &lt;em class=&quot;ph&quot;&gt;value&lt;/em&gt; of open source contributions by tracking metrics such as the number of contributors, the amount of code contributed, and the &lt;em class=&quot;ph&quot;&gt;impact&lt;/em&gt; that the open source project has had on the community.&lt;/li&gt;&lt;/ul&gt;&lt;h4 id=&quot;github-sponsor&quot; class=&quot;ph&quot;&gt;Github sponsor&lt;a class=&quot;ph heading-link&quot; href=&quot;#github-sponsor&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/sponsors&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of the github.com/sponsors website&quot; src=&quot;https://phun-ky.net/img/blog/githubsponsors-6523b7793d4da.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://github.com/sponsors&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of the github.com/sponsors website&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;encouraging-contributions-to-open-source&quot; class=&quot;ph&quot;&gt;Encouraging Contributions to Open Source&lt;a class=&quot;ph heading-link&quot; href=&quot;#encouraging-contributions-to-open-source&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Encouraging more people to &lt;em class=&quot;ph&quot;&gt;contribute&lt;/em&gt; to open source projects by &lt;em class=&quot;ph&quot;&gt;creating&lt;/em&gt; a welcoming and inclusive environment. This could include providing mentor-ship and training programs, or hosting events and workshops to &lt;em class=&quot;ph&quot;&gt;engage&lt;/em&gt; the community.&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Examples of that could be bounties, hackatons, meetups, workshops etc.&lt;/p&gt;&lt;h4 id=&quot;hacktoberfest&quot; class=&quot;ph&quot;&gt;Hacktoberfest&lt;a class=&quot;ph heading-link&quot; href=&quot;#hacktoberfest&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://hacktoberfest.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of the hacktoberfest.com website&quot; src=&quot;https://phun-ky.net/img/blog/screenshot-from-2023-10-09-10-20-44-6523b7f22b514.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://hacktoberfest.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of the hacktoberfest.com website&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h4 id=&quot;bounty-source&quot; class=&quot;ph&quot;&gt;Bounty source&lt;a class=&quot;ph heading-link&quot; href=&quot;#bounty-source&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://bountysource.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of the bountysource.com website&quot; src=&quot;https://phun-ky.net/img/blog/screenshot-2023-02-01-at-12-21-52-bountysource-6523b77921065.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://bountysource.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of the bountysource.com website&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;balancing-sustainability-and-open-source-principles&quot; class=&quot;ph&quot;&gt;Balancing Sustainability and Open Source Principles&lt;a class=&quot;ph heading-link&quot; href=&quot;#balancing-sustainability-and-open-source-principles&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;With; How can we ensure that open source projects are inclusive and accessible to all?&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Balancing the need for financial sustainability with the principles of open source by making sure that open source projects remain &lt;em class=&quot;ph&quot;&gt;transparent, accessible, and free for everyone&lt;/em&gt; to use.&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Ensuring that open source projects are inclusive and accessible to all by promoting diversity and inclusivity, and by taking steps to remove barriers to entry for underrepresented groups.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;It's important for open source projects to have sustainable &lt;em class=&quot;ph&quot;&gt;funding&lt;/em&gt; and &lt;em class=&quot;ph&quot;&gt;support&lt;/em&gt;, as well as &lt;em class=&quot;ph&quot;&gt;clear governance and maintenance policies&lt;/em&gt;, to minimize the risk of discontinuation.&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;conclusion&quot; class=&quot;ph&quot;&gt;Conclusion&lt;a class=&quot;ph heading-link&quot; href=&quot;#conclusion&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;open-source-and-a-sustainable-future&quot; class=&quot;ph&quot;&gt;Open Source and a Sustainable Future&lt;a class=&quot;ph heading-link&quot; href=&quot;#open-source-and-a-sustainable-future&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Yes, open source can be a part of making a sustainable future. By promoting transparency and collaboration, open source software can lead to more efficient and sustainable use of resources. Additionally, open source projects bring people together from all over the world to work on creating solutions, which can result in more sustainable and eco-friendly technology. The ability to customize and tailor open source software to individual needs can also reduce waste and contribute to sustainability goals. Overall, open source has the potential to play a significant role in creating a more sustainable future.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Accessible syntax highlight theme</title>
      <link>https://phun-ky.net/2023/10/06/accessible-syntax-highlight-theme</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/10/06/accessible-syntax-highlight-theme</guid>
      <pubDate>Fri, 06 Oct 2023 00:00:00 GMT</pubDate>
      <category>Projects</category>
      <category>css</category>
      <category>syntax highlighting</category>
      <category>prismjs</category>
      <category>accessible</category>
      <category>accessibility</category>
      <category>a11y</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;I really like syntax highlighting, and it helps greatly during development, but also when I read code. I have grown very fond of Solarized Dark and One Dark (not light!), but I wanted to be more accessible, so I created my own themes that adheres with the WCAG requirements.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;h2 id=&quot;the-colors&quot; class=&quot;ph&quot;&gt;The colors&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-colors&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.w3.org/TR/WCAG/#visual-audio-contrast-contrast&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;WCAG AA compliant&lt;/a&gt; for color contrast. WCAG AAA compliance forces the values on a light background to be too similar to each other to be used effectively for syntax highlighting.&lt;/p&gt;&lt;h3 id=&quot;dark-theme&quot; class=&quot;ph&quot;&gt;Dark theme&lt;a class=&quot;ph heading-link&quot; href=&quot;#dark-theme&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;All colors have a contrast ratio of &lt;code class=&quot;ph language-&quot; content=&quot;&amp;gt;=5&quot;&gt;&amp;gt;=5&lt;/code&gt; against the background color &lt;span class=&quot;ph color-badge&quot;&gt;&lt;span class=&quot;ph color-drop&quot; style=&quot;background-color: #262831;&quot;&gt;&lt;/span&gt;#262831, Sky Captain&lt;/span&gt;.&lt;/p&gt;&lt;div class=&quot;ph swatch&quot;&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #859BA3; color:#050505;&quot; data-rel=&quot;#859BA3&quot; data-color-name=&quot;Arona&quot;&gt;#859BA3&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #C79500; color:#0D0D0D;&quot; data-rel=&quot;#C79500&quot; data-color-name=&quot;Vivid Amber&quot;&gt;#C79500&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #2CAAA0; color:#050505;&quot; data-rel=&quot;#2CAAA0&quot; data-color-name=&quot;Sea Kale&quot;&gt;#2CAAA0&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #469EDD; color:#030303;&quot; data-rel=&quot;#469EDD&quot; data-color-name=&quot;Flax Flower Blue&quot;&gt;#469EDD&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #8C9B9B; color:#050505;&quot; data-rel=&quot;#8C9B9B&quot; data-color-name=&quot;Boredom&quot;&gt;#8C9B9B&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #E4E4E7; color:#474747;&quot; data-rel=&quot;#E4E4E7&quot; data-color-name=&quot;Lilac Mist&quot;&gt;#E4E4E7&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #262831; color:#B3B3B3;&quot; data-rel=&quot;#262831&quot; data-color-name=&quot;Sky Captain&quot;&gt;#262831&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #FF6666; color:#000000;&quot; data-rel=&quot;#FF6666&quot; data-color-name=&quot;Pompelmo&quot;&gt;#FF6666&lt;/div&gt;&lt;/div&gt;&lt;h3 id=&quot;light-theme&quot; class=&quot;ph&quot;&gt;Light theme&lt;a class=&quot;ph heading-link&quot; href=&quot;#light-theme&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;All colors have a contrast ratio of &lt;code class=&quot;ph language-&quot; content=&quot;&amp;gt;=5&quot;&gt;&amp;gt;=5&lt;/code&gt; against the background color &lt;span class=&quot;ph color-badge&quot;&gt;&lt;span class=&quot;ph color-drop&quot; style=&quot;background-color: #F5F6F7;&quot;&gt;&lt;/span&gt;#F5F6F7, Gram’s Hair&lt;/span&gt;.&lt;/p&gt;&lt;div class=&quot;ph swatch&quot;&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #566D71; color:#FFFFFF;&quot; data-rel=&quot;#566D71&quot; data-color-name=&quot;Distance&quot;&gt;#566D71&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #806200; color:#FFFFFF;&quot; data-rel=&quot;#806200&quot; data-color-name=&quot;Ground Earth&quot;&gt;#806200&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #1E766D; color:#FFFFFF;&quot; data-rel=&quot;#1E766D&quot; data-color-name=&quot;Advantageous&quot;&gt;#1E766D&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #1D699F; color:#FFFFFF;&quot; data-rel=&quot;#1D699F&quot; data-color-name=&quot;Jazz Blue&quot;&gt;#1D699F&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #5C6A6A; color:#FFFFFF;&quot; data-rel=&quot;#5C6A6A&quot; data-color-name=&quot;Mountain Pass&quot;&gt;#5C6A6A&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #000000; color:#FFFFFF;&quot; data-rel=&quot;#000000&quot; data-color-name=&quot;Black&quot;&gt;#000000&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #F5F6F7; color:#000000;&quot; data-rel=&quot;#F5F6F7&quot; data-color-name=&quot;Gram’s Hair&quot;&gt;#F5F6F7&lt;/div&gt;&lt;div class=&quot;ph color&quot; style=&quot;background-color: #CD0404; color:#000000;&quot; data-rel=&quot;#CD0404&quot; data-color-name=&quot;Rebellion Red&quot;&gt;#CD0404&lt;/div&gt;&lt;/div&gt;&lt;h2 id=&quot;contrast-ratio&quot; class=&quot;ph&quot;&gt;Contrast ratio&lt;a class=&quot;ph heading-link&quot; href=&quot;#contrast-ratio&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;table class=&quot;ph&quot;&gt;&lt;thead class=&quot;ph&quot;&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;th class=&quot;ph&quot;&gt;Color&lt;/th&gt;&lt;th class=&quot;ph&quot;&gt;Hex&lt;/th&gt;&lt;th class=&quot;ph&quot;&gt;Ratio&lt;/th&gt;&lt;th class=&quot;ph&quot;&gt;Normal Text&lt;/th&gt;&lt;th class=&quot;ph&quot;&gt;Large Text&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody class=&quot;ph&quot;&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Arona&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#859BA3&quot;&gt;#859BA3&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.04:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Vivid Amber&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#C79500&quot;&gt;#C79500&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.4:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Sea Kale&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#2CAAA0&quot;&gt;#2CAAA0&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.14:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Flax Flower Blue&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#469EDD&quot;&gt;#469EDD&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.03:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Boredom&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#8C9B9B&quot;&gt;#8C9B9B&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.08:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Lilac Mist&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#E4E4E7&quot;&gt;#E4E4E7&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;11.57:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Pompelmo&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#FF6666&quot;&gt;#FF6666&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.13:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Distance&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#566D71&quot;&gt;#566D71&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.07:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Ground Earth&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#806200&quot;&gt;#806200&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.29:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Advantageous&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#1E766D&quot;&gt;#1E766D&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.01:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Jazz Blue&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#1D699F&quot;&gt;#1D699F&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.43:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Mountain Pass&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#5C6A6A&quot;&gt;#5C6A6A&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.21:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Black&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#000000&quot;&gt;#000000&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;19.4:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;tr class=&quot;ph&quot;&gt;&lt;td class=&quot;ph&quot;&gt;Rebellion Red&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;#CD0404&quot;&gt;#CD0404&lt;/code&gt;&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;5.36:1&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AA&lt;/td&gt;&lt;td class=&quot;ph&quot;&gt;AAA&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;h2 id=&quot;css-variables&quot; class=&quot;ph&quot;&gt;CSS Variables&lt;a class=&quot;ph heading-link&quot; href=&quot;#css-variables&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;css&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-css&quot; language=&quot;css&quot;&gt;&lt;code class=&quot;ph css language-css&quot;&gt;:root {
  --color-1: #859ba3;
  --color-2: #c79500;
  --color-3: #2caaa0;
  --color-4: #469edd;
  --color-5: #8c9b9b;
  --color-6: #e4e4e7;
  --color-7: #262831;
  --color-8: #ff0000;
}

:root.theme--light {
  --color-1: #566d71;
  --color-2: #806200;
  --color-3: #1e766d;
  --color-4: #1d699f;
  --color-5: #5c6a6a;
  --color-6: #000000;
  --color-7: #f5f6f7;
  --color-8: #ff0000;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;prismjs-example-with-dark-colors&quot; class=&quot;ph&quot;&gt;PrismJS example with dark colors&lt;a class=&quot;ph heading-link&quot; href=&quot;#prismjs-example-with-dark-colors&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;css&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-css&quot; language=&quot;css&quot;&gt;&lt;code class=&quot;ph css language-css&quot;&gt;code[class*='language-'] .namespace,
pre[class*='language-'] .namespace {
  opacity: 0.7;
}

code[class*='language-'] .token.comment,
code[class*='language-'] .token.prolog,
code[class*='language-'] .token.doctype,
code[class*='language-'] .token.cdata,
pre[class*='language-'] .token.comment,
pre[class*='language-'] .token.prolog,
pre[class*='language-'] .token.doctype,
pre[class*='language-'] .token.cdata {
  color: #859ba3;
}

code[class*='language-'] .token.null,
code[class*='language-'] .token.operator,
code[class*='language-'] .token.boolean,
code[class*='language-'] .token.number,
pre[class*='language-'] .token.null,
pre[class*='language-'] .token.operator,
pre[class*='language-'] .token.boolean,
pre[class*='language-'] .token.number {
  color: #c79500;
}

code[class*='language-'] .token.attr-name,
code[class*='language-'] .token.string,
pre[class*='language-'] .token.attr-name,
pre[class*='language-'] .token.string {
  color: #2caaa0;
}

code[class*='language-'] .token.entity,
code[class*='language-'] .token.url,
.language-css code[class*='language-'] .token.string,
.style code[class*='language-'] .token.string,
pre[class*='language-'] .token.entity,
pre[class*='language-'] .token.url,
.language-css pre[class*='language-'] .token.string,
.style pre[class*='language-'] .token.string {
  color: #2caaa0;
}

code[class*='language-'] .token.selector,
pre[class*='language-'] .token.selector {
  color: #e4e4e7;
}

code[class*='language-'] .token.atrule,
code[class*='language-'] .token.attr-value,
code[class*='language-'] .token.keyword,
code[class*='language-'] .token.control,
code[class*='language-'] .token.directive,
code[class*='language-'] .token.important,
code[class*='language-'] .token.unit,
pre[class*='language-'] .token.atrule,
pre[class*='language-'] .token.attr-value,
pre[class*='language-'] .token.keyword,
pre[class*='language-'] .token.control,
pre[class*='language-'] .token.directive,
pre[class*='language-'] .token.important,
pre[class*='language-'] .token.unit {
  color: #469edd;
}

code[class*='language-'] .token.regex,
code[class*='language-'] .token.statement,
pre[class*='language-'] .token.regex,
pre[class*='language-'] .token.statement {
  color: #2caaa0;
}

code[class*='language-'] .token.placeholder,
code[class*='language-'] .token.variable,
pre[class*='language-'] .token.placeholder,
pre[class*='language-'] .token.variable {
  color: #469edd;
}

code[class*='language-'] .token.property,
code[class*='language-'] .token.tag,
pre[class*='language-'] .token.property,
pre[class*='language-'] .token.tag {
  font-style: italic;
}

code[class*='language-'] .token.important,
code[class*='language-'] .token.statement,
pre[class*='language-'] .token.important,
pre[class*='language-'] .token.statement {
  font-weight: bold;
}

code[class*='language-'] .token.punctuation,
pre[class*='language-'] .token.punctuation {
  color: #8c9b9b;
}

code[class*='language-'] .token.entity,
pre[class*='language-'] .token.entity {
  cursor: help;
}

code[class*='language-'] .token.debug,
pre[class*='language-'] .token.debug {
  color: #ff6666;
}

pre,
pre.ph {
  background-color: #262831;
  color: #e4e4e7;
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;react-example&quot; class=&quot;ph&quot;&gt;React example&lt;a class=&quot;ph heading-link&quot; href=&quot;#react-example&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;tsx&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-tsx&quot; language=&quot;tsx&quot;&gt;&lt;code class=&quot;ph tsx language-tsx&quot;&gt;import React from 'react';
import {
  BrowserRouter,
  Routes,
  Route,
  useLocation,
  useNavigate,
} from 'react-router-dom';
import { GlobalAppShell } from '@tfso/global-app-shell';
import type {
  GlobalNavigationPropsType,
  GlobalHeaderWCPropsType,
} from './types';

// -- Tiny helper that runs inside the Router and syncs props to the WC --
function SyncNavWithRouter({
  refNav,
  baseProps, // whatever you previously put in navigationArgs
}: {
  refNav: React.RefObject&amp;lt;any&amp;gt;;
  baseProps: GlobalNavigationPropsType;
}) {
  const location = useLocation();
  const navigate = useNavigate();

  const onNavigate = React.useMemo(
    () =&amp;gt; (to: string) =&amp;gt; {
      if (!to) return;
      navigate(to); // SPA navigation
    },
    [navigate]
  );

  React.useEffect(() =&amp;gt; {
    if (!refNav.current) return;

    // Push updated props into the web component whenever the route changes.
    refNav.current.props = {
      ...baseProps,
      onNavigate,
      currentPath: location.pathname, // &amp;lt;- critical for is-active
      // keep urlPrefix if you use one, e.g. baseProps.urlPrefix
    };
  }, [refNav, baseProps, onNavigate, location.pathname]);

  return null;
}

export default function App({
  navigationArgs,
  headerArgs,
}: {
  navigationArgs: GlobalNavigationPropsType;
  headerArgs: GlobalHeaderWCPropsType;
}) {
  const refNav = React.useRef&amp;lt;any&amp;gt;(null);
  const refHeader = React.useRef&amp;lt;any&amp;gt;(null);

  React.useEffect(() =&amp;gt; {
    if (refHeader.current) {
      refHeader.current.props = headerArgs;
    }
  }, [headerArgs]);

  return (
    &amp;lt;&amp;gt;
      &amp;lt;tfso-global-header ref={refHeader}&amp;gt;&amp;lt;/tfso-global-header&amp;gt;
      &amp;lt;tfso-global-navigation ref={refNav}&amp;gt;&amp;lt;/tfso-global-navigation&amp;gt;

      &amp;lt;GlobalAppShell isOpen={true}&amp;gt;
        &amp;lt;BrowserRouter /* basename=&amp;quot;/app&amp;quot; if you mount under a sub-path */&amp;gt;
          {/* Keep WC in sync with the router */}
          &amp;lt;SyncNavWithRouter refNav={refNav} baseProps={navigationArgs} /&amp;gt;

          {/* Your routed content */}
          &amp;lt;Routes&amp;gt;
            &amp;lt;Route path=&amp;quot;/&amp;quot; element={&amp;lt;HomePage /&amp;gt;} /&amp;gt;
            &amp;lt;Route path=&amp;quot;/reports&amp;quot; element={&amp;lt;ReportsPage /&amp;gt;} /&amp;gt;
            &amp;lt;Route path=&amp;quot;/reports/:id&amp;quot; element={&amp;lt;ReportDetails /&amp;gt;} /&amp;gt;
            {/* ...other routes */}
          &amp;lt;/Routes&amp;gt;
        &amp;lt;/BrowserRouter&amp;gt;
      &amp;lt;/GlobalAppShell&amp;gt;
    &amp;lt;/&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Create a simple, Vanilla JavaScript SPA</title>
      <link>https://phun-ky.net/2023/10/04/create-a-simple-vanilla-javascript-spa</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/10/04/create-a-simple-vanilla-javascript-spa</guid>
      <pubDate>Wed, 04 Oct 2023 00:00:00 GMT</pubDate>
      <category>How-to</category>
      <category>how-to</category>
      <category>app</category>
      <category>javascript</category>
      <category>rollup</category>
      <category>nodejs</category>
      <category>npm</category>
      <category>github</category>
      <category>spa</category>
      <category>single-spa</category>
      <category>ts</category>
      <category>typescript</category>
      <category>js</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;I never really liked frameworks, maybe in the start of my career, because it made life simpler, at first, and then it made life harder. And for a long time I have been aware of the digital footprint that me, as a developer, has left behind, and the responsibilities that I have as a member of the global community. So, after some tinkering, and much thanks to other developers that has coded before me, I finally made a working, &lt;em class=&quot;ph&quot;&gt;minimal footprint&lt;/em&gt;, vanilla JavaScript Single Page Application setup.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Do you &lt;em class=&quot;ph&quot;&gt;really&lt;/em&gt; need a framework for this?&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;If you follow this guide, you will have your own Vanilla JavaScript SPA up and running in no time!&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;Even though I say &lt;code class=&quot;ph language-&quot; content=&quot;JavaScript&quot;&gt;JavaScript&lt;/code&gt; here, in this example I have used &lt;code class=&quot;ph language-&quot; content=&quot;TypeScript&quot;&gt;TypeScript&lt;/code&gt;. It is not required, so feel free to strip out the typings if you want.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#features&quot;&gt;Features&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#prerequisites&quot;&gt;Prerequisites&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#setup&quot;&gt;Setup&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#npm&quot;&gt;npm&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#dependencies&quot;&gt;Dependencies&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#npm-scripts&quot;&gt;npm scripts&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#configuration-files&quot;&gt;Configuration files&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#rollup&quot;&gt;Rollup&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#folder-structure&quot;&gt;Folder structure&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#public&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;public&quot;&gt;public&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcassetsjs&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcassetscss&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/css&quot;&gt;src/assets/css&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#styles&quot;&gt;Styles&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#spa&quot;&gt;SPA&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspaindexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/index.ts&quot;&gt;src/lib/spa/index.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#router&quot;&gt;router&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibsparouterindexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/index.ts&quot;&gt;src/lib/spa/router/index.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibsparouterroutests&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/routes.ts&quot;&gt;src/lib/spa/router/routes.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibsparouterutilsget-router-matchts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/utils/get-router-match.ts&quot;&gt;src/lib/spa/router/utils/get-router-match.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibsparouterutilspotential-matches-mapperts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/utils/potential-matches-mapper.ts&quot;&gt;src/lib/spa/router/utils/potential-matches-mapper.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#utils&quot;&gt;utils&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsbootstrapts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/bootstrap.ts&quot;&gt;src/lib/spa/utils/bootstrap.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsdom-content-loadedts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/dom-content-loaded.ts&quot;&gt;src/lib/spa/utils/dom-content-loaded.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsevent-after-app-renderts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/event-after-app-render.ts&quot;&gt;src/lib/spa/utils/event-after-app-render.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilspopstatets&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/popstate.ts&quot;&gt;src/lib/spa/utils/popstate.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsevent-matchests&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/event-matches.ts&quot;&gt;src/lib/spa/utils/event-matches.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsget-paramsts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/get-params.ts&quot;&gt;src/lib/spa/utils/get-params.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsnavigate-tots&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/navigate-to.ts&quot;&gt;src/lib/spa/utils/navigate-to.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsupdate-nodests&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/update-nodes.ts&quot;&gt;src/lib/spa/utils/update-nodes.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsstring-to-htmlts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/string-to-html.ts&quot;&gt;src/lib/spa/utils/string-to-html.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilsset-titlets&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/set-title.ts&quot;&gt;src/lib/spa/utils/set-title.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srclibspautilswait-forts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/wait-for.ts&quot;&gt;src/lib/spa/utils/wait-for.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#putting-it-together&quot;&gt;Putting it together&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcmaints&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/main.ts&quot;&gt;src/main.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcappts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/app.ts&quot;&gt;src/app.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcpagesstartpageindexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/StartPage/index.ts&quot;&gt;src/pages/StartPage/index.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcpagesaboutpageindexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/AboutPage/index.ts&quot;&gt;src/pages/AboutPage/index.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcpageserrorpageindexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/ErrorPage/index.ts&quot;&gt;src/pages/ErrorPage/index.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcpagespagenotfoundpageindexts&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/PageNotFoundPage/index.ts&quot;&gt;src/pages/PageNotFoundPage/index.ts&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#summary&quot;&gt;Summary&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h2 id=&quot;features&quot; class=&quot;ph&quot;&gt;Features&lt;a class=&quot;ph heading-link&quot; href=&quot;#features&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;This setup will give you features such as:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Dynamic importing of pages&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Only update nodes that has changed&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Minimal carbon footprint&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;SPA Framework similar setup and inner workings&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Minimal adjustments required to switch to a framework&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Some sort of equivalent to &lt;code class=&quot;ph language-&quot; content=&quot;useEffect&quot;&gt;useEffect&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;useState&quot;&gt;useState&lt;/code&gt; like in React&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;prerequisites&quot; class=&quot;ph&quot;&gt;Prerequisites&lt;a class=&quot;ph heading-link&quot; href=&quot;#prerequisites&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Knowledge of&lt;/strong&gt;:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;JavaScript&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;npm&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;NodeJS&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;git&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Tools&lt;/strong&gt;:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;terminal&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;editor&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;web browser&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;setup&quot; class=&quot;ph&quot;&gt;Setup&lt;a class=&quot;ph heading-link&quot; href=&quot;#setup&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;div class=&quot;ph message info&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TL;DR&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;If you do not like long reading, you can check out the repository for &lt;a class=&quot;ph&quot; href=&quot;https://github.com/phun-ky/vanilla-js-spa&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;this setup here&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;First we need to set up a repository. Head on over to &lt;a class=&quot;ph&quot; href=&quot;https://github.com&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com&lt;/a&gt; and create a new repository. Call it whatever you want, and clone it into your workspace. For the sake of this guide, we are referring to the repository as &lt;code class=&quot;ph language-&quot; content=&quot;vanilla-js-spa&quot;&gt;vanilla-js-spa&lt;/code&gt;;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd ~/Workspace
$ git clone git@github.com:&amp;lt;your username&amp;gt;/vanilla-js-spa.github.io.git
Cloning into vanilla-js-spa.github.io
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Then &lt;code class=&quot;ph language-&quot; content=&quot;cd&quot;&gt;cd&lt;/code&gt; into your project:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd vanilla-js-spa.github.io
$ struct
📦 vanilla-js-spa.github.io
 ├── 📄 .gitignore
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Looks empty, right? Let us proceed.&lt;/p&gt;&lt;h3 id=&quot;npm&quot; class=&quot;ph&quot;&gt;npm&lt;a class=&quot;ph heading-link&quot; href=&quot;#npm&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Initialize npm, change the stuff you want with the interactive tool:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install &amp;lt;pkg&amp;gt;` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After you have done that, you will have a directory something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 ├── 📄 .gitignore
 ├── 📄 package.json
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;dependencies&quot; class=&quot;ph&quot;&gt;Dependencies&lt;a class=&quot;ph heading-link&quot; href=&quot;#dependencies&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;After you've done that, install the required dependencies. First the dependencies required to build our application, then the dependency required for our SPA to work optimally:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm i -D @ironkinoko/rollup-plugin-styles @rollup/plugin-commonjs @rollup/plugin-node-resolve cssnano postcss postcss-cli rollup rollup-plugin-dts rollup-plugin-node-externals rollup-plugin-typescript2 stylus ts-node tsconfig-paths tslib typescript
added 295 packages, and audited 296 packages in 7s

found 0 vulnerabilities
$ npm i -S diff-dom
added 1 package, and audited 2 packages in 438ms

found 0 vulnerabilities
$ struct
📦 vanilla-js-spa.github.io
 ├── 📁 node_modules
 ├── 📄 .gitignore
 ├── 📄 package-lock.json
 ├── 📄 package.json
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;If you want, this is a great step to add linting stuff like &lt;code class=&quot;ph language-&quot; content=&quot;eslint&quot;&gt;eslint&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;prettier&quot;&gt;prettier&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;h4 id=&quot;npm-scripts&quot; class=&quot;ph&quot;&gt;npm scripts&lt;a class=&quot;ph heading-link&quot; href=&quot;#npm-scripts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Open up your &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt;, and update the &lt;code class=&quot;ph language-&quot; content=&quot;scripts&quot;&gt;scripts&lt;/code&gt; property to something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  …
  &amp;quot;scripts&amp;quot;: {
    &amp;quot;clean&amp;quot;: &amp;quot;rm -rf dist/*&amp;quot;,
    &amp;quot;assets&amp;quot;: &amp;quot;mkdir -p dist &amp;amp;&amp;amp; cp -a ./public/. ./dist/ &amp;amp;&amp;amp; cp -a ./src/assets/. ./dist/&amp;quot;,
    &amp;quot;prebuild&amp;quot;: &amp;quot;npm run clean &amp;amp;&amp;amp; npm run assets&amp;quot;,
    &amp;quot;build&amp;quot;: &amp;quot;rollup -c rollup.config.js&amp;quot;,
    &amp;quot;postbuild&amp;quot;: &amp;quot;bash -c 'mv -f ./dist/*.{js,map} ./dist/js'&amp;quot;,
    &amp;quot;build:watch&amp;quot;: &amp;quot;rollup -c rollup.config.js -w&amp;quot;,
    &amp;quot;dev&amp;quot;: &amp;quot;npx browser-sync start -s \&amp;quot;dist\&amp;quot; --files \&amp;quot;dist/*.*\&amp;quot;  --single&amp;quot;
  },
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;As you can see, we have added some scripts that will build this site:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;clean&lt;/strong&gt;: A helper function that will clean the &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt; folder, because you &lt;em class=&quot;ph&quot;&gt;really&lt;/em&gt; dont want the produced files in your repository&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;assets&lt;/strong&gt;: Copies over the assets to the &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt; folder&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;prebuild&lt;/strong&gt;: Runs before the &lt;code class=&quot;ph language-&quot; content=&quot;build&quot;&gt;build&lt;/code&gt; script, making sure we have assets copied&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;postbuild&lt;/strong&gt;: A helper script to actually move the produced rollup artifacts into their respective folder, to make it look cleaner&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;build:watch&lt;/strong&gt;: A simple watcher to build on every save.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;dev&lt;/strong&gt;: I use &lt;code class=&quot;ph language-&quot; content=&quot;browser-sync&quot;&gt;browser-sync&lt;/code&gt; for dev, you can use whatever setup you are used to, but this is what I use.&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;You need to add &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt; to your &lt;code class=&quot;ph language-&quot; content=&quot;.gitignore&quot;&gt;.gitignore&lt;/code&gt; file!&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Your &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt; should look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;name&amp;quot;: &amp;quot;vanilla-js-spa.github.io&amp;quot;,
  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,
  &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;,
  &amp;quot;description&amp;quot;: &amp;quot;Vanilla JavaScript SPA&amp;quot;,
  &amp;quot;scripts&amp;quot;: {
    &amp;quot;clean&amp;quot;: &amp;quot;rm -rf dist/*&amp;quot;,
    &amp;quot;assets&amp;quot;: &amp;quot;mkdir -p dist &amp;amp;&amp;amp; cp -a ./public/. ./dist/ &amp;amp;&amp;amp; cp -a ./src/assets/. ./dist/&amp;quot;,
    &amp;quot;prebuild&amp;quot;: &amp;quot;npm run clean &amp;amp;&amp;amp; npm run assets&amp;quot;,
    &amp;quot;build&amp;quot;: &amp;quot;rollup -c rollup.config.js&amp;quot;,
    &amp;quot;postbuild&amp;quot;: &amp;quot;bash -c 'mv -f ./dist/*.{js,map} ./dist/js'&amp;quot;,
    &amp;quot;build:watch&amp;quot;: &amp;quot;rollup -c rollup.config.js -w&amp;quot;,
    &amp;quot;dev&amp;quot;: &amp;quot;npx browser-sync start -s \&amp;quot;dist\&amp;quot; --files \&amp;quot;dist/*.*\&amp;quot;  --single&amp;quot;
  },
  &amp;quot;repository&amp;quot;: {
    &amp;quot;type&amp;quot;: &amp;quot;git&amp;quot;,
    &amp;quot;url&amp;quot;: &amp;quot;git+https://github.com/&amp;lt;your username&amp;gt;/vanilla-js-spa.github.io.git&amp;quot;
  },
  &amp;quot;bugs&amp;quot;: {
    &amp;quot;url&amp;quot;: &amp;quot;https://github.com/&amp;lt;your username&amp;gt;/vanilla-js-spa.github.io/issues&amp;quot;
  },
  &amp;quot;engines&amp;quot;: {
    &amp;quot;node&amp;quot;: &amp;quot;&amp;gt;=18.16.0&amp;quot;,
    &amp;quot;npm&amp;quot;: &amp;quot;&amp;gt;=9.5.1&amp;quot;
  },
  &amp;quot;homepage&amp;quot;: &amp;quot;https://github.com/&amp;lt;your username&amp;gt;/vanilla-js-spa.github.io#readme&amp;quot;,
  &amp;quot;devDependencies&amp;quot;: {
    &amp;quot;@ironkinoko/rollup-plugin-styles&amp;quot;: &amp;quot;^4.0.3&amp;quot;,
    &amp;quot;@rollup/plugin-commonjs&amp;quot;: &amp;quot;^25.0.1&amp;quot;,
    &amp;quot;@rollup/plugin-node-resolve&amp;quot;: &amp;quot;^15.0.2&amp;quot;,
    &amp;quot;cssnano&amp;quot;: &amp;quot;^6.0.0&amp;quot;,
    &amp;quot;postcss&amp;quot;: &amp;quot;^8.4.23&amp;quot;,
    &amp;quot;postcss-cli&amp;quot;: &amp;quot;^10.1.0&amp;quot;,
    &amp;quot;rollup&amp;quot;: &amp;quot;^3.22.0&amp;quot;,
    &amp;quot;rollup-plugin-dts&amp;quot;: &amp;quot;^5.3.0&amp;quot;,
    &amp;quot;rollup-plugin-node-externals&amp;quot;: &amp;quot;^6.0.1&amp;quot;,
    &amp;quot;rollup-plugin-typescript2&amp;quot;: &amp;quot;^0.35.0&amp;quot;,
    &amp;quot;stylus&amp;quot;: &amp;quot;^0.59.0&amp;quot;,
    &amp;quot;ts-node&amp;quot;: &amp;quot;^10.9.1&amp;quot;,
    &amp;quot;tsconfig-paths&amp;quot;: &amp;quot;^4.2.0&amp;quot;,
    &amp;quot;tslib&amp;quot;: &amp;quot;^2.3.1&amp;quot;,
    &amp;quot;typescript&amp;quot;: &amp;quot;^5.1.3&amp;quot;
  },
  &amp;quot;dependencies&amp;quot;: {
    &amp;quot;diff-dom&amp;quot;: &amp;quot;^5.0.7&amp;quot;
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;Remember to set the &lt;code class=&quot;ph language-&quot; content=&quot;author&quot;&gt;author&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;license&quot;&gt;license&lt;/code&gt; fields&lt;/p&gt;&lt;/div&gt;&lt;h3 id=&quot;configuration-files&quot; class=&quot;ph&quot;&gt;Configuration files&lt;a class=&quot;ph heading-link&quot; href=&quot;#configuration-files&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;If you are like me and love to configure options for the different modules used in this setup, you might want to add some configuration files:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.browserslistrc&quot;&gt;.browserslistrc&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.editorconfig&quot;&gt;.editorconfig&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.postcssrc.cjs&quot;&gt;.postcssrc.cjs&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.stylintrc&quot;&gt;.stylintrc&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;tsconfig.json&quot;&gt;tsconfig.json&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;tslint.json&quot;&gt;tslint.json&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 ├── 📁 node_modules
 ├── 📄 .browserslistrc
 ├── 📄 .editorconfig
 ├── 📄 .gitignore
 ├── 📄 .postcssrc.cjs
 ├── 📄 .stylintrc
 ├── 📄 package-lock.json
 ├── 📄 package.json
 ├── 📄 README.md
 ├── 📄 tsconfig.json
 └── 📄 tslint.json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;rollup&quot; class=&quot;ph&quot;&gt;Rollup&lt;a class=&quot;ph heading-link&quot; href=&quot;#rollup&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;To be able to process &lt;code class=&quot;ph language-&quot; content=&quot;*.styl&quot;&gt;*.styl&lt;/code&gt; files and produced bundled JavaScript, we are using &lt;code class=&quot;ph language-&quot; content=&quot;rollup&quot;&gt;rollup&lt;/code&gt;. Start creating your &lt;code class=&quot;ph language-&quot; content=&quot;rollup.config.js&quot;&gt;rollup.config.js&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;I use Stylus for my styling, you can choose &lt;code class=&quot;ph language-&quot; content=&quot;sass/scss&quot;&gt;sass/scss&lt;/code&gt; or &lt;code class=&quot;ph language-&quot; content=&quot;less&quot;&gt;less&lt;/code&gt; if you prefer that. Just remember to install the correct dependencies, and use the correct configuration files&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ touch rollup.config.js
$ struct
📦 vanilla-js-spa.github.io
 ├── 📁 node_modules
 ├── 📄 .browserslistrc
 ├── 📄 .editorconfig
 ├── 📄 .gitignore
 ├── 📄 .postcssrc.cjs
 ├── 📄 .stylintrc
 ├── 📄 package-lock.json
 ├── 📄 package.json
 ├── 📄 README.md
 └── 📄 rollup.config.js
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And it should look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import { nodeResolve } from '@rollup/plugin-node-resolve';
import ts from 'rollup-plugin-typescript2';
import typescript from 'typescript';
import styles from '@ironkinoko/rollup-plugin-styles';
import svg from 'rollup-plugin-svg-import';
import commonjs from '@rollup/plugin-commonjs';

export default [
  {
    input: ['src/main.ts'],
    output: {
      format: 'es',
      sourcemap: true,
      exports: 'named',
      dir: 'dist',
      assetFileNames: '[name][extname]'
    },
    plugins: [
      svg({
        stringify: true
      }),
      styles({
        mode: ['extract', './css/vanilla-js-spa.css'],
        url: false,
        minimize: true
      }),
      nodeResolve(),
      commonjs(),
      ts({
        useTsconfigDeclarationDir: true,
        sourceMap: false,
        typescript
      })
    ]
  }
];
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;folder-structure&quot; class=&quot;ph&quot;&gt;Folder structure&lt;a class=&quot;ph heading-link&quot; href=&quot;#folder-structure&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Now, let us add some more folders to our app:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 ├── 📁 node_modules
 …
 ├── 📁 public
   └── 📄 index.html
 ├── 📁 src
   ├── 📁 assets
     ├── 📁 css
     ├── 📁 img
     ├── 📁 js
   ├── 📁 components
   ├── 📁 config
   ├── 📁 features
   ├── 📁 lib
   ├── 📁 pages
   ├── 📁 styles
   ├── 📁 types
   ├── 📄 app.ts
   └── 📄 main.ts
 …
 └── 📄 rollup.config.js
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;public&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;public&quot;&gt;public&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#public&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;We need a place to consume the SPA, so create &lt;code class=&quot;ph language-&quot; content=&quot;public/index.html&quot;&gt;public/index.html&lt;/code&gt;, and put this into it:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;html&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-html&quot; language=&quot;html&quot;&gt;&lt;code class=&quot;ph html language-html&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang=&amp;quot;en&amp;quot;&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;vanilla-js-spa&amp;lt;/title&amp;gt;
    &amp;lt;meta charset=&amp;quot;utf-8&amp;quot; /&amp;gt;
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id=&amp;quot;app&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;link async href=&amp;quot;/css/vanilla-js-spa.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; type=&amp;quot;text/css&amp;quot; /&amp;gt;
    &amp;lt;script
      defer
      type=&amp;quot;module&amp;quot;
      src=&amp;quot;/js/main.js&amp;quot;
      type=&amp;quot;text/javascript&amp;quot;
    &amp;gt;&amp;lt;/script&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srcassetsjs&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcassetsjs&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Here you can put any JavaScript you want, that is prebuilt. For example a custom &lt;a class=&quot;ph&quot; href=&quot;https://prismjs.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Prism&lt;/a&gt; build.&lt;/p&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;Remember earlier, from the npm scripts, that we copy over the &lt;code class=&quot;ph language-&quot; content=&quot;assets&quot;&gt;assets&lt;/code&gt; folder into &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt;? Well, we need at least one file for the copying of js to work. So if you haven't added any &lt;code class=&quot;ph language-&quot; content=&quot;*.js&quot;&gt;*.js&lt;/code&gt; file, add a dummy file:&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Go into the &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt; directory and create a &lt;code class=&quot;ph language-&quot; content=&quot;dummy.js&quot;&gt;dummy.js&lt;/code&gt; file:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd src/assets/js
$ echo &amp;quot;console.log('dummy');&amp;quot; &amp;gt; dummy.js
$ cat dummy.js
console.log('dummy');
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ph message warning&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Warning&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;These files will &lt;strong class=&quot;ph&quot;&gt;not&lt;/strong&gt; be processed&lt;/p&gt;&lt;/div&gt;&lt;h4 id=&quot;srcassetscss&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/css&quot;&gt;src/assets/css&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcassetscss&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;In the &lt;code class=&quot;ph language-&quot; content=&quot;css&quot;&gt;css&lt;/code&gt; folder, you can put any css file you want, for example a custom styling for &lt;code class=&quot;ph language-&quot; content=&quot;prismjs&quot;&gt;prismjs&lt;/code&gt;, your custom &lt;a class=&quot;ph&quot; href=&quot;https://tailwindcss.com/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;tailwindcss&lt;/a&gt; or any other library you would use.&lt;/p&gt;&lt;div class=&quot;ph message warning&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Warning&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;These files will &lt;strong class=&quot;ph&quot;&gt;not&lt;/strong&gt; be processed&lt;/p&gt;&lt;/div&gt;&lt;h4 id=&quot;styles&quot; class=&quot;ph&quot;&gt;Styles&lt;a class=&quot;ph heading-link&quot; href=&quot;#styles&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Then go to the &lt;code class=&quot;ph language-&quot; content=&quot;styles&quot;&gt;styles&lt;/code&gt; folder to create a &lt;code class=&quot;ph language-&quot; content=&quot;index.styl&quot;&gt;index.styl&lt;/code&gt; file, for all your styles.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd src/styles
$ touch index.styl
$ struct
  └── 📄 index.styl
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Then in &lt;code class=&quot;ph language-&quot; content=&quot;src/main.ts&quot;&gt;src/main.ts&lt;/code&gt;, add the import of your global styles, rollup will handle this automatically, converting the &lt;code class=&quot;ph language-&quot; content=&quot;*.styl&quot;&gt;*.styl&lt;/code&gt; file into css:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import './styles/index.styl';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;spa&quot; class=&quot;ph&quot;&gt;SPA&lt;a class=&quot;ph heading-link&quot; href=&quot;#spa&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Now, let's get into the JavaScript part of this!&lt;/p&gt;&lt;h3 id=&quot;srclibspaindexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/index.ts&quot;&gt;src/lib/spa/index.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspaindexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Create a folder &lt;code class=&quot;ph language-&quot; content=&quot;spa&quot;&gt;spa&lt;/code&gt;, inside ofr &lt;code class=&quot;ph language-&quot; content=&quot;src/lib&quot;&gt;src/lib&lt;/code&gt;, and then &lt;code class=&quot;ph language-&quot; content=&quot;index.ts&quot;&gt;index.ts&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 …
 ├── 📁 src
   ├── …
   ├── 📁 lib
     └── 📁 spa
       └── 📄 index.ts
   └── …
 …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Then copy and paste this into the file:&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;I promise, this is the largest file. It can be simplified and shortened.&lt;/p&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import {
  FunctionType,
  EventArray,
  EventDataAction,
  EventDataId,
  RouteDetails,
  EventType,
  StateContext,
  UseStateValue,
  UseStateReturn
} from './types';

import { waitFor } from './utils/wait-for';
import { setTitle } from './utils/set-title';
import { updateNodes } from './utils/update-nodes';

/**
 * The main functionality that is to be replaced if a framework is to be used
 * instead. The functionality that spa provides, is the same principles and naming that React uses,
 * except for the global event handlers like `addOnClick`.
 */
export const spa = (() =&amp;gt; {
  const _root: HTMLElement | null = document.querySelector('#app');

  if (!_root) {
    throw new Error(
      'Missing element for application! Please make sure you have an element with the id of `app` in the DOM'
    );
  }

  const stateHooks: Record&amp;lt;string, StateContext&amp;gt; = {};
  const effectHooks: unknown[] = [];

  let _templateCallback;
  let _page;
  let clickEventArray: EventArray&amp;lt;EventDataId&amp;gt; = [];
  let onRouteChangeEventArray: EventArray&amp;lt;EventDataId&amp;gt; = [];
  let onAfterAppRenderEventArray: EventArray&amp;lt;EventDataId&amp;gt; = [];
  let effectIndex = 0;

  const init = async (
    // eslint-disable-next-line no-unused-vars
    templateCallback: FunctionType,
    routeDetails: RouteDetails
  ) =&amp;gt; {
    if (!templateCallback) {
      throw new Error('Missing param `templateCallback` for `init()`');
    }

    if (!routeDetails) {
      throw new Error('Missing param `routeDetails` for `init()`');
    }

    const { page } = routeDetails;

    if (!page) {
      throw new Error('Missing page');
    }

    _templateCallback = templateCallback;
    _page = page;

    await render(routeDetails);
  };
  const render = async (routeDetails?: RouteDetails) =&amp;gt; {
    let page = _page;
    let routeChanged = false;

    if (routeDetails) {
      page = routeDetails.page;
      routeChanged = routeDetails.routeChanged;
    }

    console.info(`trying to render &amp;quot;${page?.route?.name}&amp;quot;`);
    clickEventArray = [];
    onRouteChangeEventArray = [];
    onAfterAppRenderEventArray = [];
    // reset state indexes
    Object.keys(stateHooks).forEach(
      (context) =&amp;gt; (stateHooks[context].index = 0)
    );

    effectIndex = 0;

    document.dispatchEvent(
      new CustomEvent('eventBeforeAppRender', {
        bubbles: true,
        cancelable: true
      })
    );

    let _html = '';
    let error = false;

    try {
      _html = await _templateCallback(page);
    } catch (e) {
      if (e.message.indexOf('404') !== -1) {
        setTitle('404, page not found');
        _html = `&amp;lt;h1&amp;gt;404, page not found&amp;lt;/h1&amp;gt;`;
      } else {
        _html = await _templateCallback('ErrorPage', {
          error: e
        });

        error = true;
        console.error(e);
        console.info(
          `failed to render &amp;quot;${page?.route?.name}&amp;quot;, rendering error page`
        );
      }
    }

    updateNodes(_root, _html);

    await waitFor(10);

    document.removeEventListener(
      'eventAfterRouteChanged',
      handleOnRouteChangedListener
    );
    document.addEventListener(
      'eventAfterRouteChanged',
      handleOnRouteChangedListener
    );

    if (routeChanged) {
      document.dispatchEvent(
        new CustomEvent('eventAfterRouteChanged', {
          bubbles: true,
          cancelable: true,
          detail: {
            routeDetails
          }
        })
      );
    }

    const onRender = () =&amp;gt; {
      if (
        page &amp;amp;&amp;amp;
        page.route &amp;amp;&amp;amp;
        page.route.page.onRender &amp;amp;&amp;amp;
        typeof page.route.page.onRender === 'function'
      ) {
        page.route.page.onRender();
      }

      document.dispatchEvent(
        new CustomEvent(`eventAfterPage${page.route.name}Render`, {
          bubbles: true,
          cancelable: true
        })
      );

      if (
        _templateCallback &amp;amp;&amp;amp;
        _templateCallback.onRender &amp;amp;&amp;amp;
        typeof _templateCallback.onRender === 'function'
      ) {
        _templateCallback.onRender();
      }

      document.dispatchEvent(
        new CustomEvent('eventAfterAppRender', {
          bubbles: true,
          cancelable: true
        })
      );
    };

    document.removeEventListener(
      'eventAfterAppRender',
      handleAfterAppRenderListeners
    );
    document.addEventListener(
      'eventAfterAppRender',
      handleAfterAppRenderListeners
    );

    onRender();

    document.removeEventListener('click', handleClickListeners);
    document.addEventListener('click', handleClickListeners);
  };
  const handleAfterAppRenderListeners = () =&amp;gt; {
    onAfterAppRenderEventArray.forEach((callback: EventDataAction) =&amp;gt; {
      callback();
    });
  };
  const handleOnRouteChangedListener = () =&amp;gt; {
    onRouteChangeEventArray.forEach((action: EventDataId) =&amp;gt;
      action.callback()
    );
  };
  const handleClickListeners = (e: EventType&amp;lt;HTMLElement&amp;gt;) =&amp;gt; {
    clickEventArray.forEach((target: EventDataId) =&amp;gt; {
      if (e.target.id === target.id) {
        target.callback(e);
      }
    });
  };
  /**
   * To be able to add event listeners to the &amp;quot;string html&amp;quot; produced by the
   * components, we have to use &amp;quot;global&amp;quot; event handlers.
   * Every usages of this type of function (like `addOnClick`) is to be replaced if
   * a framework is used.
   * @param {string} id The id used for the event
   * @param {Function} callback The callback to use on the event
   */
  // eslint-disable-next-line no-unused-vars
  const addOnClick = (id: string, callback: FunctionType) =&amp;gt; {
    clickEventArray.push({ id, callback });
  };
  const addOnRouteChange = (callback: FunctionType) =&amp;gt; {
    onRouteChangeEventArray.push(callback);
  };
  const addOnAfterAppRender = (callback: FunctionType) =&amp;gt; {
    onAfterAppRenderEventArray.push(callback);
  };
  const useState = (
    initValue: UseStateValue,
    context: string
  ): UseStateReturn =&amp;gt; {
    if (!context || typeof context !== 'string' || context === '') {
      throw new Error('Missing parameter `context` for `useState`');
    }

    if (!stateHooks[context]) {
      stateHooks[context] = { state: [], index: 0 };
    }

    const contextStateIndex = stateHooks[context].index;
    const state = (
      stateHooks[context].state[contextStateIndex] !== undefined
        ? stateHooks[context].state[contextStateIndex]
        : initValue
    ) as UseStateValue;
    const _contextStateIndex = contextStateIndex;
    const setState = (newValue: UseStateValue) =&amp;gt; {
      if (stateHooks[context].state[_contextStateIndex] !== newValue) {
        stateHooks[context].state[_contextStateIndex] = newValue;
      }

      render();
    };

    stateHooks[context].index++;

    return [state, setState];
  };
  const useEffect = async (
    callback: unknown | Promise&amp;lt;FunctionType&amp;gt; | FunctionType,
    dependencyArray: unknown[]
  ) =&amp;gt; {
    const oldDependencies = effectHooks[effectIndex];

    let hasChanged = true;

    if (oldDependencies) {
      hasChanged = dependencyArray.some(
        (dep: unknown, i: number) =&amp;gt; !Object.is(dep, oldDependencies[i])
      );
    }

    effectHooks[effectIndex] = dependencyArray;
    effectIndex++;

    if (hasChanged &amp;amp;&amp;amp; callback &amp;amp;&amp;amp; typeof callback === 'function') {
      if (callback.constructor.name === 'AsyncFunction') {
        await callback();
      } else {
        callback();
      }
    }
  };

  return {
    addOnClick,
    addOnRouteChange,
    addOnAfterAppRender,
    useEffect,
    useState,
    init,
    render
  };
})();

export const {
  addOnClick,
  addOnRouteChange,
  addOnAfterAppRender,
  useEffect,
  useState,
  init,
  render
} = spa;

export default spa;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Then, create a directory, &lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/types&quot;&gt;src/lib/spa/types&lt;/code&gt;, and create an &lt;code class=&quot;ph language-&quot; content=&quot;index.ts&quot;&gt;index.ts&lt;/code&gt;-file, and enter the referenced types used in the previous file:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 …
 ├── 📁 src
   ├── …
   ├── 📁 lib
     └── 📁 spa
       └── 📁 types
         └── 📄 index.ts
       └── 📄 index.ts
   └── …
 …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;…
// eslint-disable-next-line no-unused-vars
export type FunctionType = (...args: unknown[]) =&amp;gt; void;


export type EventDataId = {
  id: string;
  // eslint-disable-next-line no-unused-vars
  callback: EventDataAction;
};

// eslint-disable-next-line no-unused-vars
export type EventDataAction = (...args: unknown[]) =&amp;gt; void;

export type EventDataSelector = {
  selector: string;
  // eslint-disable-next-line no-unused-vars
  callback: EventDataAction;
};

// eslint-disable-next-line no-unused-vars
export type EventDataUnion&amp;lt;T&amp;gt; = FunctionType | T;

export type EventArray&amp;lt;T&amp;gt; = EventDataUnion&amp;lt;T&amp;gt;[];

export type UseStateValue =
  | boolean
  | string
  | number
  | unknown[]
  | Record&amp;lt;string, unknown&amp;gt;;

// eslint-disable-next-line no-unused-vars
export type UseStateReturn = [
  UseStateValue,
  FunctionType
];

export type StateContext = {
  state: UseStateValue[];
  index: number;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;router&quot; class=&quot;ph&quot;&gt;router&lt;a class=&quot;ph heading-link&quot; href=&quot;#router&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;We obviously need a router! inside of &lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa&quot;&gt;src/lib/spa&lt;/code&gt;, create the directory &lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router&quot;&gt;src/lib/spa/router&lt;/code&gt;, and add these files:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 …
 ├── 📁 src
   ├── …
   └── 📁 lib
     └── 📁 spa
       └── 📁 router
         ├── 📁 utils
           ├── 📄 get-router-match.ts
           └── 📄 potential-matches-mapper.ts
         ├── 📄 routes.ts
         └── 📄 index.ts
 …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibsparouterindexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/index.ts&quot;&gt;src/lib/spa/router/index.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibsparouterindexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { getParams } from '../utils/get-params';

import { Route, RouterMatch } from '../types';

import { getRouterMatch } from './utils/get-router-match';

import { routes } from './routes';

let previousPage: RouterMatch = {
  route: { name: 'none' }
};
let previousParams = {};

export const router = () =&amp;gt; {
  const page: RouterMatch = getRouterMatch(routes);
  const currentParams = getParams(page);

  let paramsChanged = false;
  let routeChanged = false;

  if (previousPage.route.name === (page.route as Route).name) {
    if (JSON.stringify(previousParams) !== JSON.stringify(currentParams)) {
      paramsChanged = true;
      routeChanged = true;
      window.scrollTo(0, 0);
      document.dispatchEvent(
        new CustomEvent('eventParamsChanged', {
          bubbles: true,
          cancelable: true,
          detail: {
            previousParams,
            currentParams
          }
        })
      );
    }
  } else {
    routeChanged = true;
    window.scrollTo(0, 0);
  }

  previousParams = getParams(page);
  previousPage = page as RouterMatch;

  const routeDetails = {
    page,
    previousPage,
    previousParams,
    currentParams,
    paramsChanged,
    routeChanged
  };

  if (routeChanged) {
    document.dispatchEvent(
      new CustomEvent('eventBeforeRouteChanged', {
        bubbles: true,
        cancelable: true,
        detail: {
          routeDetails
        }
      })
    );
  }

  return routeDetails;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibsparouterroutests&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/routes.ts&quot;&gt;src/lib/spa/router/routes.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibsparouterroutests&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { Route } from '../types';

export const routes: Route[] = [
  { path: '/', page: 'StartPage', name: 'Start', regex: /^\/$/ },
  { path: '/about', page: 'AboutPage', name: 'About', regex: /^\/about$/ }
];
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibsparouterutilsget-router-matchts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/utils/get-router-match.ts&quot;&gt;src/lib/spa/router/utils/get-router-match.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibsparouterutilsget-router-matchts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { RouterMatch, Routes } from '../../types';
import { potentialMatchesMapper } from './potential-matches-mapper';

export const getRouterMatch = (routes: Routes): RouterMatch =&amp;gt; {
  // Test each route for a potential match.
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  const potentialMatches = routes.map(potentialMatchesMapper as any);

  let match = potentialMatches.find(
    (potentialMatch: RouterMatch) =&amp;gt; potentialMatch.result !== null
  ) as RouterMatch;

  if (!match) {
    // javascript, i'm looking at you!!
    const pathName = decodeURI(location.pathname) + '';

    match = {
      route: { path: '/404', page: 'PageNotFoundPage', name: 'Page not found' },
      result: [pathName]
    };
  }

  return match;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibsparouterutilspotential-matches-mapperts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/router/utils/potential-matches-mapper.ts&quot;&gt;src/lib/spa/router/utils/potential-matches-mapper.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibsparouterutilspotential-matches-mapperts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { RouterMatch, Route } from '../../types';

export const potentialMatchesMapper = (
  route: Route
): RouterMatch =&amp;gt; {
  // javascript, i'm looking at you!!
  let pathName = decodeURI(location.pathname) + '';

  return {
    route: route,
    result: route.regex ? pathName.match(route.regex) : null
  };
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;utils&quot; class=&quot;ph&quot;&gt;utils&lt;a class=&quot;ph heading-link&quot; href=&quot;#utils&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;To make everything play nice together, we need some utils that we have referenced so far:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 …
 └── 📁 src
   └── 📁 lib
     └── 📁 spa
       └── 📁 utils
         ├── 📄 bootstrap.ts
         ├── 📄 dom-content-loaded.ts
         ├── 📄 event-after-app-render.ts
         ├── 📄 popstate.ts
         ├── 📄 event-matches.ts
         ├── 📄 get-params.ts
         ├── 📄 navigate-to.ts
         ├── 📄 update-nodes.ts
         ├── 📄 string-to-html.ts
         ├── 📄 set-title.ts
         └── 📄 wait-for.ts
 …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsbootstrapts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/bootstrap.ts&quot;&gt;src/lib/spa/utils/bootstrap.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsbootstrapts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;This is just a helper to reduce circular dependencies, you can move or remove this if you want.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import App from '../../../app';

import { RouteDetails } from '../types';
import { init } from '../';

export const bootstrap = async (routeDetails: RouteDetails) =&amp;gt; {
  await init(App, routeDetails);
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsdom-content-loadedts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/dom-content-loaded.ts&quot;&gt;src/lib/spa/utils/dom-content-loaded.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsdom-content-loadedts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { NavigateToEvent, EventType } from '../types';

import { router } from '../router';
import { bootstrap } from './bootstrap';
import { eventMatches } from './event-matches';
import { navigateTo } from './navigate-to';

// When DOM is loaded
export const DOMContentLoaded = async () =&amp;gt; {
  // If any navigation is fired through a custom event
  document.addEventListener('navigateTo', (e: NavigateToEvent) =&amp;gt; {
    const { to } = e.detail;

    navigateTo(to);
  });
  // If a user clicks a link that should change the popstate, instead of hard routing
  document.body.addEventListener(
    'click',
    async (e: EventType&amp;lt;HTMLElement&amp;gt;) =&amp;gt; {
      const el = eventMatches(e, '[data-link]') as HTMLAnchorElement;

      if (el) {
        e.preventDefault();
        await navigateTo(el.href);
      }
    }
  );

  // Get current route
  const routeDetails = router();

  // Reinitialisze the SPA
  await bootstrap(routeDetails);

};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And we need to update &lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/types/index.ts&quot;&gt;src/lib/spa/types/index.ts&lt;/code&gt; with the types:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;…
/**
 * Represents the event object for an element.
 * @template T - Type of the element used as a target.
 */
export type EventType&amp;lt;T&amp;gt; = Event &amp;amp; {
  target: T &amp;amp; {
    files?: FileList | null;
    id: string;
    parentElement: Element | null;
  };
  currentTarget: HTMLElement &amp;amp; {
    documentElement: HTMLElement;
  };
};

/**
 * Represents the keyboard event object for an element.
 * @template T - Type of the element used as a target.
 */
export type KeyboardEventType&amp;lt;T&amp;gt; = KeyboardEvent &amp;amp; {
  target: T &amp;amp; {
    id: string;
  };
  currentTarget: HTMLElement &amp;amp; {
    documentElement: HTMLElement;
  };
};

export type NavigateToEvent = Event &amp;amp; {
  detail: {
    to: string;
  };
};

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsevent-after-app-renderts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/event-after-app-render.ts&quot;&gt;src/lib/spa/utils/event-after-app-render.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsevent-after-app-renderts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;export const eventAfterAppRender = () =&amp;gt; {
  // Preserve focus state on render
  if (
    document.activeElement &amp;amp;&amp;amp;
    !document.activeElement.isEqualNode(globalThis.activeElement)
  ) {
    const { id } = globalThis.activeElement;

    if (id) {
      const elementToFocus = document.getElementById(id);

      if (elementToFocus) {
        elementToFocus.focus();
      }
    }
  }
};

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilspopstatets&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/popstate.ts&quot;&gt;src/lib/spa/utils/popstate.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilspopstatets&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;The handler we run on every &lt;code class=&quot;ph language-&quot; content=&quot;popstate&quot;&gt;popstate&lt;/code&gt; event.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { router } from '../router';
import { bootstrap } from './bootstrap';

export const popstate = async () =&amp;gt; {
  const routeDetails = router();

  await bootstrap(routeDetails);
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsevent-matchests&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/event-matches.ts&quot;&gt;src/lib/spa/utils/event-matches.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsevent-matchests&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { EventType } from '../types';

/**
 * @param {Event} event The event.
 * @param {string} selector The selector.
 * @returns {Element}
 *   The closest ancestor of the event target (or the event target itself) which matches the selectors given in parameter.
 */
export const eventMatches = (
  event: EventType&amp;lt;HTMLElement&amp;gt;,
  selector: string
): HTMLElement | undefined =&amp;gt; {
  // &amp;lt;svg&amp;gt; in IE does not have `Element#msMatchesSelector()` (that should be copied to `Element#matches()` by a polyfill).
  // Also a weird behavior is seen in IE where DOM tree seems broken when `event.target` is on &amp;lt;svg&amp;gt;.
  // Therefore this function simply returns `undefined` when `event.target` is on &amp;lt;svg&amp;gt;.
  const { target, currentTarget } = event;

  if (typeof target.matches === 'function') {
    if (target.matches(selector)) {
      // If event target itself matches the given selector, return it
      return target;
    }

    if (target.matches(`${selector} *`)) {
      const closest: HTMLElement | null = target.closest(selector);

      if (
        closest &amp;amp;&amp;amp;
        (currentTarget.nodeType === Node.DOCUMENT_NODE
          ? currentTarget.documentElement
          : currentTarget
        ).contains(closest)
      ) {
        return closest;
      }
    }
  }

  return undefined;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsget-paramsts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/get-params.ts&quot;&gt;src/lib/spa/utils/get-params.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsget-paramsts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { RouterMatch } from '../types';

export const getParams = (match: RouterMatch) =&amp;gt; {
  if (!match.result) return {};

  const values = match.result.slice(1);

  if (!match.route.path) return {};

  const keys = Array.from(match.route.path.matchAll(/:([\w]+)/g)).map(
    (result: string[]) =&amp;gt; result[1]
  );

  return Object.fromEntries(keys.map((key, i) =&amp;gt; [key, values[i]]));
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsnavigate-tots&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/navigate-to.ts&quot;&gt;src/lib/spa/utils/navigate-to.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsnavigate-tots&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import App from '../../../app';

import { init } from '../';
import { router } from '../router';

export const navigateTo = async (url: string) =&amp;gt; {
  history.pushState(null, '', url);

  const routeDetails = router();

  await init(App, routeDetails);
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsupdate-nodests&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/update-nodes.ts&quot;&gt;src/lib/spa/utils/update-nodes.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsupdate-nodests&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;update-nodes.ts&quot;&gt;update-nodes.ts&lt;/code&gt; is the most important file in the SPA, since it is doing what we love most about framework SPAs: It only updates the nodes that has changed!&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;This is also the &lt;em class=&quot;ph&quot;&gt;only&lt;/em&gt; dependency this SPA uses in production.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { stringToHTML } from './string-to-html';

import { DiffDOM } from 'diff-dom';

/**
 * A wrapper to be able to update DOM nodes, using the 3rd party library `diff-dom`.
 * This compares the old DOM nodes with the new DOM nodes and applies any changes.
 * It is the same modus operandi as the inner working of a modern-day JS framework, e.g., React.
 *
 * The `updateNodes` function takes two parameters: `root` and `html`.
 * The root parameter is an `HTMLElement` where the DOM changes
 * will be applied, and the `html` parameter is a string representing
 * the new DOM nodes to be applied.
 *
 * The function uses the third-party library `diff-dom` to compare
 * the old DOM nodes with the new DOM nodes and apply any changes,
 * simulating the behavior of modern JS frameworks like React.
 * The `updateNodes` function does not return anything (returns `void`).
 *
 * &lt;div class=&quot;ph message warning&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;
 *
 * **NOTE:** Does not detect text changes. See [fiduswriter/diffDOM#advanced-merging-of-text-node-changes](https://github.com/fiduswriter/diffDOM#advanced-merging-of-text-node-changes)
 *
 * &lt;/div&gt;
 *
 * @see [diffDOM](https://github.com/fiduswriter/diffDOM)
 * @param {HTMLElement} root - The root HTMLElement where the DOM changes will be applied.
 * @param {string} html - The HTML string representing the new DOM nodes to be applied.
 * @returns {void} - This function does not return anything (returns void).
 *
 * @example
 * ```ts
 * const rootElement = document.getElementById('app');
 * const newHTML = App();
 * // Updates only the changed DOM elements
 * updateNodes(rootElement, newHTML);
 * ```
 */
export const updateNodes = (root: HTMLElement, html: string): void =&amp;gt; {
  const currentDOM = stringToHTML(root.innerHTML);
  const newDOM = stringToHTML(html);
  const dd = new DiffDOM();
  const diff = dd.diff(currentDOM, newDOM);

  dd.apply(root, diff);
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsstring-to-htmlts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/string-to-html.ts&quot;&gt;src/lib/spa/utils/string-to-html.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsstring-to-htmlts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;/**
 * Convert a template string into HTML DOM nodes.
 *
 * The `stringToHTML` function takes a parameter `str`, which is
 * the template string to be converted into HTML.
 * It uses the `DOMParser` to parse the template string into HTML DOM nodes and
 * then returns the `body` of the parsed document as a `Node`.
 *
 * @param {string} str - The template string to be converted into HTML.
 * @returns {Element} - The template HTML represented as DOM nodes.
 */
export const stringToHTML = (str: string): Element =&amp;gt; {
  const parser = new DOMParser();
  const doc = parser.parseFromString(str, 'text/html');

  return doc.body;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilsset-titlets&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/set-title.ts&quot;&gt;src/lib/spa/utils/set-title.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilsset-titlets&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;/**
 * Sets the title of the document.
 *
 * @param {string} title - The title to set for the document.
 *
 * @example
 * ```ts
 * // Sets the document title to &amp;quot;My Page Title&amp;quot;
 * setTitle('My Page Title');
 * ```
 */
export const setTitle = (title: string): void =&amp;gt; {
  document.title = title;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srclibspautilswait-forts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/utils/wait-for.ts&quot;&gt;src/lib/spa/utils/wait-for.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srclibspautilswait-forts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;/**
 * Delays execution for the specified time.
 *
 * @param {number} ms - The time to wait in milliseconds.
 * @returns {Promise&amp;lt;void&amp;gt;} A Promise that resolves after the specified time.
 *
 * @example
 * ```ts
 * // Wait for 2 seconds
 * await waitFor(2000);
 * ```
 */
export const waitFor = (ms: number): Promise&amp;lt;void&amp;gt; =&amp;gt;
  new Promise((resolve) =&amp;gt; setTimeout(resolve, ms));
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;putting-it-together&quot; class=&quot;ph&quot;&gt;Putting it together&lt;a class=&quot;ph heading-link&quot; href=&quot;#putting-it-together&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;srcmaints&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/main.ts&quot;&gt;src/main.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcmaints&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Open up &lt;code class=&quot;ph language-&quot; content=&quot;src/main.ts&quot;&gt;src/main.ts&lt;/code&gt; and update it to look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;// Global events
import { DOMContentLoaded } from './lib/spa/utils/dom-content-loaded';
import { eventAfterAppRender } from './lib/spa/utils/event-after-app-render';
import { popstate } from './lib/spa/utils/popstate';

// Styles
import './styles/index.styl';

// Events that happens on URL change in our SPA
window.addEventListener('popstate', popstate);
// Events that happens after DOM is loaded
document.addEventListener('DOMContentLoaded', DOMContentLoaded);
// Events that happens after eveyr App render
document.addEventListener('eventAfterAppRender', eventAfterAppRender);
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;srcappts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/app.ts&quot;&gt;src/app.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcappts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Continuing, open up &lt;code class=&quot;ph language-&quot; content=&quot;src/app.ts&quot;&gt;src/app.ts&lt;/code&gt;, and add this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;import { getParams } from './lib/spa/utils/get-params';
import { RouterMatch } from './lib/spa/types';
import { addOnAfterAppRender } from './lib/spa';

const App = async (match: RouterMatch, params: unknown) =&amp;gt; {
  let _page: string;
  let _params = params;

  if (typeof match === 'string') {
    _params = params;
    _page = 'ErrorPage';
  } else {
    const { route } = match;
    const { page } = route;

    if (!page) {
      _page = 'ErrorPage';
    } else {
      _page = page;
    }

    _params = getParams(match);
  }

  globalThis.activeElement = document.activeElement;

  let content = '';

  if (_page === 'StartPage') {
    const { StartPage: currentPage } = await import('./pages/StartPage');

    content = await currentPage();

  } else if (_page === 'AboutPage') {
    const { AboutPage: currentPage } = await import('./pages/AboutPage');

    content = await currentPage();

  } else if (_page === 'ErrorPage') {
    const { ErrorPage: currentPage } = await import('./pages/ErrorPage');

    content = currentPage({ params: _params });
  } else {
    const { PageNotFoundPage: currentPage } = await import(
      './pages/PageNotFoundPage'
    );

    content = currentPage();
  }

  return `&amp;lt;main&amp;gt;${content}&amp;lt;/main&amp;gt;`;
};

export default App;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;We need to add the types as well! Create and open up &lt;code class=&quot;ph language-&quot; content=&quot;src/lib/spa/types/index.ts&quot;&gt;src/lib/spa/types/index.ts&lt;/code&gt;, and add this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;export type Route = {
  name: string;
  path?: string;
  page?: string;
  regex?: RegExp;
  layout?: string;
};

export type PreviousRoute = {
  name: string;
};

export type Routes = Route[];

export type RouteDetails = {
  page: RouterMatch;
  previousPage: RouterMatch;
  previousParams: unknown;
  currentParams: unknown;
  paramsChanged: boolean;
  routeChanged: boolean;
};

export type RouterMatch = {
  route: Route;
  result?: RegExpMatchArray | null;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Now let us make our first pages in the SPA!&lt;/p&gt;&lt;h3 id=&quot;srcpagesstartpageindexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/StartPage/index.ts&quot;&gt;src/pages/StartPage/index.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcpagesstartpageindexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;export const StartPage = async () =&amp;gt; {
  return `&amp;lt;div&amp;gt;
  &amp;lt;h1&amp;gt;
    Hello world
  &amp;lt;/h1&amp;gt;
  &amp;lt;p&amp;gt;
    Here is the link to &amp;lt;a href=&amp;quot;/about&amp;quot; data-link=&amp;quot;/about&amp;quot;&amp;gt;The about page&amp;lt;/a&amp;gt;
  &amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;`;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;Notice the usage of the &lt;code class=&quot;ph language-&quot; content=&quot;data-link&quot;&gt;data-link&lt;/code&gt; attribute? This is to make sure we are using the built in method of navigating in the SPA, so we can use &lt;code class=&quot;ph language-&quot; content=&quot;pushState&quot;&gt;pushState&lt;/code&gt;.&lt;/p&gt;&lt;/div&gt;&lt;h3 id=&quot;srcpagesaboutpageindexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/AboutPage/index.ts&quot;&gt;src/pages/AboutPage/index.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcpagesaboutpageindexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;export const AboutPage = async () =&amp;gt; {
  return `&amp;lt;div&amp;gt;
  &amp;lt;h1&amp;gt;
    About
  &amp;lt;/h1&amp;gt;
  &amp;lt;p&amp;gt;
    Here is the link to &amp;lt;a href=&amp;quot;/&amp;quot; data-link=&amp;quot;/&amp;quot;&amp;gt;The home page&amp;lt;/a&amp;gt;
  &amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;`;
};

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;srcpageserrorpageindexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/ErrorPage/index.ts&quot;&gt;src/pages/ErrorPage/index.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcpageserrorpageindexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;export const ErrorPage = ({ params }) =&amp;gt; {
  const { error } = params;

  return `&amp;lt;div&amp;gt;
      &amp;lt;h1&amp;gt;Something went wrong&amp;lt;/h1&amp;gt;
      &amp;lt;p&amp;gt;${error}&amp;lt;/p&amp;gt;
      &amp;lt;pre&amp;gt;
        &amp;lt;code&amp;gt;${error.stack}&amp;lt;/code&amp;gt;
      &amp;lt;/pre&amp;gt;
    &amp;lt;/div&amp;gt;`;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;srcpagespagenotfoundpageindexts&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/pages/PageNotFoundPage/index.ts&quot;&gt;src/pages/PageNotFoundPage/index.ts&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcpagespagenotfoundpageindexts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;typescript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-typescript&quot; language=&quot;typescript&quot;&gt;&lt;code class=&quot;ph typescript language-typescript&quot;&gt;export const PageNotFoundPage = () =&amp;gt; {
  return html`Page not found`;
};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;If you now run &lt;code class=&quot;ph language-&quot; content=&quot;npm run build&quot;&gt;npm run build&lt;/code&gt; and then &lt;code class=&quot;ph language-&quot; content=&quot;npm run dev&quot;&gt;npm run dev&lt;/code&gt;, you will see the result in your browser!&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm run build
&amp;gt; vanilla-js-spa@1.0.0 prebuild
&amp;gt; npm run clean &amp;amp;&amp;amp; npm run assets
&amp;gt; vanilla-js-spa@1.0.0 clean
&amp;gt; rm -rf dist/*
&amp;gt; vanilla-js-spa@1.0.0 assets
&amp;gt; mkdir -p dist &amp;amp;&amp;amp; cp -a ./public/. ./dist/ &amp;amp;&amp;amp; cp -a ./src/assets/. ./dist/
&amp;gt; vanilla-js-spa@1.0.0 build
&amp;gt; rollup -c rollup.config.js
src/main.ts → dist...
created dist in 1.2s
&amp;gt; vanilla-js-spa@1.0.0 postbuild
&amp;gt; bash -c 'mv -f ./dist/*.{js,map} ./dist/js'
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm run dev
&amp;gt; vanilla-js-spa@1.0.0 dev
&amp;gt; npx browser-sync start -s &amp;quot;dist&amp;quot; --files &amp;quot;dist/*.*&amp;quot;  --single
[Browsersync] Access URLs:
 --------------------------------------
       Local: http://localhost:3002
    External: http://192.168.86.36:3002
 --------------------------------------
          UI: http://localhost:3003
 UI External: http://localhost:3003
 --------------------------------------
[Browsersync] Serving files from: dist
[Browsersync] Watching files...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;summary&quot; class=&quot;ph&quot;&gt;Summary&lt;a class=&quot;ph heading-link&quot; href=&quot;#summary&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;You should have your directory to look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 vanilla-js-spa.github.io
 ├── 📁 node_modules
 ├── 📁 src
   ├── 📁 assets
     ├── 📁 css
     ├── 📁 img
     ├── 📁 js
   ├── 📁 components
   ├── 📁 config
   ├── 📁 features
   ├── 📁 lib
     └── 📁 spa
       ├── 📁 router
         ├── 📁 utils
           ├── 📄 get-router-match.ts
           └── 📄 potential-matches-mapper.ts
         ├── 📄 routes.ts
         └── 📄 index.ts
       ├── 📁 types
         └── 📄 index.ts
       ├── 📁 utils
         ├── 📄 bootstrap.ts
         ├── 📄 dom-content-loaded.ts
         ├── 📄 event-after-app-render.ts
         ├── 📄 popstate.ts
         ├── 📄 event-matches.ts
         ├── 📄 get-params.ts
         ├── 📄 navigate-to.ts
         ├── 📄 update-nodes.ts
         ├── 📄 string-to-html.ts
         ├── 📄 set-title.ts
         └── 📄 wait-for.ts
       └── 📄 index.ts
   ├── 📁 pages
    ├── 📁 ErrorPage
      └── 📄 index.ts
    ├── 📁 PageNotFoundPage
      └── 📄 index.ts
    └── 📁 StartPage
      └── 📄 index.ts
   ├── 📁 styles
   ├── 📄 app.ts
   └── 📄 main.ts
 ├── 📄 .browserslistrc
 ├── 📄 .editorconfig
 ├── 📄 .gitignore
 ├── 📄 .postcssrc.cjs
 ├── 📄 .stylintrc
 ├── 📄 package-lock.json
 ├── 📄 package.json
 ├── 📄 README.md
 ├── 📄 rollup.config.js
 ├── 📄 tsconfig.json
 └── 📄 tslint.json
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And you are now ready to start creating your content and components in a full fledged Vanilla JavaScript Single Page Application, with &lt;em class=&quot;ph&quot;&gt;no&lt;/em&gt; frameworks!&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Future interfaces</title>
      <link>https://phun-ky.net/2023/10/02/future-interfaces</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/10/02/future-interfaces</guid>
      <pubDate>Mon, 02 Oct 2023 00:00:00 GMT</pubDate>
      <category>Design</category>
      <category>interfaces</category>
      <category>design</category>
      <category>technology</category>
      <category>future</category>
      <category>science fiction</category>
      <category>scifi</category>
      <category>movies</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;In the ever-evolving landscape of human-machine interaction, the concept of future interfaces has intrigued generations of dreamers, innovators, and storytellers. In a world where technology continually stretches our imaginations, we find ourselves at the crossroads of fiction and reality, pondering what lies ahead. Let's take a journey through time and cinematic realms, from the imaginative 1950s sci-fi to the awe-inspiring marvels of today, to explore the sci-fi scene's promises and how they've materialized in our world. This is an exploration of how films reference existing technology, how technology fuels filmmakers' creativity, how films, in turn, inspire new tech, and examples of fresh visions of interfaces.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;This article is derived from my talk &lt;a class=&quot;ph&quot; href=&quot;https://slides.com/phun-ky/future-interfaces-d02011&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Future interfaces&lt;/a&gt;. That means that it could be seen not quite as connected article, but more me talking through the slides.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#definition-of-interface&quot;&gt;Definition of interface&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#now-where-can-i-stick-this&quot;&gt;Now, where can I stick this?&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#predator&quot;&gt;Predator&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-deep-space-nine&quot;&gt;Star Trek: Deep Space Nine&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-the-next-generation&quot;&gt;Star Trek: The Next Generation&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#existenz&quot;&gt;eXistenZ&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#2001-a-space-odyssee&quot;&gt;2001: A space odyssee&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-the-original-series&quot;&gt;Star Trek: The Original Series&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#demolition-man&quot;&gt;Demolition Man&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#fu-fme&quot;&gt;FU-FME&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#yep-thats-gonna-leave-a-mark&quot;&gt;Yep, that's gonna leave a mark&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-avengers&quot;&gt;The Avengers&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-the-next-generation-1&quot;&gt;Star Trek: The Next Generation&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-hunger-games&quot;&gt;The Hunger Games&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-wars-the-return-of-the-jedi&quot;&gt;Star Wars: The Return of the Jedi&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#blade-runner&quot;&gt;Blade Runner&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#alien&quot;&gt;Alien&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#red-planet&quot;&gt;Red Planet&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#google-glass&quot;&gt;Google Glass&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#heads-up&quot;&gt;Heads up&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#minority-report&quot;&gt;Minority Report&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#iron-man&quot;&gt;Iron Man&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#joint-strike-fighter-sim&quot;&gt;Joint Strike Fighter (sim)&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#hyper-reality&quot;&gt;Hyper Reality&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#you-did-what-with-it&quot;&gt;You did WHAT with it!?&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-iv-the-voyage-home&quot;&gt;Star Trek IV: The Voyage Home&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#minority-report-1&quot;&gt;Minority Report&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-matrix&quot;&gt;The Matrix&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#prometheus&quot;&gt;Prometheus&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-gate-universe&quot;&gt;Star Gate Universe&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#x-men&quot;&gt;X-Men&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-gate-universe-1&quot;&gt;Star Gate Universe&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#johnny-mnemonic&quot;&gt;Johnny Mnemonic&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-the-next-generation-2&quot;&gt;Star Trek: The Next Generation&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#super-mario-bros-controlled-with-a-theremin&quot;&gt;Super Mario Bros. controlled with a theremin&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#fifth-element&quot;&gt;Fifth Element&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#total-recall&quot;&gt;Total Recall&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#its-showtime&quot;&gt;It's SHOWTIME&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#mark-coleran&quot;&gt;Mark Coleran&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#prometheus-1&quot;&gt;Prometheus&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#guardians-of-the-galaxy&quot;&gt;Guardians of the Galaxy&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#pacific-rim&quot;&gt;Pacific Rim&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#iron-man-2&quot;&gt;Iron Man 2&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#ive-shown-you-mine-now-show-me-yours&quot;&gt;I've shown you mine, now show me yours&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#limit-theory&quot;&gt;Limit Theory&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#bonus-images&quot;&gt;Bonus images&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#alien-1&quot;&gt;Alien&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#2001-a-space-odyssee-1&quot;&gt;2001: A space odyssee&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#mission-to-mars&quot;&gt;Mission to mars&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-into-darkness&quot;&gt;Star Trek: Into Darkness&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#jurassic-park&quot;&gt;Jurassic Park&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-wars&quot;&gt;Star Wars&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-day-the-earth-stood-still&quot;&gt;The day the earth stood still&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#star-trek-the-original-series-1&quot;&gt;Star Trek: The Original Series&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#alien-2&quot;&gt;Alien&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#back-to-the-future&quot;&gt;Back to the future&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#blade-runner-1&quot;&gt;Blade Runner&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-process&quot;&gt;The process&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#are-we-there-yet&quot;&gt;Are we there yet?&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#ultrahaptics&quot;&gt;Ultrahaptics&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#bmws-haptic-interface-concept-car&quot;&gt;BMW's haptic interface concept car&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#electric-vehicle-engine-experimental-for-fantasy-by-gleb-kuznetsov-for-f%CE%BBnt%CE%BBsy&quot;&gt;Electric vehicle engine experimental for Fantasy by Gleb Kuznetsov✈ for FΛNTΛSY&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#pizza-hut-concept-table&quot;&gt;Pizza Hut Concept Table&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#aquatop-display&quot;&gt;AquaTop display&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#inmode---tangile-media-group-mit-labs&quot;&gt;inMode - Tangile Media Group, MIT Labs&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#hci-group-university-of-munich&quot;&gt;HCI Group, University of Munich&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#calart-redesigning-the-rebel-pilot-targeting-system&quot;&gt;Calart, Redesigning the rebel pilot targeting system&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#are-we-going-somewhere&quot;&gt;Are we going somewhere?&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#closing-thoughts&quot;&gt;Closing thoughts&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;All futuristic interfaces are shit&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;em class=&quot;ph&quot;&gt;– Unknown developer, from &lt;a class=&quot;ph&quot; href=&quot;https://slides.com/phun-ky/future-interfaces-d02011&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Future interfaces&lt;/a&gt; by Alexander Vassbotn Røyne-Helgesen&lt;/em&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;definition-of-interface&quot; class=&quot;ph&quot;&gt;Definition of interface&lt;a class=&quot;ph heading-link&quot; href=&quot;#definition-of-interface&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;What is an interface? If you look up the definition, this is what you get:&lt;/p&gt;&lt;div class=&quot;ph definition&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;span class=&quot;ph word&quot;&gt;Interface&lt;/span&gt; &lt;span class=&quot;ph phonetic&quot;&gt;/ˈɪn.tə.feɪs/&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;span class=&quot;ph class&quot;&gt;As a &lt;em class=&quot;ph&quot;&gt;noun&lt;/em&gt;:&lt;/span&gt;&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph states&quot;&gt;noun: &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt;; plural noun: &lt;strong class=&quot;ph&quot;&gt;interfaces&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;a point where two systems, subjects, organizations, etc. meet and interact.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;the &lt;strong class=&quot;ph&quot;&gt;interface between&lt;/strong&gt; accountancy and the law&lt;/span&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;span class=&quot;ph badge&quot;&gt;Physics&lt;/span&gt;&lt;br class=&quot;ph&quot;&gt;a surface forming a common boundary between two portions of matter or space, for example between two immiscible liquids.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;the surface tension of a liquid at its air/liquid &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;span class=&quot;ph badge&quot;&gt;Computing&lt;/span&gt;&lt;br class=&quot;ph&quot;&gt;a device or program enabling a user to communicate with a computer.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;a graphical user &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt;&lt;/span&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;a device or program for connecting two items of hardware or software so that they can be operated jointly or communicate with each other.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;an application program &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;ph&quot;&gt;&lt;span class=&quot;ph class&quot;&gt;As a &lt;em class=&quot;ph&quot;&gt;verb&lt;/em&gt;:&lt;/span&gt;&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph states&quot;&gt;verb: &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt;; 3rd person present: &lt;strong class=&quot;ph&quot;&gt;interfaces&lt;/strong&gt;; past tense: &lt;strong class=&quot;ph&quot;&gt;interfaced&lt;/strong&gt;; past participle: &lt;strong class=&quot;ph&quot;&gt;interfaced&lt;/strong&gt;; gerund or present participle: &lt;strong class=&quot;ph&quot;&gt;interfacing&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;interact with (another system, person, etc.).&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;you will &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt; with counterparts from sister companies&lt;/span&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;span class=&quot;ph badge&quot;&gt;Computing&lt;/span&gt;&lt;br class=&quot;ph&quot;&gt;connect with (another computer or piece of equipment) by an interface.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;the hotel's computer system can &lt;strong class=&quot;ph&quot;&gt;interface&lt;/strong&gt; automatically with the booking system&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;But for this article, we are focusing on this:&lt;/p&gt;&lt;div class=&quot;ph definition&quot;&gt;&lt;ol class=&quot;ph&quot; start=&quot;2&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;span class=&quot;ph badge&quot;&gt;Computing&lt;/span&gt;&lt;br class=&quot;ph&quot;&gt;a device or program enabling a user to communicate with a computer.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;a graphical user interface&lt;/span&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;a device or program for connecting two items of hardware or software so that they can be operated jointly or communicate with each other.&lt;br class=&quot;ph&quot;&gt;&lt;span class=&quot;ph example-sentence&quot;&gt;an application program interface&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;h2 id=&quot;now-where-can-i-stick-this&quot; class=&quot;ph&quot;&gt;Now, where can I stick this?&lt;a class=&quot;ph heading-link&quot; href=&quot;#now-where-can-i-stick-this&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;In this section, I try to point out the different interfaces we see in science fiction moves that require some sort of manipulation with the digits. (But I see that I have conflicting images for this section. I have left the order of the images intact, as it is in the talk I have, but I should rearrange them in an eventual revision...)&lt;/p&gt;&lt;h3 id=&quot;predator&quot; class=&quot;ph&quot;&gt;Predator&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1987&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#predator&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/2e148ce014e5baf9ac8c8410cd45ad1f.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Image of Predator's arm panel&quot; src=&quot;https://phun-ky.net/img/blog/2e148ce014e5baf9ac8c8410cd45ad1f.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/2e148ce014e5baf9ac8c8410cd45ad1f.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Image of Predator's arm panel&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Predator's arm panel is basically his toolbox. It controls all of his weapons, makes him invisible and even self-destructs when he has been defeated. The design has an impenetrable, alien language touchscreen display encased in a bulky metal box fixed to the Predator's arm.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;While most of the team working on Predator were part of the macho man action world of the eighties that Schwarzenegger typifies, there was at least one certifiable genius involved: Stan Winston. The man that built the Terminator. He brought Edward Scissorhands to life and made dinosaurs walk the earth in Jurassic Park. He also designed the Predator and it remains one of his most iconic creations.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;star-trek-deep-space-nine&quot; class=&quot;ph&quot;&gt;Star Trek: Deep Space Nine&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1993&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-deep-space-nine&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;http://memory-alpha.wikia.com/wiki/PADD&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Image of a PADD&quot; src=&quot;https://phun-ky.net/img/blog/df7eafbbc5fde6a1766caa21b682d6e4.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;http://memory-alpha.wikia.com/wiki/PADD&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Image of a PADD&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;&amp;quot;PADD&amp;quot; is an acronym for Personal Access Display Device, a hand-held computer interface, used as early as the 22nd century and well into the 24th century.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Consisting of a large touchscreen display and minimalistic manual interface or control panel (generally only one or two buttons), the typical PADD was used for a variety of functions, including logging crew manifests, compiling duty rosters or diagnostic reports, entering personal data, and/or accessing library computer systems using the LCARS Interface.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Varying in size, shape and specification, PADDs were often distinguished by the species of their manufacturer or user. United Earth and Federation Starfleet PADDs were generally flat and rectangular in shape, while Klingon and Cardassian PADDs were often more angular.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Many seem to think that Apple or Samsung had the first types of tables or pads (iPad), but many of the modern day technological marvels that we see as &amp;quot;standard&amp;quot; today, had their begin in fiction.&lt;/p&gt;&lt;h3 id=&quot;star-trek-the-next-generation&quot; class=&quot;ph&quot;&gt;Star Trek: The Next Generation&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1987&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-the-next-generation&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/dcdcdba164c70803fafa8c1486c8e937.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Image of the TR-560 Tricorder&quot; src=&quot;https://phun-ky.net/img/blog/dcdcdba164c70803fafa8c1486c8e937.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/dcdcdba164c70803fafa8c1486c8e937.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Image of the TR-560 Tricorder&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;This is not the earliest example of a tricorder that we see in the Star Trek franchise, but one of the most common in the shows after Star Trek ToS. Basically, it is a medical device that registers many vital properties on the subject examined.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Has there been any approach to create this in real life? Yes. The latest product that I heard of was, in the beginning something that popped out of Norway, and was aquired by GE Health. It was a handheld ultrasound device connected to any phone with a cord.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I see now that they have made it wireless, and it goes by the name of Vscan Air™ handheld ultrasound&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://handheldultrasound.gehealthcare.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Vscan Air™ handheld ultrasound&quot; src=&quot;https://phun-ky.net/img/blog/vscanair-min.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://handheldultrasound.gehealthcare.com/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Vscan Air™ handheld ultrasound&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Vscan Air CL and Vscan Air SL set a new standard in handheld ultrasound — both flexible, wireless dual-probes deliver crystal clear images anytime, anywhere in healthcare. Designed for the individual, ultra portable ultrasound is always with you — cordless, customizable, and intuitive.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;existenz&quot; class=&quot;ph&quot;&gt;eXistenZ&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1999&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#existenz&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/a96457b59efdb2618e98a6a7bf884409.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Controller from eXistenZ&quot; src=&quot;https://phun-ky.net/img/blog/a96457b59efdb2618e98a6a7bf884409.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/a96457b59efdb2618e98a6a7bf884409.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Controller from eXistenZ&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;A controller interface like the one depicted here from eXistenZ, is not uncommon today, in the shape and size of it. It looks very similar to a X-box controller or any other controller for a gaming console.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The key difference is what it is made of. This is a biological device, as in, it is made with living cells, grown into a controller. A bit freaky to be honest.&lt;/p&gt;&lt;h3 id=&quot;2001-a-space-odyssee&quot; class=&quot;ph&quot;&gt;2001: A space odyssee&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1968&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#2001-a-space-odyssee&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1602fb2732ae00cfb04c2dd300c8f405.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Space suit from the movie 2001: A space odysee&quot; src=&quot;https://phun-ky.net/img/blog/1602fb2732ae00cfb04c2dd300c8f405.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1602fb2732ae00cfb04c2dd300c8f405.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Space suit from the movie 2001: A space odysee&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;In 1968, when this movie was released, we see that the space suits used, depicted to be under 40 years from the time the movie was made, is not that too disimilar from the space suits that is used today. The bright color though perhaps stands out the most.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;What we see though, is that the interface use for communications/controls seems to be mechanical and tactile. I would guess that the decision to design that interface was based on needs and not just &amp;quot;to look good&amp;quot;.&lt;/p&gt;&lt;h3 id=&quot;star-trek-the-original-series&quot; class=&quot;ph&quot;&gt;Star Trek: The Original Series&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1966&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-the-original-series&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Tricorder&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Earliest tricorder in Star Trek&quot; src=&quot;https://phun-ky.net/img/blog/11b5b344659f2886009ab1be8d785122.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Tricorder&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Earliest tricorder in Star Trek&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;In the science-fictional Star Trek universe, a tricorder is a multifunction hand-held device used for sensor scanning, data analysis, and recording data.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Three primary variants of the tricorder appear in Star Trek, issued by the fictional organization Starfleet. The standard tricorder is a general-purpose device used primarily to scout unfamiliar areas, make detailed examination of living things, and record and review technical data. The medical tricorder is used by doctors to help diagnose diseases and collect bodily information about a patient; the key difference between this and a standard tricorder is a detachable hand-held high-resolution scanner stored in a compartment of the tricorder when not in use. The engineering tricorder is fine-tuned for starship engineering purposes. There are also many other lesser-used varieties of special-use tricorders. The word &amp;quot;tricorder&amp;quot; is an abbreviation of the device's full name, the &amp;quot;TRI-function reCORDER&amp;quot;, referring to the device's primary functions: sensing, computing, and recording.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;demolition-man&quot; class=&quot;ph&quot;&gt;Demolition Man&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1993&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#demolition-man&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/7bbccb48fa8e39774f4a764d1846a4ce.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The sex scene from Demolition Man&quot; src=&quot;https://phun-ky.net/img/blog/7bbccb48fa8e39774f4a764d1846a4ce.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/7bbccb48fa8e39774f4a764d1846a4ce.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The sex scene from Demolition Man&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;In this future, we do not have touched based sex. Boring. And that was what the character that Sylvester Stallone played though as well. He tries it, and then rips the interface off and have at it the old way.&lt;/p&gt;&lt;h3 id=&quot;fu-fme&quot; class=&quot;ph&quot;&gt;FU-FME&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2002&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#fu-fme&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;http://www.easylife.org/fufme/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The fu-fme product&quot; src=&quot;https://phun-ky.net/img/blog/7e6ef660c3acce71ac42d78ba5982909.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;http://www.easylife.org/fufme/&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The fu-fme product&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;FuckU-FuckMe(tm) for Windows 95, Windows 98, and Windows NT provides the most complete remote sex solution for the Internet and corporate intranet.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Powerful features let you sexually communicate with your remote partner and provide an absolutely realistic sensual experience of a real intercourse.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Okay, I have got to be honest with you, this was put in my talk as a humourous piece, but it has some merit to it. The porn industry was one of the leading players within technology. The adult industry pioneered streaming videos, tracking devices and online credit card transactions. Some also argues for that without porn, the VCR might have never taken off as a consumer product.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The adult industry are not necessarily the inventors of new technologies, but they are the first to use them and thus drive consumer adaption.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;But, in regards to the product displayed here, it was the male part of the product, that came with a female counterpart. You would plug the device into one of your 5.25 inch bays in your tower/computer, and have at it. But, this was a fad, thought up in the late nineties. It never came to the market, from what I could find.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;However, we see that more and more sexual gadgets comes with remote control, and paired with VR headsets, it is beginning to take of, both for men and women.&lt;/p&gt;&lt;h2 id=&quot;yep-thats-gonna-leave-a-mark&quot; class=&quot;ph&quot;&gt;Yep, that's gonna leave a mark&lt;a class=&quot;ph heading-link&quot; href=&quot;#yep-thats-gonna-leave-a-mark&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;the-avengers&quot; class=&quot;ph&quot;&gt;The Avengers&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2012&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-avengers&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/0269aa80dabf0c90c5b1649accb1cf27.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;One of the monitors with content you see in The Avengers&quot; src=&quot;https://phun-ky.net/img/blog/0269aa80dabf0c90c5b1649accb1cf27.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/0269aa80dabf0c90c5b1649accb1cf27.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;One of the monitors with content you see in The Avengers&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;It looks very cool and sleek and futuristic, but trying to focus on something on a transparent screen? Yikes, that drains the mind.&lt;/p&gt;&lt;h3 id=&quot;star-trek-the-next-generation&quot; class=&quot;ph&quot;&gt;Star Trek: The Next Generation&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1987&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-the-next-generation&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/7454d475520d12aed2aa0f9b89839f5d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The LCARS Graphical User Interface&quot; src=&quot;https://phun-ky.net/img/blog/7454d475520d12aed2aa0f9b89839f5d.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/7454d475520d12aed2aa0f9b89839f5d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The LCARS Graphical User Interface&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;The LCARS graphical user interface&amp;quot; was designed by scenic art supervisor and technical consultant Michael Okuda. The original design concept was influenced by a request from Gene Roddenberry that the instrument panels not have a great deal of activity on them. This minimalized look was designed to give a sense that the technology was much more advanced than in the original Star Trek.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;There is something simple and beautiful about this, so simplistic and so effective, or we are lead to belive it is in the Star Trek series. Every user of the system knows exactly where to press and what to do. I know that it is what they want us to believe in the shows, but if you come up with a UI system that actually works, without the need for bloated fanciness, the user is happy, right?&lt;/p&gt;&lt;h3 id=&quot;the-hunger-games&quot; class=&quot;ph&quot;&gt;The Hunger Games&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2012&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-hunger-games&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/d536dcdcbc3f2ec16a981001a0fb5ec1.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from The Hunger Games&quot; src=&quot;https://phun-ky.net/img/blog/d536dcdcbc3f2ec16a981001a0fb5ec1.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/d536dcdcbc3f2ec16a981001a0fb5ec1.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from The Hunger Games&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;It looks cool, and blue.., but if I remember correctly, the desk interfaces also had a tangible component, either with ultrasound haptics or physical objects appearing when needed to allow for better control. It looks very fancy, but I would love to see the outcome of a user test for this system :P&lt;/p&gt;&lt;h3 id=&quot;star-wars-the-return-of-the-jedi&quot; class=&quot;ph&quot;&gt;Star Wars: The Return of the Jedi&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1983&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-wars-the-return-of-the-jedi&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/c9f929c3af9ad26998eab3c6e69e056d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The targeting system of a T-65B X-wing starfighter in action&quot; src=&quot;https://phun-ky.net/img/blog/c9f929c3af9ad26998eab3c6e69e056d.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/c9f929c3af9ad26998eab3c6e69e056d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The targeting system of a T-65B X-wing starfighter in action&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;The targeting system of a T-65B X-wing starfighter in action&amp;quot;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Like many computer panel displays in the 1980s, the most prominent features of the X-wing's interior are its simple computer graphics. We get a really good look at this aiming display in A New Hope when the rebel squadron is engaged in its climactic assault against the Death Star.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;While there are many people to credit for the look of Star Wars (especially Ralph Mcquarrie's early concept art) the fact is real world circumstances and compromises were one of the biggest factors involved. The film had a relatively small budget and these were the days before CGI, so the legendary aesthetics were dependent on the set dresser, Roger Christian, being able to improvise.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Christian told Esquire that while working on the film he discovered that &amp;quot;if I bought airplane scrap and broke it down, I could stick it in the sets in specific ways — because there's an order to doing it, it's not just random. And that's the art of it. I understood how to do that — engineering and all that stuff. So George said, 'Yes, go do it.' And airplane scrap at that time, nobody wanted it. There were junkyards full of it, because they sold it by weight. I could buy almost an entire plane for 50 pounds.&amp;quot;&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;blade-runner&quot; class=&quot;ph&quot;&gt;Blade Runner&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1982&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#blade-runner&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1acbd2e473bd33faa0663ddc27896bf7.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from Blade Runner&quot; src=&quot;https://phun-ky.net/img/blog/1acbd2e473bd33faa0663ddc27896bf7.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1acbd2e473bd33faa0663ddc27896bf7.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from Blade Runner&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;alien&quot; class=&quot;ph&quot;&gt;Alien&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1979&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#alien&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/c15a80a4acc63dd19fa0e5aaa19330ba.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Prompt scene from Alien&quot; src=&quot;https://phun-ky.net/img/blog/c15a80a4acc63dd19fa0e5aaa19330ba.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/c15a80a4acc63dd19fa0e5aaa19330ba.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Prompt scene from Alien&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;In many of the science fiction movies you that were made in the eighties or early nineties, you see that the interfaces mostly was comprised of 2 colors. A signal color like green, and a backdrop color that was black.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I remember from my earliest interactions with computers and computer games that we only had 2 colors. Not colors to choose from, but that was the colors that the current displays were capable of.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;When I see these kind of interfaces, I get a bit nostalgic, but I also come to think about the simplicity of it. It is not cluttered with fancy UI stuff, but does what it is supposed to do. Relay information and handle input.&lt;/p&gt;&lt;h3 id=&quot;red-planet&quot; class=&quot;ph&quot;&gt;Red Planet&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2000&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#red-planet&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/PFeVHOmEvi8?controls=0&amp;amp;start=120&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from the movie Red Planet&quot; src=&quot;https://phun-ky.net/img/external/youtube-PFeVHOmEvi8-maxresdefault.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/PFeVHOmEvi8?controls=0&amp;amp;start=120&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from the movie Red Planet&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;What I love about this scene, is that they pull up a &amp;quot;scroll&amp;quot; that contains a transparent LED screen with built in sensors and camera. They pull out the screen and overlay that over the horizon to get a visual match of the ridges, to get the location where they are. We have that technology today, but not put together.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;In all practicalities a cool gadget, but the targeted user group, for now, is very limited.&lt;/p&gt;&lt;h3 id=&quot;google-glass&quot; class=&quot;ph&quot;&gt;Google Glass&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2011&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#google-glass&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/6f65c951714a6d351efd8fb3432f60b6.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Google Glass&quot; src=&quot;https://phun-ky.net/img/blog/6f65c951714a6d351efd8fb3432f60b6.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/6f65c951714a6d351efd8fb3432f60b6.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Google Glass&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Another product not reaching its full potential. I remember the hype, but it never really took of.&lt;/p&gt;&lt;h2 id=&quot;heads-up&quot; class=&quot;ph&quot;&gt;Heads up&lt;a class=&quot;ph heading-link&quot; href=&quot;#heads-up&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;In this section of the talk, I tried to combine cool Heads up display (HUD) uses in the science fiction scene. But also a real life HUD from the F-35, and a reel from the Augmented Reality (AR) scene.&lt;/p&gt;&lt;h3 id=&quot;minority-report&quot; class=&quot;ph&quot;&gt;Minority Report&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2002&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#minority-report&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/9d934350c07fbcdd38cc61c6d32dacf1.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;A HUD from the movie Minority Report&quot; src=&quot;https://phun-ky.net/img/blog/9d934350c07fbcdd38cc61c6d32dacf1.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/9d934350c07fbcdd38cc61c6d32dacf1.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;A HUD from the movie Minority Report&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;This looks very rigid and fixed, and it's stock, meaning that it is not in particular tailored to the user.&lt;/p&gt;&lt;h3 id=&quot;iron-man&quot; class=&quot;ph&quot;&gt;Iron Man&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2008&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#iron-man&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/249bf6217c7a271cadf63147d680ec4b.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;A HUD from the movie Minority Report&quot; src=&quot;https://phun-ky.net/img/blog/249bf6217c7a271cadf63147d680ec4b.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/249bf6217c7a271cadf63147d680ec4b.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;A HUD from the movie Minority Report&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;I remember viewing a similar talk about this subject during an inhouse event at my previous company, and the designer that had that talk could not fathom the logic of the speed used in Tony Starks HUD. I was too fast. But what I reacted upon was that he did not see that the HUD Tony created, was for him. Not for any other user, but for himself. That means that the UI is bespoken to Tonys requirements and needs, to the point.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;This is the reality we face daily (technologists and designers that makes UI), and that is that it is impossible to tailor fit whole experiences around one single user. We have to find the least common denominator, and hope that it will be a good fit.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I foresee that in the future of interfaces, experiencee has to be more and more tailored to the user.&lt;/p&gt;&lt;h3 id=&quot;joint-strike-fighter-sim&quot; class=&quot;ph&quot;&gt;Joint Strike Fighter (sim)&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2014&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#joint-strike-fighter-sim&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/Ay6g66FbkmQ?controls=0&amp;amp;start=120&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Vidoe of the JSF HUD, simulated&quot; src=&quot;https://phun-ky.net/img/external/youtube-Ay6g66FbkmQ-maxresdefault.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/Ay6g66FbkmQ?controls=0&amp;amp;start=120&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Vidoe of the JSF HUD, simulated&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;hyper-reality&quot; class=&quot;ph&quot;&gt;Hyper Reality&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2016&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#hyper-reality&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://player.vimeo.com/video/166807261?autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Hyper Reality&quot; src=&quot;https://phun-ky.net/img/external/vimeo-571534199.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://player.vimeo.com/video/166807261?autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Hyper Reality&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;you-did-what-with-it&quot; class=&quot;ph&quot;&gt;You did WHAT with it!?&lt;a class=&quot;ph heading-link&quot; href=&quot;#you-did-what-with-it&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;star-trek-iv-the-voyage-home&quot; class=&quot;ph&quot;&gt;Star Trek IV: The Voyage Home&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1986&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-iv-the-voyage-home&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/LkqiDu1BQXY?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;amp;start=63&amp;amp;end=120&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene with Scotty and the 80's computer from Star Trek IV: The Voyage Home&quot; src=&quot;https://phun-ky.net/img/external/youtube-LkqiDu1BQXY-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/LkqiDu1BQXY?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&amp;amp;start=63&amp;amp;end=120&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene with Scotty and the 80's computer from Star Trek IV: The Voyage Home&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Every time I see this scene, I crack up, it is hilarious how Scotty tries to use the computer. But he is savvy enough within usage of computers so he manages to get around the user obstacle and creates the recipe for transparent aluminium.&lt;/p&gt;&lt;h3 id=&quot;minority-report&quot; class=&quot;ph&quot;&gt;Minority Report&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2002&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#minority-report&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/7ebba539ea448bc05d00bce3c699ffc3.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Tony Starks HUD from Iron Man&quot; src=&quot;https://phun-ky.net/img/blog/7ebba539ea448bc05d00bce3c699ffc3.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/7ebba539ea448bc05d00bce3c699ffc3.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Tony Starks HUD from Iron Man&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;I never really quite understood the interface for this &amp;quot;device&amp;quot; from the movie. A lot of gesturing.&lt;/p&gt;&lt;h3 id=&quot;the-matrix&quot; class=&quot;ph&quot;&gt;The Matrix&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1999&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-matrix&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/84b15c75741b7e7465e502f391160321.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from The Matrix&quot; src=&quot;https://phun-ky.net/img/blog/84b15c75741b7e7465e502f391160321.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/84b15c75741b7e7465e502f391160321.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from The Matrix&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;This is the most obtrusive interaction I have ever seen, if my memory serves me correctly. A male connector is inserted into a female port in the backside of the head, connection the brain steam and spine with the system.&lt;/p&gt;&lt;h3 id=&quot;prometheus&quot; class=&quot;ph&quot;&gt;Prometheus&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2012&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#prometheus&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/b3a9f720b74a6d1e8921268f7eacaf5c.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from the movie Prometheus&quot; src=&quot;https://phun-ky.net/img/blog/b3a9f720b74a6d1e8921268f7eacaf5c.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/b3a9f720b74a6d1e8921268f7eacaf5c.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from the movie Prometheus&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Prometheus is for me one of the better visual movies, in both scenery, filmatography and also the visual effects. This scene is were they activate a star chart, and can navigate through it.&lt;/p&gt;&lt;h3 id=&quot;star-gate-universe&quot; class=&quot;ph&quot;&gt;Star Gate Universe&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2009&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-gate-universe&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/29ef4ead0572f4996453301e13f199c7.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The Destiny interface chair&quot; src=&quot;https://phun-ky.net/img/blog/29ef4ead0572f4996453301e13f199c7.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/29ef4ead0572f4996453301e13f199c7.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The Destiny interface chair&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;I really loved Star Gate Universe. Brilliant actors, good story, but cancelled.. This is the Destiny interface chari, where the user is locked in and can control the ship. It uses brain waves to interface the &amp;quot;pilot&amp;quot; with the ship.&lt;/p&gt;&lt;h3 id=&quot;x-men&quot; class=&quot;ph&quot;&gt;X-Men&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2000&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#x-men&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/64b9b079495f2f86e56269eb9f4f2c49.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Charles Xavier using the Cerebro&quot; src=&quot;https://phun-ky.net/img/blog/64b9b079495f2f86e56269eb9f4f2c49.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/64b9b079495f2f86e56269eb9f4f2c49.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Charles Xavier using the Cerebro&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;The Cerebro was a machine that was used to enhance brain waves, especially of those who are telepaths. You put on the head gear and it amplifies the brain waves.&lt;/p&gt;&lt;h3 id=&quot;star-gate-universe&quot; class=&quot;ph&quot;&gt;Star Gate Universe&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2009&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-gate-universe&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://stargate.fandom.com/wiki/Long-range_communication_stone&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Star Gate Universe long-range communication stones&quot; src=&quot;https://phun-ky.net/img/blog/bb2ab9a5c7ed485b15759682b574a132.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://stargate.fandom.com/wiki/Long-range_communication_stone&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Star Gate Universe long-range communication stones&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;The simplest interface I have seen so far. You pick up a stone, put it on the lighted box, and your mind is swapped with a user on the other end. You can be on the other side of the universe, and still communicate through another persons body. Nifty.&lt;/p&gt;&lt;h3 id=&quot;johnny-mnemonic&quot; class=&quot;ph&quot;&gt;Johnny Mnemonic&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1995&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#johnny-mnemonic&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/0c3fdee2c36880ff4363f6f2871283fc.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from Johnny Mnemonic&quot; src=&quot;https://phun-ky.net/img/blog/0c3fdee2c36880ff4363f6f2871283fc.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/0c3fdee2c36880ff4363f6f2871283fc.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from Johnny Mnemonic&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;We see Johnny type something on his virtual keyboard, then selects from a pull down menu.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;In this shot we are looking at the real world, not the virtual, and I want to mention how clear and well-defined all the physical actions by actor Keanu Reeves are. I very much doubt that the headset he is wearing actually worked, so he is doing this without being able to see anything.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Will regular users of virtual reality systems be this precise with their gestures? Datagloves have always been expensive and rare, making studies difficult. But several systems offer submillimeter gestural tracking nowadays: version 2 of Microsoft Kinect, Google's Soli, and Leap Motion are a few, and much cheaper and less fragile than a dataglove. Using any of these for regular desktop application tasks rather than games would be an interesting experiment.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;There is a reason why we do not use this everywhere, but at the time, it looked &lt;em class=&quot;ph&quot;&gt;really&lt;/em&gt; cool! I remember I wanted one..&lt;/p&gt;&lt;h3 id=&quot;star-trek-the-next-generation&quot; class=&quot;ph&quot;&gt;Star Trek: The Next Generation&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1987&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-the-next-generation&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/a9469f75eb3e27cb6f8696cfcd9fb55c.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The holosuite/holodeck from Star Trek&quot; src=&quot;https://phun-ky.net/img/blog/a9469f75eb3e27cb6f8696cfcd9fb55c.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/a9469f75eb3e27cb6f8696cfcd9fb55c.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The holosuite/holodeck from Star Trek&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;We cannot mention interfaces and Star Trek without bringing up the holodeck. It is a technological marvel in that universe, letting you interact with objects thanks to hard light, and create every scenario you want.&lt;/p&gt;&lt;h2 id=&quot;super-mario-bros-controlled-with-a-theremin&quot; class=&quot;ph&quot;&gt;Super Mario Bros. controlled with a theremin&lt;a class=&quot;ph heading-link&quot; href=&quot;#super-mario-bros-controlled-with-a-theremin&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/YnZeI8uLJnw?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Super Mario Bros. controlled with a theremin&quot; src=&quot;https://phun-ky.net/img/external/youtube-YnZeI8uLJnw-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/YnZeI8uLJnw?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Super Mario Bros. controlled with a theremin&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Yeah, no. It is cool and all, but I see no real practical usage of theremins controlling other stuff. But, it is an interface. Boiled down, it is just gesture controls.&lt;/p&gt;&lt;h3 id=&quot;fifth-element&quot; class=&quot;ph&quot;&gt;Fifth Element&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1997&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#fifth-element&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/071f794a80fd2ac5e3429430b2387009.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from the movie Fifth Element, where a woman changes the color of her nails instantaniously by interfacing with a device&quot; src=&quot;https://phun-ky.net/img/blog/071f794a80fd2ac5e3429430b2387009.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/071f794a80fd2ac5e3429430b2387009.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from the movie Fifth Element, where a woman changes the color of her nails instantaniously by interfacing with a device&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;total-recall&quot; class=&quot;ph&quot;&gt;Total Recall&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1990&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#total-recall&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/212b38a275b1b53d3e74deae47532593.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from the movie Total Recall, where a woman changes the color of her nails by using a pen-like device&quot; src=&quot;https://phun-ky.net/img/blog/212b38a275b1b53d3e74deae47532593.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/212b38a275b1b53d3e74deae47532593.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from the movie Total Recall, where a woman changes the color of her nails by using a pen-like device&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Interfaces are not only UIs, it is also interaction with gadgets. We see that in the real world, there is a rising trend for printed nail polish. The product depicted under is a fairly large machines, but there are also machines that are smaller, like a small handbag size.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/Yvlc6C8YLug?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot; Target teams with new robot to give 10-minute, $10 manicures in store&quot; src=&quot;https://phun-ky.net/img/external/youtube-Yvlc6C8YLug-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/Yvlc6C8YLug?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt; Target teams with new robot to give 10-minute, $10 manicures in store&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;its-showtime&quot; class=&quot;ph&quot;&gt;It's SHOWTIME&lt;a class=&quot;ph heading-link&quot; href=&quot;#its-showtime&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Over the years, I have watched countless of science fiction movies, and I was and still am amazed on how cool and frictionless the interfaces seemed to be. Characters seemed to operate every system pretty error free,and without hazzle. Which we all now in the UI world today is quite impressive. I've gathered some of the UI reels from the science fiction movies that I like.&lt;/p&gt;&lt;h3 id=&quot;mark-coleran&quot; class=&quot;ph&quot;&gt;Mark Coleran&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2008&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#mark-coleran&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://player.vimeo.com/video/1563485?autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Mark Coleran | Screen Reel  08.06&quot; src=&quot;https://phun-ky.net/img/external/vimeo-21013054.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://player.vimeo.com/video/1563485?autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Mark Coleran | Screen Reel  08.06&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;What do The Bourne Identity, Mission Impossible 3, Mr &amp;amp; Mrs Smith, Children of Men, and Agent Cody Banks 2 have in common? Absurd, futuristic, and totally fake software interfaces, designed in part by one man: Mark Coleran.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Designing a fake dashboard for an imagined supercomputer or a hovering control panel for a worldwide surveillance system is a different process than creating a genuinely usable UI. Your goal is to imply things: that a machine is powerful; that a villain is formidable; that the software is intuitive, but that the breadth of its powers borders on unknowable. At no point does real-world usability factor in, and nor should it—this is pure fantasy, for an audience raised on Start Buttons, desktop icons and tree menus. Here's a gallery of some of the most famous interfaces; see how many you recognize.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Coleran's UIs are a mix of proudly retro and boldly new, mingling compact pixel art, wireframes and the solid, militaristic reds, blues and blacks of software from the 80s with touch-free gesture systems and overelaborate visualizations. It's the kind of stuff you take for granted in action and sci-fi films, but rounded up in one place, it's a strangely impressive, almost cohesive view of the future of software, as designed by someone with no constraints.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;prometheus&quot; class=&quot;ph&quot;&gt;Prometheus&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2012&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#prometheus&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/o5ztBii2_wA?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Prometheus UI Reel&quot; src=&quot;https://phun-ky.net/img/external/youtube-o5ztBii2_wA-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/o5ztBii2_wA?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Prometheus UI Reel&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Territory worked with Ridley Scott and 20th Century Fox to design and animate hundreds of computer graphics and projections both on-set and post for Prometheus.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;guardians-of-the-galaxy&quot; class=&quot;ph&quot;&gt;Guardians of the Galaxy&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2014&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#guardians-of-the-galaxy&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/b0ve2nHEVWw?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Guardians of the Galaxy UI Reel&quot; src=&quot;https://phun-ky.net/img/external/youtube-b0ve2nHEVWw-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/b0ve2nHEVWw?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Guardians of the Galaxy UI Reel&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Showreel covering Territory's UI concepts, design and animation for both on-set playback and VFX shots for Marvel Studio's 2014 blockbuster, Guardians of the Galaxy.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;pacific-rim&quot; class=&quot;ph&quot;&gt;Pacific Rim&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2013&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#pacific-rim&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/NVm7rNd0fEU?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;hybride.vfx.breakdowns.films // PACIFIC RIM (2013)&quot; src=&quot;https://phun-ky.net/img/external/youtube-NVm7rNd0fEU-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/NVm7rNd0fEU?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;hybride.vfx.breakdowns.films // PACIFIC RIM (2013)&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;For this second collaboration with Director Guillermo del Toro, Hybride delivered graphic design content for the holographic projections inside Jaeger Conn-Pods and control rooms (Loccents). Hybride's graphic designers also created visual signatures for the HUDS (heads-up displays) allowing audiences to instantly recognize each robot's country of origin.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;In addition, Hybride artists produced arm grid and hand disk holograms around the pilot suits and also designed and created motion graphics for control room monitors as well as for the holographic television screens and computer monitors seen throughout the film.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;iron-man-2&quot; class=&quot;ph&quot;&gt;Iron Man 2&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2010&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#iron-man-2&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/VxRTsmCy93Y?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Prologue Films- Iron Man 2 VFX Montage&quot; src=&quot;https://phun-ky.net/img/external/youtube-VxRTsmCy93Y-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/VxRTsmCy93Y?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Prologue Films- Iron Man 2 VFX Montage&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;ive-shown-you-mine-now-show-me-yours&quot; class=&quot;ph&quot;&gt;I've shown you mine, now show me yours&lt;a class=&quot;ph heading-link&quot; href=&quot;#ive-shown-you-mine-now-show-me-yours&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;limit-theory&quot; class=&quot;ph&quot;&gt;Limit Theory&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2012&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#limit-theory&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/Ekq56VZqQvs?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Limit Theory Development Update #11&quot; src=&quot;https://phun-ky.net/img/external/youtube-Ekq56VZqQvs-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/Ekq56VZqQvs?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Limit Theory Development Update #11&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Limit Theory ( &lt;a class=&quot;ph&quot; href=&quot;http://ltheory.com&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;http://ltheory.com&lt;/a&gt; ) is an open-world, sandbox space simulation game&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;bonus-images&quot; class=&quot;ph&quot;&gt;Bonus images&lt;a class=&quot;ph heading-link&quot; href=&quot;#bonus-images&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;In the talk, I added some more images from the movies, talking about each one of them, to give more examples on future interfaces.&lt;/p&gt;&lt;h3 id=&quot;alien&quot; class=&quot;ph&quot;&gt;Alien&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1979&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#alien&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/6de630532c95224dac380f480c89a98d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;A rendered view of one of the cockpits in one of the ships in the Alien franchise&quot; src=&quot;https://phun-ky.net/img/blog/6de630532c95224dac380f480c89a98d.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/6de630532c95224dac380f480c89a98d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;A rendered view of one of the cockpits in one of the ships in the Alien franchise&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;2001-a-space-odyssee&quot; class=&quot;ph&quot;&gt;2001: A space odyssee&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1968&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#2001-a-space-odyssee&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/f7062ced6c66dbae760743be12774387.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from 2001: A space odyssee&quot; src=&quot;https://phun-ky.net/img/blog/f7062ced6c66dbae760743be12774387.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/f7062ced6c66dbae760743be12774387.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from 2001: A space odyssee&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Dark room, bright lights, tangible buttons. Looks familiar?&lt;/p&gt;&lt;h3 id=&quot;mission-to-mars&quot; class=&quot;ph&quot;&gt;Mission to mars&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2000&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#mission-to-mars&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/447a87b83d7858eac3652cb9bc2b0902.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;An arm based unit &quot; src=&quot;https://phun-ky.net/img/blog/447a87b83d7858eac3652cb9bc2b0902.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/447a87b83d7858eac3652cb9bc2b0902.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;An arm based unit &lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Simple, informative and bulky.&lt;/p&gt;&lt;h3 id=&quot;star-trek-into-darkness&quot; class=&quot;ph&quot;&gt;Star Trek: Into Darkness&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2013&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-into-darkness&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/9fc69bbdb4926dd8109a2821650a69a5.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from Star Trek: Into Darkness,from the bridge of the Enterprise&quot; src=&quot;https://phun-ky.net/img/blog/9fc69bbdb4926dd8109a2821650a69a5.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/9fc69bbdb4926dd8109a2821650a69a5.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from Star Trek: Into Darkness,from the bridge of the Enterprise&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Not a too big fan of the reboot timeline, and the lens flare over usage of JJ Abrams. But, it is a futuristic interface, and it is BLUE..&lt;/p&gt;&lt;h3 id=&quot;jurassic-park&quot; class=&quot;ph&quot;&gt;Jurassic Park&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1993&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#jurassic-park&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/54b9f73d0edcce9018fe38405366a820.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;3d map scene of the database from Jurassic Park&quot; src=&quot;https://phun-ky.net/img/blog/54b9f73d0edcce9018fe38405366a820.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/54b9f73d0edcce9018fe38405366a820.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;3d map scene of the database from Jurassic Park&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;You simply cannot avoid mentioning this scene. It looked so cool! A 3d map of a database? Wicked. Usable? Not even if hell froze over. There are better ways of visualising a database, right?&lt;/p&gt;&lt;h3 id=&quot;star-wars&quot; class=&quot;ph&quot;&gt;Star Wars&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1977&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-wars&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/f7ce07a764cfd04f7b40d49d1bbcaf88.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;R2-D2 accessing the computer on the Death Star&quot; src=&quot;https://phun-ky.net/img/blog/f7ce07a764cfd04f7b40d49d1bbcaf88.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/f7ce07a764cfd04f7b40d49d1bbcaf88.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;R2-D2 accessing the computer on the Death Star&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Male port connecting to a female port, to access a computer. Oh, and of course, on every command, the access port has to be turned in different directions.&lt;/p&gt;&lt;h3 id=&quot;the-day-the-earth-stood-still&quot; class=&quot;ph&quot;&gt;The day the earth stood still&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1951&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-day-the-earth-stood-still&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/57b9046afa77da4d3d1efef3eb5eddf1.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from The day the earth stood still&quot; src=&quot;https://phun-ky.net/img/blog/57b9046afa77da4d3d1efef3eb5eddf1.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/57b9046afa77da4d3d1efef3eb5eddf1.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from The day the earth stood still&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;star-trek-the-original-series&quot; class=&quot;ph&quot;&gt;Star Trek: The Original Series&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1966&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#star-trek-the-original-series&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/13708d7e880af2b5c556db2b09ecb310.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Nyota Uhura, portrayed by Nichelle Nichols, in front of the communications console&quot; src=&quot;https://phun-ky.net/img/blog/13708d7e880af2b5c556db2b09ecb310.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/13708d7e880af2b5c556db2b09ecb310.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Nyota Uhura, portrayed by Nichelle Nichols, in front of the communications console&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Still, even though we are in the far future, the visual effects portrays the need for very striking visual colors on the buttons and nobs, but also very tangible buttons and nobs. And if I remember correctly, audible feedback when you pressed or flicked a switch. Seems crude, but it works.&lt;/p&gt;&lt;h3 id=&quot;alien&quot; class=&quot;ph&quot;&gt;Alien&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1979&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#alien&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/47b03ddcbfe5e0b2add23baff412e4fd.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Scene from the movie Alien&quot; src=&quot;https://phun-ky.net/img/blog/47b03ddcbfe5e0b2add23baff412e4fd.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/47b03ddcbfe5e0b2add23baff412e4fd.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Scene from the movie Alien&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;back-to-the-future&quot; class=&quot;ph&quot;&gt;Back to the future&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1985&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#back-to-the-future&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/06dc87bffb57319041985d977535792d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;The display and input  for time travel in the Delorean&quot; src=&quot;https://phun-ky.net/img/blog/06dc87bffb57319041985d977535792d.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/06dc87bffb57319041985d977535792d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;The display and input  for time travel in the Delorean&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;blade-runner&quot; class=&quot;ph&quot;&gt;Blade Runner&lt;span class=&quot;ph years-ago&quot; data-year=&quot;1982&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#blade-runner&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ca1b82e45ef57d47e90e8067de045a7d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Still from Bladerunner, scene from within a vehicle with several displays&quot; src=&quot;https://phun-ky.net/img/blog/ca1b82e45ef57d47e90e8067de045a7d.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/ca1b82e45ef57d47e90e8067de045a7d.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Still from Bladerunner, scene from within a vehicle with several displays&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;the-process&quot; class=&quot;ph&quot;&gt;The process&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-process&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;div class=&quot;ph ascii-flow&quot;&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;txt&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-txt&quot; language=&quot;txt&quot;&gt;&lt;code class=&quot;ph txt language-txt&quot;&gt;┌─────────────────────────────────────────────────────────────────────┐
│                                                                     │
│ Films cite existing technology                                      │
│                                                                     │
└───────────┬─────────────────────────────────────────────────────────┘
            │
            │
            │
            │
┌───────────▼───────────────┐       ┌─────────────────────────────────┐
│                           ◄───────┤                                 │
│ Technology inspires film  │       │    Films inspire new technology │
│                           ├───────►                                 │
└───────────▲───────────────┘       └────────────────┬────────────────┘
            │                                        │
            │                                        │
            │                                        │
            │                                        │
            │                                        │
┌───────────┴────────────────────────────────────────▼────────────────┐
│                                                                     │
│ Filmmakers and technologists develop shared new visions             │
│                                                                     │
└─────────────────────────────────────────────────────────────────────┘
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;figcaption class=&quot;ph&quot;&gt;Films cite existing technology, technology inspires film, films inspire new technology and filmmakers and technologitsts develeop snared new visions&lt;/figcaption&gt;&lt;/figure&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Films cite existing technology&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Technology inspires film&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Films inspire new technology&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Filmmakers and technologitsts develeop snared new visions&lt;/li&gt;&lt;/ol&gt;&lt;h2 id=&quot;are-we-there-yet&quot; class=&quot;ph&quot;&gt;Are we there yet?&lt;a class=&quot;ph heading-link&quot; href=&quot;#are-we-there-yet&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;ultrahaptics&quot; class=&quot;ph&quot;&gt;Ultrahaptics&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2013&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#ultrahaptics&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/dab5c7b213be878dae6f4d8392d7cd7a.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Image of the concept car interface with Leap Motion&quot; src=&quot;https://phun-ky.net/img/blog/dab5c7b213be878dae6f4d8392d7cd7a.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/dab5c7b213be878dae6f4d8392d7cd7a.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Image of the concept car interface with Leap Motion&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Haptic controls: No amount of photos can make them look good. Try it out, though: It's a little bit like magic. If you look closely, you can see the Leap Motion that's being used for the hand tracking. The haptic feedback comes from the ultrasonic array immediately below the Leap Motion.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The second technology is a haptic gesture control system. It uses Ultrahaptics' technology to give feedback to the driver. Instead of having to touch a screen, drivers can simply move their hand in the air. The sensors &amp;quot;see&amp;quot; the hand and by using ultrasound technology, the driver can &amp;quot;feel&amp;quot; the controls. Imagine swiping to the right to skip to the next track of music, for example, and feeling a little ridge in thin air that signifies that you've skipped a track. Or, perhaps a better example, moving your hand up until you feel a tingling sensation signifying the air conditioning controls, before swiping left or right to turn the temperature up or down.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;bmws-haptic-interface-concept-car&quot; class=&quot;ph&quot;&gt;BMW's haptic interface concept car&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2017&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#bmws-haptic-interface-concept-car&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/H3St35hufc4?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;CES 2017: BMW's haptic interface concept car | Ars Technica&quot; src=&quot;https://phun-ky.net/img/external/youtube-H3St35hufc4-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/H3St35hufc4?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;CES 2017: BMW's haptic interface concept car | Ars Technica&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;AirTouch debuted at CES 2016 and uses sensors on the dash to pick up hand gestures. It allows you to control parts of the information system without pressing any physical buttons. HoloActive Touch adds a new layer by placing holographic action buttons near the center console. The buttons provide haptic feedback when &amp;quot;pressed&amp;quot; using a hand gesture. BMW told Ars that this concept car was mostly designed with autonomous vehicles in mind and likely wouldn't be a reality for another 15 years. Nevertheless, it was exciting to play with now. Check out the video below to see a demo of HoloActive and BMW's concept car.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;electric-vehicle-engine-experimental-for-fantasy-by-gleb-kuznetsov-for-fntsy&quot; class=&quot;ph&quot;&gt;Electric vehicle engine experimental for Fantasy by Gleb Kuznetsov✈ for FΛNTΛSY&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2016&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#electric-vehicle-engine-experimental-for-fantasy-by-gleb-kuznetsov-for-fntsy&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/dc19014b8a8be885ac8b77adb6784bb7.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Electric vehicle engine experimental for Fantasy by Gleb Kuznetsov✈ for FΛNTΛSY&quot; src=&quot;https://phun-ky.net/img/blog/dc19014b8a8be885ac8b77adb6784bb7.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/dc19014b8a8be885ac8b77adb6784bb7.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Electric vehicle engine experimental for Fantasy by Gleb Kuznetsov✈ for FΛNTΛSY&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;pizza-hut-concept-table&quot; class=&quot;ph&quot;&gt;Pizza Hut Concept Table&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2014&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#pizza-hut-concept-table&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/O3a8QhZ6Mvk?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Pizza Hut Interactive Concept Table&quot; src=&quot;https://phun-ky.net/img/external/youtube-O3a8QhZ6Mvk-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/O3a8QhZ6Mvk?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Pizza Hut Interactive Concept Table&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;aquatop-display&quot; class=&quot;ph&quot;&gt;AquaTop display&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2012&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#aquatop-display&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://player.vimeo.com/video/119913982?autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;AquaTop display is a touchscreen display for your bath&quot; src=&quot;https://phun-ky.net/img/external/vimeo-507525161.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://player.vimeo.com/video/119913982?autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;AquaTop display is a touchscreen display for your bath&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;The display is projected onto a bath filled with water mixed with bath salts, and a Kinect is used to detect interaction. It can recognise individual fingers sticking out to of the bath by 1.4 cm or more as well as interactions from above the surface of the water. It is being developed by the Koike Lab. at the University of Electro-Communications.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;inmode-tangile-media-group-mit-labs&quot; class=&quot;ph&quot;&gt;inMode - Tangile Media Group, MIT Labs&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2014&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#inmode-tangile-media-group-mit-labs&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/lvtfD_rJ2hE?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Amazing Technology Invented By MIT - Tangible Media&quot; src=&quot;https://phun-ky.net/img/external/youtube-lvtfD_rJ2hE-maxresdefault.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/embed/lvtfD_rJ2hE?rel=0&amp;amp;controls=0&amp;amp;showinfo=0&amp;amp;autoplay=1&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Amazing Technology Invented By MIT - Tangible Media&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;At the MIT Media Lab, the Tangible Media Group believes the future of computing is tactile. Unveiled today, the inFORM is MIT's new scrying pool for imagining the interfaces of tomorrow. Almost like a table of living clay, the inFORM is a surface that three-dimensionally changes shape, allowing users to not only interact with digital content in meatspace, but even hold hands with a person hundreds of miles away. And that's only the beginning.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Created by Daniel Leithinger and Sean Follmer and overseen by Professor Hiroshi Ishii, the technology behind the inFORM isn't that hard to understand. It's basically a fancy Pinscreen, one of those executive desk toys that allows you to create a rough 3-D model of an object by pressing it into a bed of flattened pins. With inFORM, each of those &amp;quot;pins&amp;quot; is connected to a motor controlled by a nearby laptop, which can not only move the pins to render digital content physically, but can also register real-life objects interacting with its surface thanks to the sensors of a hacked Microsoft Kinect.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h3 id=&quot;hci-group-university-of-munich&quot; class=&quot;ph&quot;&gt;HCI Group, University of Munich&lt;span class=&quot;ph years-ago&quot; data-year=&quot;2013&quot;&gt;&lt;/span&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#hci-group-university-of-munich&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The video that was here (LiquiTouch - Water as a Medium for Versatile Tactile Feedback on Touch Surfaces) is no longer available.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;LiquiTouch is a robotic arm with a water-nozzle-equipped combined with an interactive touch surface . The robotic arm is constantly following the finger intaracting with the touchscreen. As soon as the user touches a virtual element on the screen, a thin jet of water water is shot at the finger.&lt;/p&gt;&lt;h3 id=&quot;calart-redesigning-the-rebel-pilot-targeting-system&quot; class=&quot;ph&quot;&gt;Calart, Redesigning the rebel pilot targeting system&lt;a class=&quot;ph heading-link&quot; href=&quot;#calart-redesigning-the-rebel-pilot-targeting-system&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://videopress.com/v/OGt68hof&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Redesigning the rebel pilot targeting system&quot; src=&quot;https://phun-ky.net/img/external/wordpress-video_final_abbyjulia-desktop_hd.original.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://videopress.com/v/OGt68hof&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Redesigning the rebel pilot targeting system&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;are-we-going-somewhere&quot; class=&quot;ph&quot;&gt;Are we going somewhere?&lt;a class=&quot;ph heading-link&quot; href=&quot;#are-we-going-somewhere&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Well, obviously, but which direction and at what pace?&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;When it comes to interface design and creation of these, there are some easy development steps, for example on creating a HUD with frontend (JavaScript and CSS).&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I have created a &lt;em class=&quot;ph&quot;&gt;really&lt;/em&gt; simple and crude example on how you can start develop your own HUD. This code expects that the HUD is projected towards the user, like a back lit movie screen.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;To be able to achieve that, we have to mirror the output, and that is very easy. Create your science fiction inspired HUD, and mirror it with 3 lines of code:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;css&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-css&quot; language=&quot;css&quot;&gt;&lt;code class=&quot;ph css language-css&quot;&gt;html {
  transform: scale(-1, 1);
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/futture-interfaces-codepen-min.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of Sakura Animation using WebGl&quot; src=&quot;https://phun-ky.net/img/blog/futture-interfaces-codepen-min.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/futture-interfaces-codepen-min.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of Sakura Animation using WebGl&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;See the Pen &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://codepen.io/phun-ky/pen/MELrzv&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Sakura Animation using WebGl&lt;/a&gt;&amp;quot; by Alexander Vassbotn Røyne-Helgesen (&lt;a class=&quot;ph&quot; href=&quot;https://codepen.io/phun-ky&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;@phun-ky&lt;/a&gt;) on &lt;a class=&quot;ph&quot; href=&quot;https://codepen.io&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;CodePen&lt;/a&gt;&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;closing-thoughts&quot; class=&quot;ph&quot;&gt;Closing thoughts&lt;a class=&quot;ph heading-link&quot; href=&quot;#closing-thoughts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;From the influence we see within the science fiction scene, we see that there are several perspectives on how the future would look for interfaces, both visual interfaces for presentation, and tangible interfaces for control and feedback.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;We see also that in some ways, we are not getting rid of the tangible. We humans seem to prefer the sense of touch. Not a radical thought in any way, since that sense has been perfected over hundreds of thousands of years in our biology. Specifically, we also see that trend in the automotive industry, where shiny and glossy touch screens are getting more and more replaced by buttons, which are more tactile and tangible.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;For the visual part, we see that several directors tend to get more and more &amp;quot;posh&amp;quot; with their interfaces, leaving the UX (user interaction) to a stone cold zero percent. But it looks good, ey?&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;SciFi movies influence and are influenced by public perceptions of technology&lt;/p&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;It's not that the user interfaces that the effects designers were in anyway not cool or fancy of that ages, but design is not a constant. The interface design that looks futuristic today, could be obsolete tomorrow.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>History of phun-ky.net</title>
      <link>https://phun-ky.net/2023/09/25/history-of-phun-kynet</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/09/25/history-of-phun-kynet</guid>
      <pubDate>Mon, 25 Sep 2023 00:00:00 GMT</pubDate>
      <category>Other</category>
      <category>history</category>
      <category>blog</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;I have had this website since 2001, and I though it was about time to go down the memory lane, to see how much it has evoled for over 20 years&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;div class=&quot;ph message warning&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Disclaimer&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;I am a frontender, not a designer, as you will see..&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Thanks to the &lt;a class=&quot;ph&quot; href=&quot;https://archive.org/web/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;WayBack Machine&lt;/a&gt;, I was able to get a hold of some screenshots for my old versions of this site. Let us go through them and see how much they have evolved, or not. Bear in mind that the &lt;a class=&quot;ph&quot; href=&quot;https://archive.org/web/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;WayBack Machine&lt;/a&gt; does not save images or all external CSS, so the outcome of the screenshots is not 100%, but you get the gist of it.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-01.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-01.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-01.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Yeah.. I remember this setup. It was back in 2001 when &amp;quot;everything&amp;quot; was made in &lt;a class=&quot;ph&quot; href=&quot;https://www.webdesignmuseum.org/old-software/html-editors/macromedia-dreamweaver-1-2&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Macromedia Dreamwever&lt;/a&gt;, and every site had the mandatory &amp;quot;best viewed in …&amp;quot; phrase.. And of course, a catchy tagline, mine was &amp;quot;be free, be fly, be phun-ky&amp;quot;. *cringe*&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;And yes, a random quote that I liked.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The name &lt;code class=&quot;ph language-&quot; content=&quot;phun-ky&quot;&gt;phun-ky&lt;/code&gt;, is actually the nick I started to use by the turn of the millenia. Before that I used the &lt;code class=&quot;ph language-&quot; content=&quot;redavr&quot;&gt;redavr&lt;/code&gt; nick, because i loved &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Command_%26_Conquer:_Red_Alert&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Command &amp;amp; Conquer: Red Alert&lt;/a&gt; and I used my initials. &lt;code class=&quot;ph language-&quot; content=&quot;phun-ky&quot;&gt;phun-ky&lt;/code&gt; was born after a musical love affair that I had with Fatboy Slim, and his mix of &lt;a class=&quot;ph&quot; href=&quot;https://www.discogs.com/release/11632-DJ-Tonka-Phun-Ky&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;DJ Tonka - Phun-Ky&lt;/a&gt;. And the rest is history. I have used that nick ever since, on &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Internet_Relay_Chat&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;IRC&lt;/a&gt;, forums, work and gaming.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Oh, and of course, my made up company &amp;quot;United Media&amp;quot;. I kinda dreamt of starting my own agency, but it never came to that. But later on, I started &amp;quot;UMedia&amp;quot;, a computer hardware company with my brother and a couple of our friends, but that is another story.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-02.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-02.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-02.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Hehe, I remember that I was going to build a community on that site.With reports on games, movies etc, having my own forums, letting buddies of mine write stuff and to be a part of that community. I also hosted some &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Counter-Strike_(video_game)&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;CounterStrike&lt;/a&gt; clan pages, including my own clan, &amp;quot;pSc&amp;quot;, proud scottsmen clan. *cringe*&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Big dreams, big dreams..&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-03.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-03.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-03.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;I started early fidgeting with the code, trying to make it &amp;quot;up to code&amp;quot; with semantics and standards, and during that period I also created some flash stuff. I think I was in conscription (mandatory military service) when I created this version.I still loved the blue-ish color I see.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-04.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-04.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-04.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;But it was not until 2004 that I started to blog, but that was more deep personal stuff, not really suited in a public domain, so I scraped this. The design was something I cooked up from a college project I had. Oh, and you see already there, the link to 508, which was the forerunner for the WCAG standards.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Still some shades of blue.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-05.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-05.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-05.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Aaand in 2006 I switched the color palette, to red. How original. A bit more writing, mostly related to gaming, CS and World of Warcraft. Hm, still doing music and movie reports apparently.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;em class=&quot;ph&quot;&gt;You can actually see more of this version in the &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2006/08/09/got-a-new-cat-linux&quot;&gt;last image of Linux here&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I remember I created the red doodle in MS Paint. *cringe*&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-06.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-06.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-06.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Still playing WoW, but again, switched colors. Mostly wrote about programming, politics and linux releases apparently. And the tag line that I still use was born. &amp;quot;The world from my point of view, and some pedantic creativity&amp;quot;.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-07.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-07.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-07.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Yep, nope. Never doing that again. Skewed boxes with too much shadow? *facepalm*&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-08.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-08.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-08.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Better, but still. Dull, boring, green.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-09.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-09.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-09.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Well, at least I get my headshot up now. And the current title for my blog was made: &amp;quot;lover of life, technologist at heart&amp;quot;.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-10.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-10.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-10.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;New headshot, new color palette. Not much.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-11.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-11.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-11.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Another change in the picture. And now new posts!?&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-12.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a previous version phun-ky.net&quot; src=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-12.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/history-of-phun-ky-12.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a previous version phun-ky.net&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Ah yes, here I decided I just needed a frontpage, with the links to the &lt;em class=&quot;ph&quot;&gt;very&lt;/em&gt; few posts I had on medium.com..&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;So, over 20 years of doing frontend and posing as a blog writer has led to the site you are visiting now. Has it improved? I think so. Now hopefully, I can focus on my writing :P&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Create a static, sustainable website or blog</title>
      <link>https://phun-ky.net/2023/09/25/create-a-static-sustainable-website-or-blog</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/09/25/create-a-static-sustainable-website-or-blog</guid>
      <pubDate>Mon, 25 Sep 2023 00:00:00 GMT</pubDate>
      <category>Projects</category>
      <category>how-to</category>
      <category>blog</category>
      <category>javascript</category>
      <category>rollup</category>
      <category>nodejs</category>
      <category>npm</category>
      <category>github</category>
      <category>yaml</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Over the years, I have made several types of blog engines, and sites, and I have never really been happy with anything, but this guide is one of the best attempts so far!&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#features&quot;&gt;Features&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#prerequisites&quot;&gt;Prerequisites&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#setup&quot;&gt;Setup&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#npm&quot;&gt;npm&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#dependencies&quot;&gt;Dependencies&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#npm-scripts&quot;&gt;npm scripts&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#configuration-files&quot;&gt;Configuration files&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#rollup&quot;&gt;Rollup&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#folder-structure&quot;&gt;Folder structure&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcassetsjs&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcassetscss&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/css&quot;&gt;src/assets/css&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#srcstyles&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/styles&quot;&gt;src/styles&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#convert-posts&quot;&gt;Convert posts&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#the-article-template&quot;&gt;The article template&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#create-your-first-post&quot;&gt;Create your first post&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#build-and-view-your-first-post&quot;&gt;Build and view your first post&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#summary&quot;&gt;Summary&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class=&quot;ph&quot;&gt;I have created my own blog engines with php, cakephp, static with macromedia dreamweaver (if you remember that..), jekyll and even tried to move my blogging to medium.com. But each attempt has left a tangy and bitter taste in my mouth.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;So, what did I do? I created a new blog engine.. Well, one that I really like!&lt;/p&gt;&lt;h2 id=&quot;features&quot; class=&quot;ph&quot;&gt;Features&lt;a class=&quot;ph heading-link&quot; href=&quot;#features&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;These are the features I required:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Using markdown for quick writing&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Low impact on the environment&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Frontmatter&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Category pages (not covered here)&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Tag pages (not covered here)&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Article pages&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Create static content&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Minimal usage of html tags in markdown files (not covered here)&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;prerequisites&quot; class=&quot;ph&quot;&gt;Prerequisites&lt;a class=&quot;ph heading-link&quot; href=&quot;#prerequisites&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Knowledge of&lt;/strong&gt;:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;NodeJS&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;npm&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Github&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;rollup&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;yaml&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;JavaScript&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Tools&lt;/strong&gt;:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;terminal&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;editor&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;web browser&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;setup&quot; class=&quot;ph&quot;&gt;Setup&lt;a class=&quot;ph heading-link&quot; href=&quot;#setup&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;First we need to set up a repository. Head on over to &lt;a class=&quot;ph&quot; href=&quot;https://github.com&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://github.com&lt;/a&gt; and create a new repository. Call it whatever you want, and clone it into your workspace. For the sake of this guide, we are referring to the repository as &lt;code class=&quot;ph language-&quot; content=&quot;static-blog&quot;&gt;static-blog&lt;/code&gt;;&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd ~/Workspace
$ git clone git@github.com:&amp;lt;your username&amp;gt;/static-blog.github.io.git
Cloning into static-blog.github.io
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Then &lt;code class=&quot;ph language-&quot; content=&quot;cd&quot;&gt;cd&lt;/code&gt; into your project:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd static-blog.github.io
$ struct
📦 static-blog.github.io
 ├── 📄 .gitignore
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Looks empty, right? Let us proceed.&lt;/p&gt;&lt;h3 id=&quot;npm&quot; class=&quot;ph&quot;&gt;npm&lt;a class=&quot;ph heading-link&quot; href=&quot;#npm&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Initialize npm, change the stuff you want with the interactive tool:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See `npm help init` for definitive documentation on these fields
and exactly what they do.

Use `npm install &amp;lt;pkg&amp;gt;` afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name:
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After you have done that, you will have a directory something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 static-blog.github.io
 ├── 📄 .gitignore
 ├── 📄 package.json
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;dependencies&quot; class=&quot;ph&quot;&gt;Dependencies&lt;a class=&quot;ph heading-link&quot; href=&quot;#dependencies&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;After you've done that, install the required dependencies:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm i -D @ironkinoko/rollup-plugin-styles @markdoc/markdoc @rollup/plugin-commonjs @rollup/plugin-node-resolve cssnano glob htmlparser2 js-yaml postcss postcss-cli rollup rollup-plugin-node-externals stylus
added …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;If you want, this is a great step to add linting stuff like &lt;code class=&quot;ph language-&quot; content=&quot;eslint&quot;&gt;eslint&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;prettier&quot;&gt;prettier&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After you have done that, you will have a directory something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 static-blog.github.io
 ├── 📁 node_modules
 ├── 📄 .gitignore
 ├── 📄 package-lock.json
 ├── 📄 package.json
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;All though this setup is not requiring much of JavaScript, we use rollup to be able to add that later on, and to process &lt;code class=&quot;ph language-&quot; content=&quot;*.styl&quot;&gt;*.styl&lt;/code&gt; files.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;I use Stylus for my styling, you can choose &lt;code class=&quot;ph language-&quot; content=&quot;sass/scss&quot;&gt;sass/scss&lt;/code&gt; or &lt;code class=&quot;ph language-&quot; content=&quot;less&quot;&gt;less&lt;/code&gt; if you prefer that. Just remember to install the correct dependencies, and use the correct configuration files&lt;/p&gt;&lt;/div&gt;&lt;h3 id=&quot;npm-scripts&quot; class=&quot;ph&quot;&gt;npm scripts&lt;a class=&quot;ph heading-link&quot; href=&quot;#npm-scripts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Open up your &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt;, and update the &lt;code class=&quot;ph language-&quot; content=&quot;scripts&quot;&gt;scripts&lt;/code&gt; property to something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  …
  &amp;quot;scripts&amp;quot;: {
    &amp;quot;clean&amp;quot;: &amp;quot;rm -rf dist/*&amp;quot;,
    &amp;quot;assets&amp;quot;: &amp;quot;mkdir -p dist &amp;amp;&amp;amp; cp -a ./src/assets/. ./dist/&amp;quot;,
    &amp;quot;prebuild&amp;quot;: &amp;quot;npm run clean &amp;amp;&amp;amp; npm run assets &amp;amp;&amp;amp; node scripts/posts/create.js&amp;quot;,
    &amp;quot;build&amp;quot;: &amp;quot;rollup -c rollup.config.js&amp;quot;,
    &amp;quot;postbuild&amp;quot;: &amp;quot;bash -c 'mv -f ./dist/*.{js,map} ./dist/js'&amp;quot;,
    &amp;quot;build:watch&amp;quot;: &amp;quot;rollup -c rollup.config.js -w&amp;quot;,
    &amp;quot;dev&amp;quot;: &amp;quot;npx browser-sync start -s \&amp;quot;dist\&amp;quot; --files \&amp;quot;dist/*.*\&amp;quot;&amp;quot;
  },
  …
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;As you can see, we have added some scripts that will build this site:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;clean&lt;/strong&gt;: A helper function that will clean the &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt; folder, because you &lt;em class=&quot;ph&quot;&gt;really&lt;/em&gt; dont want the produced files in your repository&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;assets&lt;/strong&gt;: Copies over the assets to the &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt; folder&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;prebuild&lt;/strong&gt;: Runs before the &lt;code class=&quot;ph language-&quot; content=&quot;build&quot;&gt;build&lt;/code&gt; script, making sure we have assets copied and posts created. (&lt;em class=&quot;ph&quot;&gt;We will come back to the creation of posts&lt;/em&gt;)&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;postbuild&lt;/strong&gt;: A helper script to actually move the produced rollup artifacts into their respective folder, to make it look cleaner&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;build:watch&lt;/strong&gt;: A simple watcher to build on every save.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;dev&lt;/strong&gt;: I use &lt;code class=&quot;ph language-&quot; content=&quot;browser-sync&quot;&gt;browser-sync&lt;/code&gt; for dev, you can use whatever setup you are used to, but this is what I use.&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;You need to add &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt; to your &lt;code class=&quot;ph language-&quot; content=&quot;.gitignore&quot;&gt;.gitignore&lt;/code&gt; file!&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Your &lt;code class=&quot;ph language-&quot; content=&quot;package.json&quot;&gt;package.json&lt;/code&gt; should look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;json&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-json&quot; language=&quot;json&quot;&gt;&lt;code class=&quot;ph json language-json&quot;&gt;{
  &amp;quot;name&amp;quot;: &amp;quot;static-blog.github.io&amp;quot;,
  &amp;quot;version&amp;quot;: &amp;quot;1.0.0&amp;quot;,
  &amp;quot;type&amp;quot;: &amp;quot;module&amp;quot;,
  &amp;quot;description&amp;quot;: &amp;quot;Static Blog&amp;quot;,
  &amp;quot;scripts&amp;quot;: {
    &amp;quot;clean&amp;quot;: &amp;quot;rm -rf dist/*&amp;quot;,
    &amp;quot;assets&amp;quot;: &amp;quot;mkdir -p dist &amp;amp;&amp;amp; cp -a ./src/assets/. ./dist/&amp;quot;,
    &amp;quot;prebuild&amp;quot;: &amp;quot;npm run clean &amp;amp;&amp;amp; npm run assets &amp;amp;&amp;amp; node scripts/posts/create.js&amp;quot;,
    &amp;quot;build&amp;quot;: &amp;quot;rollup -c rollup.config.js&amp;quot;,
    &amp;quot;postbuild&amp;quot;: &amp;quot;bash -c 'mv -f ./dist/*.{js,map} ./dist/js'&amp;quot;,
    &amp;quot;build:watch&amp;quot;: &amp;quot;rollup -c rollup.config.js -w&amp;quot;,
    &amp;quot;dev&amp;quot;: &amp;quot;npx browser-sync start -s \&amp;quot;dist\&amp;quot; --files \&amp;quot;dist/*.*\&amp;quot;&amp;quot;
  },
  &amp;quot;repository&amp;quot;: {
    &amp;quot;type&amp;quot;: &amp;quot;git&amp;quot;,
    &amp;quot;url&amp;quot;: &amp;quot;git+https://github.com/&amp;lt;your username&amp;gt;/static-blog.github.io.git&amp;quot;
  },
  &amp;quot;bugs&amp;quot;: {
    &amp;quot;url&amp;quot;: &amp;quot;https://github.com/&amp;lt;your username&amp;gt;/static-blog.github.io/issues&amp;quot;
  },
  &amp;quot;engines&amp;quot;: {
    &amp;quot;node&amp;quot;: &amp;quot;&amp;gt;=18.16.0&amp;quot;,
    &amp;quot;npm&amp;quot;: &amp;quot;&amp;gt;=9.5.1&amp;quot;
  },
  &amp;quot;homepage&amp;quot;: &amp;quot;https://github.com/&amp;lt;your username&amp;gt;/static-blog.github.io#readme&amp;quot;,
  &amp;quot;devDependencies&amp;quot;: {
    &amp;quot;@ironkinoko/rollup-plugin-styles&amp;quot;: &amp;quot;^4.0.3&amp;quot;,
    &amp;quot;@markdoc/markdoc&amp;quot;: &amp;quot;^0.3.2&amp;quot;,
    &amp;quot;@rollup/plugin-commonjs&amp;quot;: &amp;quot;^25.0.1&amp;quot;,
    &amp;quot;@rollup/plugin-node-resolve&amp;quot;: &amp;quot;^15.0.2&amp;quot;,
    &amp;quot;cssnano&amp;quot;: &amp;quot;^6.0.0&amp;quot;,
    &amp;quot;glob&amp;quot;: &amp;quot;^10.3.5&amp;quot;,
    &amp;quot;htmlparser2&amp;quot;: &amp;quot;^9.0.0&amp;quot;,
    &amp;quot;js-yaml&amp;quot;: &amp;quot;^4.1.0&amp;quot;,
    &amp;quot;postcss&amp;quot;: &amp;quot;^8.4.23&amp;quot;,
    &amp;quot;postcss-cli&amp;quot;: &amp;quot;^10.1.0&amp;quot;,
    &amp;quot;rollup&amp;quot;: &amp;quot;^3.22.0&amp;quot;,
    &amp;quot;rollup-plugin-node-externals&amp;quot;: &amp;quot;^6.0.1&amp;quot;,
    &amp;quot;stylus&amp;quot;: &amp;quot;^0.60.0&amp;quot;
  }
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;Remember to set the &lt;code class=&quot;ph language-&quot; content=&quot;author&quot;&gt;author&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;license&quot;&gt;license&lt;/code&gt; fields&lt;/p&gt;&lt;/div&gt;&lt;h3 id=&quot;configuration-files&quot; class=&quot;ph&quot;&gt;Configuration files&lt;a class=&quot;ph heading-link&quot; href=&quot;#configuration-files&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;If you are like me and love to fine granulate options for the different modules used in this setup, you might want to add some configuration files:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.browserslistrc&quot;&gt;.browserslistrc&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.editorconfig&quot;&gt;.editorconfig&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.postcssrc.cjs&quot;&gt;.postcssrc.cjs&lt;/code&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;.stylintrc&quot;&gt;.stylintrc&lt;/code&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 static-blog.github.io
 ├── 📁 node_modules
 ├── 📄 .browserslistrc
 ├── 📄 .editorconfig
 ├── 📄 .gitignore
 ├── 📄 .postcssrc.cjs
 ├── 📄 .stylintrc
 ├── 📄 package-lock.json
 ├── 📄 package.json
 └── 📄 README.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h3 id=&quot;rollup&quot; class=&quot;ph&quot;&gt;Rollup&lt;a class=&quot;ph heading-link&quot; href=&quot;#rollup&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;To be able to process &lt;code class=&quot;ph language-&quot; content=&quot;*.styl&quot;&gt;*.styl&lt;/code&gt; files and produced bundled JavaScript, we are using &lt;code class=&quot;ph language-&quot; content=&quot;rollup&quot;&gt;rollup&lt;/code&gt;. Start creating your &lt;code class=&quot;ph language-&quot; content=&quot;rollup.config.js&quot;&gt;rollup.config.js&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ touch rollup.config.js
$ struct
📦 static-blog.github.io
 ├── 📁 node_modules
 ├── 📄 .browserslistrc
 ├── 📄 .editorconfig
 ├── 📄 .gitignore
 ├── 📄 .postcssrc.cjs
 ├── 📄 .stylintrc
 ├── 📄 package-lock.json
 ├── 📄 package.json
 ├── 📄 README.md
 └── 📄 rollup.config.js
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And it should look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import { nodeResolve } from '@rollup/plugin-node-resolve';
import styles from '@ironkinoko/rollup-plugin-styles';
import commonjs from '@rollup/plugin-commonjs';

export default [
  {
    input: ['src/main.js'],
    output: {
      format: 'es',
      sourcemap: true,
      exports: 'named',
      dir: 'dist',
      assetFileNames: '[name][extname]'
    },

    plugins: [
      styles({
        mode: ['extract', './css/static-blog.css'],
        url: false,
        minimize: true
      }),
      nodeResolve(),
      commonjs()
    ]
  }
];
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;As you see, we are not using a minifier here, but you can add that if you require it!&lt;/p&gt;&lt;/div&gt;&lt;h3 id=&quot;folder-structure&quot; class=&quot;ph&quot;&gt;Folder structure&lt;a class=&quot;ph heading-link&quot; href=&quot;#folder-structure&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Now, let us add some more folders to this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 static-blog.github.io
 ├── 📁 node_modules
 …
 ├── 📁 src
   ├── 📁 assets
     ├── 📁 css
     ├── 📁 img
     ├── 📁 js
     └── 📁 templates
   ├── 📁 styles
   └── 📄 main.js
 …
 └── 📄 rollup.config.js
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srcassetsjs&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcassetsjs&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Remember earlier, from the npm scripts, that we copy over the &lt;code class=&quot;ph language-&quot; content=&quot;assets&quot;&gt;assets&lt;/code&gt; folder into &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt;? Well, we need a dummy file for the copying of js to work:&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Go into the &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/js&quot;&gt;src/assets/js&lt;/code&gt; directory and create a &lt;code class=&quot;ph language-&quot; content=&quot;dummy.js&quot;&gt;dummy.js&lt;/code&gt; file:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd src/assets/js
$ echo &amp;quot;console.log('dummy');&amp;quot; &amp;gt; dummy.js
$ cat dummy.js
console.log('dummy');
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id=&quot;srcassetscss&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/assets/css&quot;&gt;src/assets/css&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcassetscss&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;In the &lt;code class=&quot;ph language-&quot; content=&quot;css&quot;&gt;css&lt;/code&gt; folder, you can put any css file you want, for example a custom styling for &lt;code class=&quot;ph language-&quot; content=&quot;prismjs&quot;&gt;prismjs&lt;/code&gt;, or any other library you would use.&lt;/p&gt;&lt;h4 id=&quot;srcstyles&quot; class=&quot;ph&quot;&gt;&lt;code class=&quot;ph language-&quot; content=&quot;src/styles&quot;&gt;src/styles&lt;/code&gt;&lt;a class=&quot;ph heading-link&quot; href=&quot;#srcstyles&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h4&gt;&lt;p class=&quot;ph&quot;&gt;Then go to the &lt;code class=&quot;ph language-&quot; content=&quot;styles&quot;&gt;styles&lt;/code&gt; folder to create a &lt;code class=&quot;ph language-&quot; content=&quot;index.styl&quot;&gt;index.styl&lt;/code&gt; file, for all your styles.&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd src/styles
$ touch index.styl
$ struct
  └── 📄 index.styl
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Then in &lt;code class=&quot;ph language-&quot; content=&quot;src/main.js&quot;&gt;src/main.js&lt;/code&gt;, add the import of your styles, rollup will handle this automatically, converting the &lt;code class=&quot;ph language-&quot; content=&quot;*.styl&quot;&gt;*.styl&lt;/code&gt; file into css:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import './styles/index.styl';
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Allrighty then. We've now setup, and ready to write the &lt;code class=&quot;ph language-&quot; content=&quot;/scripts/posts/create.js&quot;&gt;/scripts/posts/create.js&lt;/code&gt; file, to be able to convert markdown files to static files!&lt;/p&gt;&lt;h3 id=&quot;convert-posts&quot; class=&quot;ph&quot;&gt;Convert posts&lt;a class=&quot;ph heading-link&quot; href=&quot;#convert-posts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Create a directory named &lt;code class=&quot;ph language-&quot; content=&quot;scripts&quot;&gt;scripts&lt;/code&gt;, and make a file named &lt;code class=&quot;ph language-&quot; content=&quot;create.js&quot;&gt;create.js&lt;/code&gt; inside:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ mkdir scripts
$ cd scripts
$ touch create.js
$ struct
  └── 📄 create.js
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Open up &lt;code class=&quot;ph language-&quot; content=&quot;create.js&quot;&gt;create.js&lt;/code&gt; in your editor and add this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;import { resolve, dirname, join } from 'node:path';
import { fileURLToPath } from 'node:url';
import fs from 'node:fs';

import { globSync } from 'node:fs';

import { createContentManifest } from './utils/create-content-manifest.js';
import { getHTML } from './utils/get-html.js';
import { getFrontmatter } from './utils/get-frontmatter.js';

const __dirname = dirname(fileURLToPath(import.meta.url));
const CONTENT_DIR = join(__dirname, '../../src/assets/posts');
const TEMPLATE_PATH = resolve(
  __dirname,
  '../..//src/assets/templates/article.html'
);
const TEMPLATE = fs.readFileSync(TEMPLATE_PATH, 'utf-8');
const contentManifest = createContentManifest(CONTENT_DIR);
const files = globSync(`${CONTENT_DIR}/*.md`);

files.forEach((file) =&amp;gt; {
  const rawText = fs.readFileSync(file, 'utf-8');
  const frontmatter = getFrontmatter(rawText);
  const document = contentManifest[frontmatter.route];

  if (document) {
    let html = '';

    const rendered = getHTML(document);
    const { year, month, day, slug, title, description } = frontmatter;

    html = TEMPLATE.replace(/{{CONTENT}}/, rendered);
    html = html.replaceAll(/{{TITLE}}/g, title);
    html = html.replaceAll(/{{DESCRIPTION}}/g, description);

    const pathToDir = join(__dirname, `../../dist/${year}/${month}/${day}`);
    const pathToFile = `${pathToDir}/${slug}.html`;

    fs.mkdirSync(pathToDir, { recursive: true });

    fs.writeFileSync(pathToFile, html, 'utf-8');
  }
});
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;Instead of flooding this post with a lot of code (more than required), you can check out the imported files in &lt;code class=&quot;ph language-&quot; content=&quot;create.js&quot;&gt;create.js&lt;/code&gt; &lt;a class=&quot;ph&quot; href=&quot;https://github.com/phun-ky/phun-ky.github.io/tree/main/scripts/posts/utils&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;here&lt;/a&gt;, because this is how I have developed my blog.&lt;/p&gt;&lt;/div&gt;&lt;h3 id=&quot;the-article-template&quot; class=&quot;ph&quot;&gt;The article template&lt;a class=&quot;ph heading-link&quot; href=&quot;#the-article-template&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;Now, let us create the template for all of our posts! Create a &lt;code class=&quot;ph language-&quot; content=&quot;article.html&quot;&gt;article.html&lt;/code&gt; file in &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/templates&quot;&gt;src/assets/templates&lt;/code&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd src/assets/templates
$ touch article.html
$ struct
  └── 📄 article.html
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And it could look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;html&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-html&quot; language=&quot;html&quot;&gt;&lt;code class=&quot;ph html language-html&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
  &amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;{{TITLE}}&amp;lt;/title&amp;gt;
    …
    &amp;lt;meta name=&amp;quot;description&amp;quot; content=&amp;quot;{{DESCRIPTION}}&amp;quot; /&amp;gt;
    …
  &amp;lt;/head&amp;gt;
  &amp;lt;body&amp;gt;
    &amp;lt;div id=&amp;quot;app&amp;quot;&amp;gt;
      &amp;lt;header&amp;gt;…&amp;lt;/header&amp;gt;
      &amp;lt;main&amp;gt;
        &amp;lt;h1&amp;gt;{{TITLE}}&amp;lt;/h1&amp;gt;
        &amp;lt;p&amp;gt;{{DESCRIPTION}}&amp;lt;/p&amp;gt;
        {{CONTENT}}
      &amp;lt;/main&amp;gt;
      &amp;lt;footer&amp;gt;…&amp;lt;/footer&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Did you notice the &lt;code class=&quot;ph language-&quot; content=&quot;{{TITLE}}&quot;&gt;{{TITLE}}&lt;/code&gt;, &lt;code class=&quot;ph language-&quot; content=&quot;{{DESCRIPTION}}&quot;&gt;{{DESCRIPTION}}&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;{{CONTENT}}&quot;&gt;{{CONTENT}}&lt;/code&gt; strings? We are using them to put the data into it.&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The template could be anything you want it to be, with extra styling, headers, libraries etc. This is just an example.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;We will cover the post path in the next chapter.&lt;/p&gt;&lt;h2 id=&quot;create-your-first-post&quot; class=&quot;ph&quot;&gt;Create your first post&lt;a class=&quot;ph heading-link&quot; href=&quot;#create-your-first-post&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;We're ready to go! Go into &lt;code class=&quot;ph language-&quot; content=&quot;src/assets/posts&quot;&gt;src/assets/posts&lt;/code&gt; and create your first post:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ cd src/assets/posts
$ touch 2023-09-24-&amp;lt;slug-of-your-post&amp;gt;.md
$ struct
  └── 📄 2023-09-24-&amp;lt;slug-of-your-post&amp;gt;.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Where &lt;code class=&quot;ph language-&quot; content=&quot;&amp;lt;slug-of-your-post&amp;gt;&quot;&gt;&amp;lt;slug-of-your-post&amp;gt;&lt;/code&gt; is the slug for your post. Don't worry, you can change the file name later.&lt;/p&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;The formatting of the filename is crucial for this setup to work. The filename consists of:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;const filename = `${year}-${month}-${day}-${slug - of - your - post.md}`;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Where &lt;code class=&quot;ph language-&quot; content=&quot;year&quot;&gt;year&lt;/code&gt; is 4 digit year, &lt;code class=&quot;ph language-&quot; content=&quot;month&quot;&gt;month&lt;/code&gt; is two digit, for example &lt;code class=&quot;ph language-&quot; content=&quot;02&quot;&gt;02&lt;/code&gt; for February, &lt;code class=&quot;ph language-&quot; content=&quot;day&quot;&gt;day&lt;/code&gt; is two digit, for example &lt;code class=&quot;ph language-&quot; content=&quot;29&quot;&gt;29&lt;/code&gt; and the slug, well, it is the slug.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;Now, open the post in your editor, and add these frontmatter properties:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;yaml&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-yaml&quot; language=&quot;yaml&quot;&gt;&lt;code class=&quot;ph yaml language-yaml&quot;&gt;---
route: /2023/09/30/static-blog
title: 'Create a static, sustainable website or blog'
category: 'Projects'
tags: [how-to, blog, JavaScript, rollup, nodejs, npm, github, yaml]
---
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph message important&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Important&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;If the filename is &lt;code class=&quot;ph language-&quot; content=&quot;2023-12-23-nightmare-before-christmas.md&quot;&gt;2023-12-23-nightmare-before-christmas.md&lt;/code&gt; During the convertion, this will be converted to the url: &lt;code class=&quot;ph language-&quot; content=&quot;/2023/12/23/nightmare-before-christmas.html&quot;&gt;/2023/12/23/nightmare-before-christmas.html&lt;/code&gt;, so the &lt;code class=&quot;ph language-&quot; content=&quot;route&quot;&gt;route&lt;/code&gt;-property in the fronmatter must be: &lt;code class=&quot;ph language-&quot; content=&quot;2023/12/23/nightmare-before-christmas&quot;&gt;2023/12/23/nightmare-before-christmas&lt;/code&gt;.&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;And now you are ready to write your post! Write something down, and we will proceed! Eventually, your &lt;code class=&quot;ph language-&quot; content=&quot;posts&quot;&gt;posts&lt;/code&gt;-folder would look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 static-blog.github.io
 …
 ├── 📁 src
   ├── 📁 assets
     …
     └── 📁 posts
       …
       ├── 📄 2014-03-24-working-with-javascript-modules-how-to-load-javascript-dependencies-without-requirejs.md
       ├── 📄 2014-03-25-how-to-create-a-new-page-in-confluence-with-given-template-from-a-link.md
       ├── 📄 2015-09-09-trusted-data.md
       ├── 📄 2015-09-14-how-to-work-with-trusted-data.md
       ├── 📄 2015-09-22-kents-theorem.md
       ├── 📄 2015-09-29-trusted-data-for-developers.md
       ├── 📄 2018-01-02-webgl-and-data-visualisation.md
       ├── 📄 2022-02-02-enabling-developers-and-designers-to-speak-the-same-language.md
       └── 📄 2023-01-17-from-nothing-to-state-of-the-art-how-we-build-design-systems-for-all.md
       …
 …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;build-and-view-your-first-post&quot; class=&quot;ph&quot;&gt;Build and view your first post&lt;a class=&quot;ph heading-link&quot; href=&quot;#build-and-view-your-first-post&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Now, we're ready to see it in action.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;From the root of your project, do this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm run build
&amp;gt; static-blog@1.0.0 prebuild
&amp;gt; npm run clean &amp;amp;&amp;amp; npm run assets &amp;amp;&amp;amp; node scripts/posts/create.js
&amp;gt; static-blog@1.0.0 clean
&amp;gt; rm -rf dist/*
&amp;gt; static-blog@1.0.0 assets
&amp;gt; mkdir -p dist &amp;amp;&amp;amp; cp -a ./src/assets/. ./dist/
&amp;gt; static-blog@1.0.0 build
&amp;gt; rollup -c rollup.config.js
src/main.js → dist...
(!) Generated an empty chunk
&amp;quot;main&amp;quot;
created dist in 592ms
&amp;gt; static-blog@1.0.0 postbuild
&amp;gt; bash -c 'mv -f ./dist/*.{js,map} ./dist/js'
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ npm run dev
&amp;gt; static-blog@1.0.0 dev
&amp;gt; npx browser-sync start -s &amp;quot;dist&amp;quot; --files &amp;quot;dist/*.*&amp;quot;
[Browsersync] Access URLs:
 --------------------------------------
       Local: http://localhost:3000
    External: http://192.168.86.36:3000
 --------------------------------------
          UI: http://localhost:3001
 UI External: http://localhost:3001
 --------------------------------------
[Browsersync] Serving files from: dist
[Browsersync] Watching files...

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;These commands will build your files, convert your posts and copy your assets, and then open up a browser to view your blog.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Since we have not setup an &lt;code class=&quot;ph language-&quot; content=&quot;index.html&quot;&gt;index.html&lt;/code&gt;-file, there's nothing to see. However, go to &lt;code class=&quot;ph language-&quot; content=&quot;http://localhost:3000/2023/09/30/static-blog.html&quot;&gt;http://localhost:3000/2023/09/30/static-blog.html&lt;/code&gt; and see your first post!&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;From here you can add posts, add the styling or even JavaScript to your blog.&lt;/p&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;I will not cover the category, tags or index page, but feel free to check out &lt;a class=&quot;ph&quot; href=&quot;https://github.com/phun-ky/phun-ky.github.io/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;my setup&lt;/a&gt; to help with this!&lt;/p&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;After you have run &lt;code class=&quot;ph language-&quot; content=&quot;npm run build&quot;&gt;npm run build&lt;/code&gt;, the &lt;code class=&quot;ph language-&quot; content=&quot;dist&quot;&gt;dist&lt;/code&gt;-folder should look something like this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;shell-session&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-shell-session&quot; language=&quot;shell-session&quot;&gt;&lt;code class=&quot;ph shell-session language-shell-session&quot;&gt;$ struct
📦 static-blog.github.io
 …
 ├── 📁 dist
   ├── 📁 2023
     └── 📁 09
       └── 📁 30
         └── 📄 static-blog.html
   ├── 📁 css
   ├── 📁 img
   ├── 📁 js
   ├── 📁 posts
   └── 📁 templates
 …
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&quot;summary&quot; class=&quot;ph&quot;&gt;Summary&lt;a class=&quot;ph heading-link&quot; href=&quot;#summary&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;You have now learned how to build a static blog site! What can be done further? Styling, interactivity, add missing pages and publish on &lt;a class=&quot;ph&quot; href=&quot;https://pages.github.com&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Github Pages!&lt;/a&gt;. I will cover more of these features in separate articles. Stay tuned!&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>From nothing to state of the art, how we build design systems, for all!</title>
      <link>https://phun-ky.net/2023/01/17/from-nothing-to-state-of-the-art-how-we-build-design-systems-for-all</link>
      <guid isPermaLink="true">https://phun-ky.net/2023/01/17/from-nothing-to-state-of-the-art-how-we-build-design-systems-for-all</guid>
      <pubDate>Tue, 17 Jan 2023 00:00:00 GMT</pubDate>
      <category>Talks</category>
      <category>design</category>
      <category>design systems</category>
      <category>frontend</category>
      <category>talk</category>
      <category>conference</category>
      <category>ndc</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;This talk deals with how we build design systems at the current client, and how we got to where we are now. We look at the needs of all types of personas / consumers of the design system and how a design system helps with development, a11y, business knowledge and content. Are you a content manager or a developer? A design system is both for you and for the end user!&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/watch?v=s6KZlL3Yt8s&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;&lt;img class=&quot;ph&quot; src=&quot;https://phun-ky.net/img/blog/0%20oOlnPUNVTcghs-Iq.webp&quot; alt=&quot;Screenshot of the talk I had on NDC&quot; title=&quot;From nothing to state of the art, how we build design systems, for all!&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Enabling developers and designers to speak the same language</title>
      <link>https://phun-ky.net/2022/02/02/enabling-developers-and-designers-to-speak-the-same-language</link>
      <guid isPermaLink="true">https://phun-ky.net/2022/02/02/enabling-developers-and-designers-to-speak-the-same-language</guid>
      <pubDate>Wed, 02 Feb 2022 00:00:00 GMT</pubDate>
      <category>Talks</category>
      <category>design</category>
      <category>design systems</category>
      <category>frontend</category>
      <category>talk</category>
      <category>javazone</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Today, more and more development is done in tight relation with designers and UX-designer, triggering the need for a design system that is tightly coupled with both design and code. Up until recent years, the design communication has gone one way, from the designers to the developers.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://vimeo.com/showcase/9189999/video/669321050&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;&lt;img class=&quot;ph&quot; src=&quot;https://phun-ky.net/img/blog/1%20Waxe_PU7qTybn_603KFHgQ.webp&quot; alt=&quot;Screenshot of the talk I had on JavaZone&quot; title=&quot;Enabling developers and designers to speak the same language&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;This talk covers the process I came up with on securing design/develop communication both ways when building a design system.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;We will cover generation of preprocessor styles with design tokens and how we generate our design systems continuously&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>WebGL and Data Visualisation</title>
      <link>https://phun-ky.net/2018/01/02/webgl-and-data-visualisation</link>
      <guid isPermaLink="true">https://phun-ky.net/2018/01/02/webgl-and-data-visualisation</guid>
      <pubDate>Tue, 02 Jan 2018 00:00:00 GMT</pubDate>
      <category>Programming</category>
      <category>webgl</category>
      <category>data visualisation</category>
      <category>data visualization</category>
      <category>opengl</category>
      <category>charts</category>
      <category>technology</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Have you ever wondered how you can give those statistical data a bit more depth, give those graphs a whole new dimension or make scientific results more understandable? Fear not, WebGL is the tool for you!&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#what-is-webgl&quot;&gt;What is WebGL?&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#why-use-webgl&quot;&gt;Why use WebGL?&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#why-should-i-care-about-webgl&quot;&gt;Why should I care about WebGL?&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#what-is-it-actually-good-for&quot;&gt;What is it actually good for?&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#what-are-the-drawbacks-of-using-webgl&quot;&gt;What are the drawbacks of using WebGL?&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#well-i-have-my-charts&quot;&gt;Well, I have my charts&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/0 -or0ghitMp_hXvSe.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;A still from the movie Prometheus, depicting the 3D navigational map&quot; src=&quot;https://phun-ky.net/img/blog/0 -or0ghitMp_hXvSe.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/0 -or0ghitMp_hXvSe.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;A still from the movie Prometheus, depicting the 3D navigational map&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;from &lt;a class=&quot;ph&quot; href=&quot;https://dailydead.com&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Daily Dead&lt;/a&gt;. Licensed by Daily Dead, All rights reserved.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;div class=&quot;ph message note&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;Note&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;This article aims to try to explain the reasons why you should use WebGL, and especially, why you should amp up your data visualizations with WebGL. This is meant to be more of an introduction to WebGL and data visualization, instead of a how-to. YMMV.&lt;/p&gt;&lt;/div&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 y829Kq51CqEvnobDA2Fq9w.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of a data visualization example with WebGL&quot; src=&quot;https://phun-ky.net/img/blog/1 y829Kq51CqEvnobDA2Fq9w.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 y829Kq51CqEvnobDA2Fq9w.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of a data visualization example with WebGL&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;what-is-webgl&quot; class=&quot;ph&quot;&gt;What is WebGL?&lt;a class=&quot;ph heading-link&quot; href=&quot;#what-is-webgl&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;WebGL is a graphical library with a JavaScript API used to create interactive 3D and 2D graphics within any compatible browser.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;WebGL gives you access to hardware accelerated graphics via the HTML5 &lt;a class=&quot;ph&quot; href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Canvas&lt;/a&gt; element.&lt;/p&gt;&lt;h2 id=&quot;why-use-webgl&quot; class=&quot;ph&quot;&gt;Why use WebGL?&lt;a class=&quot;ph heading-link&quot; href=&quot;#why-use-webgl&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Normally when rendering dynamic images in the browser, the go-to solution was using &lt;a class=&quot;ph&quot; href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Canvas&lt;/a&gt;, in 2D, like a bitmap. And with the complexity in certain dynamic images, the bitmap created on the &lt;a class=&quot;ph&quot; href=&quot;https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Canvas&lt;/a&gt; uses a lot of CPU. With WebGL, the GPU is used for the computationally expensive process, instead of the CPU.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Why? Well, we could answer it with one question: Why use OpenGL?&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Cross Platform API&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Can be utilised in several industries (Entertainment, Medical, Military) (3D modelling, applications, games)&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Cross Device (mobile phones, consoles)&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;So, you can use WebGL to make cool stuff in the browser!? Well, yes. Due to the “no plugins needed”-point, the wide support for WebGL and that the workhorse for graphics in the browser is no longer the CPU.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 xBkRq8bhqnpD-bXMTA4ckA.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of WebGL browser support&quot; src=&quot;https://phun-ky.net/img/blog/1 xBkRq8bhqnpD-bXMTA4ckA.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 xBkRq8bhqnpD-bXMTA4ckA.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of WebGL browser support&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;why-should-i-care-about-webgl&quot; class=&quot;ph&quot;&gt;Why should I care about WebGL?&lt;a class=&quot;ph heading-link&quot; href=&quot;#why-should-i-care-about-webgl&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Even if you don’t use WebGL, you should know that the impact of WebGL isn’t always about cool stuff in the browser.&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Developing WebGL applications/features requires some muscle, and thanks to the importance of WebGL, browser vendors have improved the ECMAScript speed substantially.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Browsers have gotten better garbage collection partly as a result of WebGL.&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Since this is a web technology, everybody has been working very hard to push graphics hardware vendors and OEMs for better drivers.&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;what-is-it-actually-good-for&quot; class=&quot;ph&quot;&gt;What is it actually good for?&lt;a class=&quot;ph heading-link&quot; href=&quot;#what-is-it-actually-good-for&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;So you want a list of cool things it can do, eh?&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Augmented reality applications&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Games&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Real-time data visualizations&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Maps&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;3D printing&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Virtualization&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Image processing&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;The real world usage for WebGL is boundless…&lt;/p&gt;&lt;h2 id=&quot;what-are-the-drawbacks-of-using-webgl&quot; class=&quot;ph&quot;&gt;What are the drawbacks of using WebGL?&lt;a class=&quot;ph heading-link&quot; href=&quot;#what-are-the-drawbacks-of-using-webgl&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Allthough the 3D graphic computations required for WebGL is leveraged to the GPU, the computations has to be, well, written. If you are to write your WebGL code from scratch, without the aid and help of frameworks, you might want to brush up on your Advanced Mathematics 101.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;In reality, WebGL is just a rasterization engine. It draws the points and lines you supply it with.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The code example below is one of the first versions we used to draw the rings and the radar sweep at &lt;a class=&quot;ph&quot; href=&quot;https://radar.bekk.no/tech2017&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://radar.bekk.no/tech2017&lt;/a&gt;:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;const vertexSource = `
precision highp float;
attribute vec2 a_position;
varying vec2 v_uv;
uniform float u_aspect;
uniform float u_scale;

void main(void) {
  v_uv = vec2(a_position.x, a_position.y / u_aspect) / u_scale;
  gl_Position = vec4(a_position, 1.0, 1.0);
}
`;

const fragmentSource = `
precision highp float;
varying vec2 v_uv;
uniform float u_aspect;
uniform float u_time;
uniform float u_numRings;

float rings(float dist) {
  float t = 0.004 * u_time;
  float s = -t+dist*u_numRings*3.1415*2.0;
  float combined = cos(s);
  float edge = smoothstep(0.95,1.0,combined);
  return clamp(edge-dist * 0.5, 0.0, 1.0);
}

float sweep(float radian) {
  float t = 0.00005 * u_time; //we need precision highp, because of this
  radian = (1.0 - radian) / (3.1415*2.0);
  radian -= t;
  float antiAlias = mod(-radian,1.0);
  antiAlias = smoothstep(0.997,1.0,antiAlias);
  radian = mod(radian, 1.0);
  radian = smoothstep(0.85, 1.0, radian);
  radian = radian * radian;
  return antiAlias + radian;
}

void main() {
  float radian = atan(v_uv.y, v_uv.x);
  float distSqr = v_uv.x * v_uv.x + v_uv.y * v_uv.y;
  float dist = sqrt(distSqr);
  float ring = rings(dist) * 0.175;
  float sweep = sweep(radian) * 0.125;
  gl_FragColor = vec4(vec3((ring+sweep)), 1.0);
}
`;

function compileShader(gl, source, type) {
  const shader = gl.createShader(type);
  gl.shaderSource(shader, source);
  gl.compileShader(shader);
  if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) {
    throw `Could not compile shader: ${gl.getShaderInfoLog(shader)}`;
  }
  return shader;
}

function compileVertexShader(gl, source) {
  return compileShader(gl, source, gl.VERTEX_SHADER);
}

function compileFragmentShader(gl, source) {
  return compileShader(gl, source, gl.FRAGMENT_SHADER);
}

function linkProgram(gl, vertexShader, fragmentShader) {
  const program = gl.createProgram();
  gl.attachShader(program, vertexShader);
  gl.attachShader(program, fragmentShader);
  gl.linkProgram(program);
  if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
    throw `Program failed to link: ${gl.getProgramInfoLog(program)}`;
  }
  return program;
}

function setUnitQuad(gl) {
  gl.bufferData(
    gl.ARRAY_BUFFER,
    new Float32Array([
      -1.0, -1.0, +1.0, -1.0, -1.0, +1.0, -1.0, +1.0, +1.0, -1.0, +1.0, +1.0,
    ]),
    gl.STATIC_DRAW,
  );
}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;There are several frameworks out there to help you with this. For both WebGL and OpenGL. Yes, you heard that right. You can get a 3D artist/designer/animator to generate the vertex/shader code for you to use in your WebGL application. Or you can use existing models from games, like World of Warcraft, which they’ve done in this demo: &lt;a class=&quot;ph&quot; href=&quot;http://vjeux.github.io/jsWoWModelViewer/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;http://vjeux.github.io/jsWoWModelViewer/&lt;/a&gt;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;The computations, although on the GPU, still has to be run, and for some implementations of WebGL, this can be a resource hog.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Albeit the mathematics and resource hog could be a drawback, from my point of view, the rewards outweighs this hundredfolds.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Okay, but how can I use WebGL to put the “wow” in my data visualizations?&lt;/p&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;well-i-have-my-charts&quot; class=&quot;ph&quot;&gt;Well, I have my charts&lt;a class=&quot;ph heading-link&quot; href=&quot;#well-i-have-my-charts&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Yes, there are several libraries available today for generating data visualizations on the web (charts, graphs, plotlines et al): D3.js InfoVis, Springy.js, Ember Charts, HighCharts, Raphael.js. The list is extensive and long, and you’ve probably heard of or used at least one of those libraries. But none of those libraries really pack that final “POW” to the graphical part of data visualizations.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;With WebGL, you can put more depth and meaning to your data. It allows you to present and relay the information from different perspectives.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 1nohOFqrk8zii6K0XTvNRw.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of Temperature Anomalies&quot; src=&quot;https://phun-ky.net/img/blog/1 1nohOFqrk8zii6K0XTvNRw.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 1nohOFqrk8zii6K0XTvNRw.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of Temperature Anomalies&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Screenshot of &amp;quot;&lt;a class=&quot;ph&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;http://philogb.github.io/page/temperature-anomalies/&quot;&gt;Temperature Anomalies&lt;/a&gt;&amp;quot;.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;You can give more effect to your visualisation, giving more context to the information extracted of the data.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 s01d6s7Bq8zFgzxww-ldYA.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of Temperature Anomalies&quot; src=&quot;https://phun-ky.net/img/blog/1 s01d6s7Bq8zFgzxww-ldYA.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/blog/1 s01d6s7Bq8zFgzxww-ldYA.webp&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;Screenshot of Temperature Anomalies&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Screenshot of &amp;quot;&lt;a class=&quot;ph&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://pudding.cool/2017/01/making-it-big/&quot;&gt;Making it big&lt;/a&gt;&amp;quot;.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;Visual representations of data aim to exploit human intuitive ability to recognise structure and patterns. This can be important to get a comprehensive overview of data so that you can benefit from it.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Trusted data for developers</title>
      <link>https://phun-ky.net/2015/09/29/trusted-data-for-developers</link>
      <guid isPermaLink="true">https://phun-ky.net/2015/09/29/trusted-data-for-developers</guid>
      <pubDate>Tue, 29 Sep 2015 00:00:00 GMT</pubDate>
      <category>Technology</category>
      <category>trusted-data</category>
      <category>data</category>
      <category>how-to</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Hey, you. Yes, YOU! The developer reading this article. Are you ready to call the four horsemen and start the apocalypse? Start the next nuclear holocaust? Kill patients? Bankrupt banks? Do I have your attention yet?&lt;br&gt;&lt;br&gt;Yes? Good. Because all of this can happen, and will happen, if you do not keep your shit together&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#incidents-due-to-erroneous-data&quot;&gt;Incidents due to erroneous data&lt;/a&gt;&lt;ol class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#1980-norad-nucflash&quot;&gt;1980 NORAD NUCFLASH&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#nasa-the-mars-climate-orbiter&quot;&gt;NASA, the Mars Climate Orbiter&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#what-can-we-learn-from-this&quot;&gt;What can we learn from this?&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/960px-Apocalypse_vasnetsov.jpg&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;A painting of the four horsemen of the apocalypse&quot; src=&quot;https://phun-ky.net/img/external/960px-Apocalypse_vasnetsov.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/960px-Apocalypse_vasnetsov.jpg&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;A painting of the four horsemen of the apocalypse&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Image by &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net//en.wikipedia.org/wiki/Viktor_Vasnetsov&quot;&gt;Viktor M. Vasnetsov&lt;/a&gt; - &lt;a class=&quot;ph&quot; href=&quot;http://lj.rossia.org/users/john_petrov/166993.html&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;http://lj.rossia.org/users/john_petrov/166993.html&lt;/a&gt;. Licensed under Public Domain via &lt;a class=&quot;ph&quot; href=&quot;https://commons.wikimedia.org/wiki/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Commons&lt;/a&gt;.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;How do you ask? Well, how is your data? Can it be trusted? Do you think the users of your systems are safe without trusted data?&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Anything that can go wrong will go wrong.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Murphy%27s_law&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://en.wikipedia.org/wiki/Murphy%27s_law&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;Well, let me tell you what possibly could go wrong (or in reality, will go wrong):&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;You work as a system developer, developing a control system for the flow intake of gas from the pipelines in the North Sea. The system passes all tests and is shipped out to production with flying colours, and you celebrate. But then, disaster. A valve controlling gas intake in a pipeline junction fails to close during a repair shutdown, resulting in a massive gas overflow in the area that has ongoing repairs, 3 workers welding on a new pipe segment is caught in the resulting explosion. You have now 3 lives on your consciousness. The flaw? Your system did not account for the datasets used on the valves onboard controller.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Do you really want that on your conscience? I sure would not. Is this plausible? Yes. Has something similar happened? Yes, this is another take on the &lt;a class=&quot;ph&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;http://www.msnbc.msn.com/id/4394002&quot;&gt;huge Siberian gas pipeline explosion in 1982.&lt;/a&gt; &lt;em class=&quot;ph&quot;&gt;(Albeit the 1982 event was an engineered event.)&lt;/em&gt;&lt;/p&gt;&lt;h2 id=&quot;incidents-due-to-erroneous-data&quot; class=&quot;ph&quot;&gt;Incidents due to erroneous data&lt;a class=&quot;ph heading-link&quot; href=&quot;#incidents-due-to-erroneous-data&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;h3 id=&quot;1980-norad-nucflash&quot; class=&quot;ph&quot;&gt;1980 NORAD NUCFLASH&lt;a class=&quot;ph heading-link&quot; href=&quot;#1980-norad-nucflash&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;On 3 June 1980, and again on 6 June 1980, a computer communications device failure caused warning messages to sporadically flash in U.S. Air Force command posts around the world that a nuclear attack was taking place. During these incidents, Pacific Air Forces (PACAF) properly had their planes (loaded with nuclear bombs) in the air; Strategic Air Command (SAC) did not and took criticism, because they did not follow procedure, even though the SAC command knew these were almost certainly false alarms, as did PACAF. Both command posts had recently begun receiving and processing direct reports from the various radar, satellite, and other missile attack detection systems, and those direct reports simply did not match anything about the erroneous data received from NORAD&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/North_American_Aerospace_Defense_Command#False_alarms&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://en.wikipedia.org/wiki/North_American_Aerospace_Defense_Command#False_alarms&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;Be grateful that SAC checked with other sources about this alleged nuclear attack, or we would not have been here today.&lt;/p&gt;&lt;h3 id=&quot;nasa-the-mars-climate-orbiter&quot; class=&quot;ph&quot;&gt;NASA, the Mars Climate Orbiter&lt;a class=&quot;ph heading-link&quot; href=&quot;#nasa-the-mars-climate-orbiter&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;The &lt;a class=&quot;ph&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://en.wikipedia.org/wiki/Mars_Climate_Orbiter&quot;&gt;Mars Climate Orbiter&lt;/a&gt; was planned to maneuver into Mars orbit, but due to wrong expected input, it &amp;quot;... encountered Mars in a lower than anticipated altitude and disintegrated&amp;quot;.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The primary cause of this discrepancy was that one piece of ground software supplied by Lockheed Martin produced results in a United States customary unit (&amp;quot;American&amp;quot;), contrary to its Software Interface Specification (SIS), while a second system, supplied by NASA, that used those results expected them to be in metric units, in accord with the SIS. Software that calculated the total impulse produced by thruster firings calculated results in pound-seconds. The trajectory calculation used these results to correct the predicted position of the spacecraft for the effects of thruster firings. This software expected its inputs to be in newton-seconds.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;https://en.wikipedia.org/wiki/Mars_Climate_Orbiter#Cause_of_failure&quot;&gt;Cause of failure, Mars Climate Orbiter&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;http://ars.userfriendly.org/cartoons/?id=20080824&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;userfriendly.org&quot; src=&quot;https://phun-ky.net/img/blog/uf011824.webp&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;http://ars.userfriendly.org/cartoons/?id=20080824&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;userfriendly.org&lt;/a&gt;&amp;quot; &lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;what-can-we-learn-from-this&quot; class=&quot;ph&quot;&gt;What can we learn from this?&lt;a class=&quot;ph heading-link&quot; href=&quot;#what-can-we-learn-from-this&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;p class=&quot;ph&quot;&gt;Throughout the history, we can find numerous examples of incidents relating to erroneous data, not only within the IT, Space or Military industry. We often hear about people sentenced to death or &lt;a class=&quot;ph&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot; href=&quot;http://usnews.nbcnews.com/_news/2012/05/21/11756575-researchers-more-than-2000-false-convictions-in-past-23-years?lite&quot;&gt;imprisonment due to false witness statements.&lt;/a&gt;&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Looking at server monitoring, how do we even know that it's alive? For all we know that server could report that everything is ok, even if it's not. Or with web statistics tools, how do you know that all the page hits are not from robots?&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;hm. I've lost a machine.. literally &lt;em class=&quot;ph&quot;&gt;lost&lt;/em&gt;. it responds to ping, it works completely, I just can't figure out where in my apartment it is.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;http://bash.org/?5273&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;http://bash.org/?5273&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;But how could you do it better? How can your data be safe? &amp;quot;How can I make sure I have data that is trustworthy?&amp;quot;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;This is not about just sanitation of data, using tests and verify outcomes. This is about making sure the data is trusted, and the solution is &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2015/09/09/trusted-data&quot;&gt;&amp;quot;Trusted Data&amp;quot;&lt;/a&gt;. When we are dealing with data, we have to make sure that the data is trustworthy. As &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2015/09/14/how-to-work-with-trusted-data&quot;&gt;previously mentioned&lt;/a&gt;, there are some key pointers you can adhere to, to work with &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2015/09/09/trusted-data&quot;&gt;&amp;quot;Trusted Data&amp;quot;&lt;/a&gt;.&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Assumption is the mother of all fuckups&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://www.youtube.com/watch?v=wg4trPZFUwc&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;https://www.youtube.com/watch?v=wg4trPZFUwc&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;Never assume anything when it comes to data, or interpretation of data. Be skeptic, curious. Go into the matter, tear it apart and analyse it. See things from another perspective. We are humans, we tend to see things for who we are, not for what the things are.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>Kent's theorem</title>
      <link>https://phun-ky.net/2015/09/22/kents-theorem</link>
      <guid isPermaLink="true">https://phun-ky.net/2015/09/22/kents-theorem</guid>
      <pubDate>Tue, 22 Sep 2015 00:00:00 GMT</pubDate>
      <category>Digital Business</category>
      <category>digital-business</category>
      <category>business-strategy</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;During a project at work, we were given a task on how a given industry could go digital via a disruptive or transformative path, and we quickly agreed upon a theorem provided by one of our team members, Kent Andersen. We liked it so much, that we coined it Kent's theorem.&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/960px-CollatzFractal.png&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;CollatzFractal&quot; src=&quot;https://phun-ky.net/img/external/960px-CollatzFractal.png&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/960px-CollatzFractal.png&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;CollatzFractal&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;Image by &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net//commons.wikimedia.org/w/index.php?title=User:Pokipsy76&amp;amp;action=edit&amp;amp;redlink=1&quot;&gt;Pokipsy76&lt;/a&gt; - English wikipedia. Licensed under Public Domain via &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net//commons.wikimedia.org/wiki/&quot;&gt;Wikimedia Commons&lt;/a&gt;.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;p class=&quot;ph&quot;&gt;&amp;quot;Kent's theorem&amp;quot; is a theorem about how businesses have to transform to be prepared for the digital world:&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;Companies have to fix their problems in pace of innovation. Continues improvement demands basic agreement between IT and business. Embracement of new technology, R&amp;amp;D, user centered product development and minimizing of technical debt. The goal for digitalization gives a starting point for small initiatives. Those initiatives give value to existing projects or, in best case, replaces existing products (solutions). An example of this could be mobile banks (app).&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://www.linkedin.com/profile/view?id=AAkAAAQDtO8Bju1IMzQRnnRSbrEoBmQ4Xdgw82Q&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Kent Andersen&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;What this refers to, is that companies that for years have been doing what they always have been doing, tries to innovate by repeating them selves and copy the competitors, eventually leading up to the point where they are copying themselves. The companies have to find small initiatives that could pull them closer to the future vision of complete digitalisation, instead of creating initiatives that is buried in the &amp;quot;Continous Improvement-bog&amp;quot;, that eventually will drag the production and innovation to a full stop.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;We can simplify this meaning into the phrase: &amp;quot;Innovation jump&amp;quot;.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;To ellaborate on the example given in &amp;quot;Kent's theorem&amp;quot;, the mobile bank app, instead of letting that product drop down to the &amp;quot;Continous Improvement-bog&amp;quot;, the more digitalised approach would be to fine tune that initiative, making it a magnet for other projects to pull towards. This should eventually lead to the finalisation of the projects in the &amp;quot;bog&amp;quot;, resulting in a clean new ecosystem for the new digitalised company.&lt;/p&gt;&lt;/article&gt;</description>
    </item>
    <item>
      <title>How to work with Trusted Data</title>
      <link>https://phun-ky.net/2015/09/14/how-to-work-with-trusted-data</link>
      <guid isPermaLink="true">https://phun-ky.net/2015/09/14/how-to-work-with-trusted-data</guid>
      <pubDate>Mon, 14 Sep 2015 00:00:00 GMT</pubDate>
      <category>Technology</category>
      <category>trusted-data</category>
      <category>data</category>
      <category>how-to</category>
      <description>&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2015/09/09/trusted-data&quot;&gt;previous article on &amp;quot;Trusted Data&amp;quot;&lt;/a&gt;, covered the definition on the term, but the article did not provide any leads yet on how to act on this. How do you work with data and ensure the data is trustworthy?&lt;/p&gt;&lt;/article&gt;&lt;article class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;&lt;strong class=&quot;ph&quot;&gt;Table of Contents&lt;/strong&gt;&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#sources&quot;&gt;Sources&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#interpretation&quot;&gt;Interpretation&lt;/a&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#false-positives&quot;&gt;False positives&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#data&quot;&gt;Data&lt;/a&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;#a-final-word&quot;&gt;A final word&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;We will now cover those questions, and we begin with some key areas on how you can collect and process data. This could be used as a check list to make data more trustworthy.&lt;/p&gt;&lt;figure class=&quot;ph&quot; role=&quot;presentation&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/960px-RAILROAD_WORK_CREW_IMPROVES_THE_TRACKS_AND_BED_OF_THE_ATCHISON__TOPEKA_AND_SANTA_FE_RAILROAD_NEAR_BELLEFONT__KANSAS..._-_NARA_-_556012.jpg&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;&lt;img class=&quot;ph&quot; loading=&quot;lazy&quot; alt=&quot;RAILROAD WORK CREW IMPROVES THE TRACKS AND BED OF THE ATCHISON, TOPEKA AND SANTA FE RAILROAD NEAR BELLEFONT, KANSAS... - NARA - 556012&quot; src=&quot;https://phun-ky.net/img/external/960px-RAILROAD_WORK_CREW_IMPROVES_THE_TRACKS_AND_BED_OF_THE_ATCHISON__TOPEKA_AND_SANTA_FE_RAILROAD_NEAR_BELLEFONT__KANSAS..._-_NARA_-_556012.jpg&quot;&gt;&lt;/a&gt;&lt;figcaption class=&quot;ph&quot;&gt; &amp;quot;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/img/external/960px-RAILROAD_WORK_CREW_IMPROVES_THE_TRACKS_AND_BED_OF_THE_ATCHISON__TOPEKA_AND_SANTA_FE_RAILROAD_NEAR_BELLEFONT__KANSAS..._-_NARA_-_556012.jpg&quot; target=&quot;_blank&quot; rel=&quot;noopener noreferrer&quot;&gt;RAILROAD WORK CREW IMPROVES THE TRACKS AND BED OF THE ATCHISON, TOPEKA AND SANTA FE RAILROAD NEAR BELLEFONT, KANSAS... - NARA - 556012&lt;/a&gt;&amp;quot; &lt;p class=&quot;ph&quot;&gt;by Charles O'Rear, 1941-, Photographer (&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net//research.archives.gov/person/3403717&quot;&gt;NARA record: 3403717&lt;/a&gt;) - &lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net//en.wikipedia.org/wiki/U.S._National_Archives_and_Records_Administration&quot;&gt;U.S. National Archives and Records Administration&lt;/a&gt;. Licensed under Public Domain via &lt;a class=&quot;ph&quot; href=&quot;https://commons.wikimedia.org/wiki/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Commons&lt;/a&gt;.&lt;/p&gt;&lt;/figcaption&gt;&lt;/figure&gt;&lt;h2 id=&quot;sources&quot; class=&quot;ph&quot;&gt;Sources&lt;a class=&quot;ph heading-link&quot; href=&quot;#sources&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Have you used the given source before?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Has the source provided data that appeared to be correct in the past?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Have other parties used the source before?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Are the sources credible?&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The quantity of information available is so staggering that we cannot know everything about a subject. For example, it's estimated that anyone attempting to research what's known about depression would have to read over 100,000 studies on the subject. And there's the problem of trying to decide which studies have produced reliable results.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://owl.english.purdue.edu/owl/resource/553/01/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Evaluating Sources: Overview, Online Writing Lab, Purdue University&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;If you have used the source before, you have probably acquired a level of trust with that source, relying on the data it provides. If you have not used the source, you can verify it by enquiring experience from other users of that source and validate the data itself.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;To recap on what sources could be:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Wife &lt;sup&gt;&lt;a class=&quot;ph&quot; href=&quot;https://phun-ky.net/2015/09/09/trusted-data#interpretation-of-data&quot;&gt;(telling you what to get in the store)&lt;/a&gt;&lt;/sup&gt;&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;The TV-schedule&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;API-service&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Radio show host&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Newspaper&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Website&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Birth certificate&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Whistle-blower&lt;/li&gt;&lt;/ul&gt;&lt;h2 id=&quot;interpretation&quot; class=&quot;ph&quot;&gt;Interpretation&lt;a class=&quot;ph heading-link&quot; href=&quot;#interpretation&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Have you interpreted the data correctly?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Have you interpreted the data wrongly before?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Have you interpreted the data with the same understanding of the data as others?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Could the data be interpreted in another way?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Do the consumers of the data interpret it the same way?&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;The interpretation method will vary from each use and scenario. The perspective used to interpret those data is strongly biased with our own understanding of the data. We could also say that our take on the data can be based on how we have interpreted the data before.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Try to analyse the data from another view. If it is statistical data gathered from a quantitative survey, could the data be strengthened or weakened through a qualitative survey?&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;If you monitor a server, how can you be sure that the server is healthy without actually &amp;quot;physically&amp;quot; checking the server? Do you rely on the data from the monitoring completely?&lt;/p&gt;&lt;h3 id=&quot;false-positives&quot; class=&quot;ph&quot;&gt;False positives&lt;a class=&quot;ph heading-link&quot; href=&quot;#false-positives&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h3&gt;&lt;p class=&quot;ph&quot;&gt;When it comes to the interpretation of data, developers most likely will interact with a term called &amp;quot;false positives&amp;quot;. We can quickly explain this by this example in JavaScript:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;0 == false; // true
0 === false; // false, because they are of a different type
1 == '1'; // true, automatic type conversion for value only
1 === '1'; // false, because they are of a different type
null == undefined; // true
null === undefined; // false
'0' == false; // true
'0' === false; // false
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;The difference between &lt;code class=&quot;ph language-&quot; content=&quot;==&quot;&gt;==&lt;/code&gt; and &lt;code class=&quot;ph language-&quot; content=&quot;===&quot;&gt;===&lt;/code&gt; is that the latter means &amp;quot;equality wihout type coersion&amp;quot;, meaning that when we use &lt;code class=&quot;ph language-&quot; content=&quot;===&quot;&gt;===&lt;/code&gt;, we also check if the type is equal.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Another example is this:&lt;/p&gt;&lt;div class=&quot;ph code-toolbar&quot;&gt;&lt;div class=&quot;ph tools&quot;&gt;&lt;span class=&quot;ph language&quot;&gt;javascript&lt;/span&gt;&lt;button class=&quot;ph copy&quot;&gt;copy&lt;/button&gt;&lt;/div&gt;&lt;pre class=&quot;ph language-javascript&quot; language=&quot;javascript&quot;&gt;&lt;code class=&quot;ph javascript language-javascript&quot;&gt;// Equals false
new String() === new String();
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p class=&quot;ph&quot;&gt;This is because the created objects got different object references.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;One example on false positives that could have resulted in World War 3, is the 1979 NORAD NUCFLASH incident:&lt;/p&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The missile defense agency received alarming indications that a full scale battery of Russian nukes were heading toward the U.S. Planes were scrambled with fully armed nuclear weapons. The president's shielded emergency plane was put into the air too ...&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Fingers hovered over buttons. Commanders of flight crews waited for word to strike. For six tense minutes, no one was sure if World War III was happening …and oddly, no one used the &amp;quot;red phone&amp;quot; hotline to ask the Soviets. Finally, word came from Advanced Early Warning radar and satellites that no missiles were detected. The culprit? A training tape had accidentally been run and generated the false positive signals.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;http://io9.com/5664390/5-times-we-almost-nuked-ourselves-by-accident&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;http://io9.com/5664390/5-times-we-almost-nuked-ourselves-by-accident&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;h2 id=&quot;data&quot; class=&quot;ph&quot;&gt;Data&lt;a class=&quot;ph heading-link&quot; href=&quot;#data&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;Can you verify it?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;Can it be reproduced?&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;Verify the data by checking against other sources. Re-collect it, is the data the same? Can the data be reproduced over time?&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;Within IT-development, this could be ensured during a development lifecycle with unit-tests, data validation, checking charsets and protocols.&lt;/p&gt;&lt;h2 id=&quot;a-final-word&quot; class=&quot;ph&quot;&gt;A final word&lt;a class=&quot;ph heading-link&quot; href=&quot;#a-final-word&quot; aria-label=&quot;Link to this heading&quot;&gt;&lt;/a&gt;&lt;/h2&gt;&lt;blockquote class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;The best way to find out if you can trust somebody is to trust them.&lt;/p&gt;&lt;footer class=&quot;ph&quot;&gt;&lt;p class=&quot;ph&quot;&gt;– &lt;a class=&quot;ph&quot; href=&quot;https://en.wikiquote.org/wiki/Talk:Ernest_Hemingway&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;Ernest Hemingway&lt;/a&gt;&lt;/p&gt;&lt;/footer&gt;&lt;/blockquote&gt;&lt;p class=&quot;ph&quot;&gt;In the end, you will have to have a whole lot of trust in yourself to be able to collect, analyse, interpret and relay data that can be trusted. You cannot trust data 100%, but you can put some effort into validating data. Check other reliable sources, be skeptic, question the validity of data. Re-collect information, be certain you have the correct information.&lt;/p&gt;&lt;hr class=&quot;ph&quot;&gt;&lt;div class=&quot;ph message info&quot;&gt;&lt;span class=&quot;ph title&quot;&gt;&lt;svg class=&quot;ph icon&quot; viewbox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/span&gt;&lt;p class=&quot;ph&quot;&gt;There are some organizations and standards that work to enhance and refine data and credibility of sources.&lt;/p&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;http://credibility.stanford.edu/&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;The Stanford Web Credibility Research Project&lt;/a&gt; (part of &lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/Stanford_Behavior_Design_Lab&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;the Persuasive Technology Lab&lt;/a&gt;) at Stanford University are investigating questions such as:&lt;/p&gt;&lt;ul class=&quot;ph&quot;&gt;&lt;li class=&quot;ph&quot;&gt;*What causes people to believe (or not believe) what they find on the Web?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;*What strategies do users employ in evaluating the credibility of on-line sources?&lt;/li&gt;&lt;li class=&quot;ph&quot;&gt;*What contextual and design factors influence these assessments and strategies?&lt;/li&gt;&lt;/ul&gt;&lt;p class=&quot;ph&quot;&gt;&lt;a class=&quot;ph&quot; href=&quot;https://en.wikipedia.org/wiki/TrustRank&quot; target=&quot;_blank&quot; rel=&quot;noreferrer noopener&quot;&gt;TrustRank&lt;/a&gt; is a technique used for semi-automatic separation of useful web pages from spam.&lt;/p&gt;&lt;/div&gt;&lt;/article&gt;</description>
    </item>
  </channel>
</rss>
