<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Godfrey Fernandes on Medium]]></title>
        <description><![CDATA[Stories by Godfrey Fernandes on Medium]]></description>
        <link>https://medium.com/@godfernThirteen?source=rss-e3e6a986afc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*nmJ6s6xFum71RulE.jpg</url>
            <title>Stories by Godfrey Fernandes on Medium</title>
            <link>https://medium.com/@godfernThirteen?source=rss-e3e6a986afc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:06:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@godfernThirteen/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Portfolio Upgrade: A Redesign Slashed Load Times and Boosted Performance ]]></title>
            <link>https://medium.com/@godfernThirteen/my-portfolio-upgrade-a-redesign-slashed-load-times-and-boosted-performance-264b4ddd9fcb?source=rss-e3e6a986afc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/264b4ddd9fcb</guid>
            <dc:creator><![CDATA[Godfrey Fernandes]]></dc:creator>
            <pubDate>Mon, 20 Oct 2025 12:46:06 GMT</pubDate>
            <atom:updated>2025-11-17T08:05:54.785Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NeWoxc8c14mwGR_M" /><figcaption>Photo by <a href="https://unsplash.com/@travellerweirdgene?utm_source=medium&amp;utm_medium=referral">Ashutosh Saraswat</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I recently completed a revamp of my personal portfolio website. It wasn’t just a fresh coat of paint; it was a complete architectural rebuild. Moving from my older static site to a new, modern stack has been a game-changer, both aesthetically and, more importantly, under the hood.</p><p>This post breaks down the transformation, focusing on two key areas: the <strong>design evolution</strong> and the dramatic jump in <strong>Lighthouse performance scores</strong>.</p><h3><strong>The Design Evolution: A Coast-Inspired, Performance-Driven UX</strong></h3><p>The goal of this redesign was to move beyond a simple portfolio showcase and create a direct demonstration of my current skills as a <strong>Frontend Developer</strong>. My focus was twofold:</p><ol><li><strong>Design &amp; UX:</strong> Implement a <strong>modern, simplistic design</strong> using a <strong>minimal color palette</strong> to ensure the UI is clean, accessible, and provides a clear, better user experience.</li><li><strong>Performance &amp; Optimization:</strong> Drastically <strong>increase performance</strong> by slashing load times, implementing better <strong>image optimization</strong>, and ensuring the content (skills and latest projects) is always current.</li></ol><blockquote>The Old Site: <a href="http://godfreyfernandes.netlify.app/">http://godfreyfernandes.netlify.app</a></blockquote><blockquote>The old site was a reliable workhorse, but it lacked the modern finesse and performance guarantees I wanted to present. It was functional, but didn’t truly reflect my current abilities and design sensibility.</blockquote><blockquote>The New Site: <a href="http://godfreyfernandes.com/">http://godfreyfernandes.com</a></blockquote><blockquote>The new design is <strong>modern, clean, and highly professional</strong>. I focused on creating a <strong>fluid, resilient</strong> user experience, inspired by the concept of the Goan coast where I’m based.</blockquote><blockquote><strong>Aesthetics:</strong> The layout is structured with clear navigation (Home, About Me, Work Experience, Projects, Contact). The use of <strong>Tailwind CSS</strong> allowed for a utility-first approach to styling, resulting in a highly responsive and visually consistent design.</blockquote><blockquote><strong>Technology Stack:</strong> The new site is built on a high-performance stack: <strong>Next.js</strong> (for server-side rendering/static generation), <strong>React.js</strong>, and <strong>TypeScript</strong>. This choice was purely performance-driven, ensuring fast component rendering and efficient data fetching, which translates directly to a better Lighthouse score.</blockquote><blockquote><strong>User Experience:</strong> The flow is intuitive, directing visitors immediately to my core value proposition, technical skills, and detailed work history. The overall experience is one of speed and stability — a hallmark of modern web development.</blockquote><h3>The Numbers Don’t Lie: Lighthouse Score Transformation</h3><p>The true measure of success wasn’t just visual appeal, but raw performance. Running a Google Lighthouse audit on both versions revealed a stark contrast. The jump in my <strong>Performance</strong> score validates the choice of a modern, optimized framework like Next.js.</p><p><strong>Lighthouse Score Comparison</strong></p><p><strong><em>Old Site(</em></strong><a href="https://godfreyfernandes.netlify.app/"><strong><em>https://godfreyfernandes.netlify.app/</em></strong></a><strong><em>)</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*pU252FldfCy49BCsidQOrQ.png" /></figure><p><strong><em>New Site(</em></strong><a href="http://godfreyfernandes.com/"><strong><em>godfreyfernandes.com</em></strong></a><strong><em>)</em></strong></p><figure><img alt="Lighthouse Score for godfreyfernandes.com" src="https://cdn-images-1.medium.com/max/926/1*HHyt2NcZYJcOHUWC60H3mw.png" /></figure><h3>Deep Dive into the Metrics: What the Statistics Mean</h3><p>Lighthouse’s <strong>Performance</strong> score is a weighted average of several key metrics. Improving this score requires targeting each individual component. Here is a breakdown of the key statistics I focused on and what they represent:</p><h4>The Core Web Vitals (The User Experience Metrics)</h4><p>These are the metrics Google uses to measure real-world user experience and are fundamental to the Lighthouse Performance score.</p><p><strong>Largest Contentful Paint (LCP)</strong></p><p>Measures how long it takes for the largest image or text block in the viewport to become visible. This is a crucial proxy for perceived load speed. <strong>Goal:</strong> Under 2.5 seconds.</p><p><strong>Cumulative Layout Shift (CLS)</strong></p><p>Measures the visual stability of a page. It quantifies how much content shifts unexpectedly during the page lifecycle, which is frustrating for users. <strong>Goal:</strong> Score of 0.1 or less.</p><p><strong>Interaction to Next Paint (INP)</strong></p><p>Measures a page’s overall responsiveness to user input (clicks, taps, and keyboard interactions). It records the time from interaction until the browser presents the next frame. <strong>Goal:</strong> 200 milliseconds or less.</p><h4>Other Key Performance Metrics</h4><p><strong>First Contentful Paint (FCP)</strong></p><p>Measures when the very first text or image is painted to the screen. It signals to the user that the page is loading. <strong>Goal:</strong> Under 1.8 seconds.</p><p><strong>Speed Index (SI)</strong></p><p>Measures how quickly the contents of a page are visibly populated. It’s an aggregate of how visible content is during the entire loading experience. <strong>Goal:</strong> Under 3.4 seconds.</p><p><strong>Total Blocking Time (TBT)</strong></p><p>Measures the time blocked by scripts/tasks that prevent the page from responding to user input (before the page is fully interactive). A high TBT is often caused by heavy JavaScript execution. <strong>Goal:</strong> 200 milliseconds or less.</p><h4>My Optimization Focus: LCP and TBT</h4><p>My biggest win came from optimizing <strong>LCP</strong> and <strong>TBT</strong>. By utilizing Next.js features like <strong>automatic image optimization</strong> and <strong>code splitting</strong>, I ensured:</p><ol><li><strong>LCP Improvement:</strong> The Largest Contentful Element (typically the hero section image/heading) loads instantly due to static generation and efficient image delivery.</li><li><strong>TBT Reduction:</strong> Non-critical JavaScript is deferred, significantly reducing the amount of time the main thread is blocked, making the site feel interactive immediately.</li></ol><h4>Conclusion: Performance is the New Aesthetic</h4><p>The redesign was a powerful reminder that performance is not just a technical detail — it is a core feature of the user experience. Achieving high scores across the board (especially in Performance, Accessibility, and SEO) means that my portfolio is not only beautiful but fast, stable, and easily discoverable.</p><p>If you are considering a portfolio rebuild, checkout the <strong>Lighthouse scores</strong> for your design metric. The improved experience for my visitors is well worth the effort!</p><p><strong>P.S.:</strong> You can check out the new, high-performance site here: <a href="https://godfreyfernandes.com/"><strong>https://godfreyfernandes.com/</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264b4ddd9fcb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bits and Pieces about Javascript]]></title>
            <link>https://medium.com/@godfernThirteen/bits-and-pieces-about-javascript-d8a78d40ae67?source=rss-e3e6a986afc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8a78d40ae67</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6-js]]></category>
            <dc:creator><![CDATA[Godfrey Fernandes]]></dc:creator>
            <pubDate>Sun, 03 May 2020 16:51:15 GMT</pubDate>
            <atom:updated>2020-09-15T10:34:39.595Z</atom:updated>
            <content:encoded><![CDATA[<p>Share and learn what you need to believe in! Here is my first ever blog which I&#39;m starting. In this blog, I bring out very simple coding practices or a compilation of bits and pieces of Javascript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8tJzXd1TEOz5qxBprd5Qpg.jpeg" /></figure><p>When it comes to writing a piece of code you either follow what the books say or you explore what is untold. Here are some of the bits and pieces of Javascript which can be helpful in your daily coding habits.</p><ul><li><strong>Destructuring what is undefined</strong><br><em>We can destructure what is undefined and set a default value to it</em></li></ul><pre>let obj = undefined;<br>const { name } = obj; <br>//Uncaught TypeError: Cannot destructure property &#39;name&#39; of &#39;obj&#39; as it is undefined.<br>const { name= &quot;First blog&quot; } = obj || {};<br>//Setting default values to undefined object<br>console.log(name) // First blog</pre><pre>let obj1 = {name:&#39;tom&#39;}<br>console.log(obj1.name)</pre><pre>obj1.__proto__.toString= () =&gt; {alert(&#39;im a bug&#39;);}</pre><pre>let obj2 = {};<br>obj2.toString()</pre><ul><li><strong>Prototype Pollution<br></strong><em>It&#39;s a vulnerability that pollutes the prototype of a base object</em></li></ul><pre>let obj1 = {name: &#39;tom&#39;};<br>console.log(obj1.name) // tom</pre><pre>obj1.__proto__.toString= () =&gt; {alert(&#39;im a bug&#39;);}</pre><pre>let obj2 = {};<br>obj2.toString()// alert with &quot;im a bug&quot;</pre><ul><li><strong>Push to empty array “[]”<br></strong><em>Pushing to an empty array without declaring results in the length of the array.</em></li></ul><pre>let arr1 = [];<br>arr1.push(&quot;tom&quot;)<br>console.log(arr1); //[&quot;tom&quot;]</pre><pre>let arr2 = [].push(&quot;tom&quot;);<br>console.log(arr1); // 1<br>let arr2 = [&quot;sam&quot;].push(&quot;tom&quot;);<br>console.log(arr3); // 2</pre><ul><li><strong>Getting a subpart of an array<br></strong><em>Using “slice” we can get a subpart of an array without changing the main array</em></li></ul><pre>let arr1 = [&#39;tom&#39;,&#39;sam&#39;,&#39;ron&#39;,&#39;dan&#39;,&#39;ven&#39;];<br>let arr2 = arr1.splice(0,2)<br>console.log(arr1); // [&quot;tom&quot;, &quot;sam&quot;, &quot;ron&quot;, &quot;dan&quot;, &quot;ven&quot;]<br>console.log(arr2); // [&quot;tom&quot;, &quot;sam&quot;]</pre><ul><li><strong>Empty object check <br></strong><em>Empty objects can be checked using the built-in method Object.keys length. But why </em><strong><em>constructor</em></strong><em> we need here. It&#39;s needed to check if its an Object and not any object instance which might be created using other constructors like String, Number, Boolean, Array, RegExp, Function, or Date.</em></li></ul><pre>const empty = {};<br><br>Object.keys(empty).length === 0 &amp;&amp; empty.constructor === Object;</pre><pre>function goodEmptyCheck(value) {<br>  Object.keys(value).length === 0<br>    &amp;&amp; value.constructor === Object; // 👈 constructor check<br>}<br><br>goodEmptyCheck(new String());   // false ✅<br>goodEmptyCheck(new Number());   // false ✅<br>goodEmptyCheck(new Boolean());  // false ✅<br>goodEmptyCheck(new Array());    // false ✅<br>goodEmptyCheck(new RegExp());   // false ✅<br>goodEmptyCheck(new Function()); // false ✅<br>goodEmptyCheck(new Date());     // false ✅<br>goodEmptyCheck(new Object());   // true✅</pre><h3>References</h3><p><a href="https://codeburst.io/what-is-prototype-pollution-49482fc4b638">https://codeburst.io/what-is-prototype-pollution-49482fc4b638</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8a78d40ae67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>