<?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 Rui Sousa on Medium]]></title>
        <description><![CDATA[Stories by Rui Sousa on Medium]]></description>
        <link>https://medium.com/@itzami?source=rss-8379066bec55------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6-u2qiiDbRhvGBVe5QCDWw.jpeg</url>
            <title>Stories by Rui Sousa on Medium</title>
            <link>https://medium.com/@itzami?source=rss-8379066bec55------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:08:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itzami/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[Boost your CSS animations with Intersection Observer API]]></title>
            <link>https://itzami.medium.com/boost-your-css-animations-with-intersection-observer-api-900becabfc4b?source=rss-8379066bec55------2</link>
            <guid isPermaLink="false">https://medium.com/p/900becabfc4b</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[css-animation]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[intersection-observer]]></category>
            <dc:creator><![CDATA[Rui Sousa]]></dc:creator>
            <pubDate>Sun, 07 Feb 2021 13:42:33 GMT</pubDate>
            <atom:updated>2021-02-07T13:42:33.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LznKub5iW8v28cZ3ciwopg.jpeg" /><figcaption>Boost your CSS animations with Intersection Observer API</figcaption></figure><p>CSS animations can be a pain in the 🍑, and what’s even worst is to trigger them at the exact moment. For that exact reason, <em>and if I may be perfectly honest with you</em>, I opt for not using them most of the time. However…</p><h3>Presenting: Intersection Observer API</h3><p><em>Before starting, if you need a refresher on what’s an API, </em><a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Client-side_web_APIs/Introduction"><em>this</em></a><em> is a good place to get info on it</em></p><p>You may think that I’m out of my mind for suggesting that you should use an API for animating CSS but hear me out… <a href="https://github.blog/2021-01-29-making-githubs-new-homepage-fast-and-performant/">GitHub</a> uses it to make their homepage more performant and faster so you know it must be good!</p><p>When we usually want to check an element’s position in the window we might end up using stuff like elem.clientTop, elem.offsetTop or even elem.getBoundingClientRect() but the truth is that these properties/methods will trigger the browser to calculate the required style and layout (check the whole list of properties that target this and a further explanation <a href="https://gist.github.com/paulirish/5d52fb081b3570c81e3a">here</a>) which creates a performance bottleneck.</p><p>A way to circumvent this is by using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API">Intersection Observer API</a>, which, according to the MDN documentation, ‘provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document’s viewport.’. So, basically, we’ll just monitor if an element will enter/exit another element/the viewport and that’s way easier for the browser to process.</p><h3>So… How do you do it?</h3><p>The <a href="https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver">IntersectionObserver interface</a> can be created very easily and all you have to do is to pass a callback to it and some options. The <strong>callback</strong> is what decides what will happen to the list of <em>IntersectionObserverEntry</em> objects and the <strong>options</strong> allow you to control the circumstances in which the <em>callback</em> will be called (please refer to the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API">MDN documentation</a> for full details on this).</p><p>For example purposes only, we’ll not define our <strong>options</strong> (which will make them adopt some default values) and we’ll simply work with our <strong>callback</strong>, so our initial setup would be something like this:</p><pre>let expansionObserver = new IntersectionObserver((entries) =&gt; {<br>  entries.forEach((entry) =&gt; {<br>    if (entry.intersectionRatio &gt; 0) {<br>        // something here<br>    } else {<br>        // something here<br>    }<br>  });<br>});</pre><p>Now that we have our <em>expansionObserver</em>, we need to grab the elements that we want to animate. For this we’ll use document.querySelectorAll() and we&#39;ll get all the elements with the class .expand.</p><p>So, on our HTML it would look like this:</p><pre>&lt;body&gt;<br>    &lt;div id=&quot;section-one&quot;&gt;&lt;/div&gt;<br>    &lt;div id=&quot;section-two&quot;&gt;<br>      &lt;div id=&quot;container&quot;&gt;<br>        &lt;h1 class=&quot;expand&quot;&gt;Hello&lt;/h1&gt;<br>      &lt;/div&gt;<br>    &lt;/div&gt;<br>&lt;/body&gt;</pre><p>And our JavaScript would look like this:</p><pre>const elementsToExpand = document.querySelectorAll(&quot;.expand&quot;);</pre><p>After this, we need to tell the IntersectionObserver that we want to observe these elements, and since we&#39;re using querySelectorAll() we need to loop over elementsToExpand and we&#39;ll use a forEach() for it.</p><pre>elementsToExpand.forEach((element) =&gt; {<br>  expansionObserver.observe(element);<br>});</pre><p>To finish our JavaScript part, we need to fill the if/else statement we wrote on our callback. Here we&#39;ll want to style our elementsToExpand with the animation that they should have like so:</p><pre>let expansionObserver = new IntersectionObserver((entries) =&gt; {<br>  entries.forEach((entry) =&gt; {<br>    if (entry.intersectionRatio &gt; 0) {<br>      entry.target.style.animation = `expansion 2s ease-in-out`;<br>    } else {<br>      entry.target.style.animation = &quot;none&quot;;<br>    }<br>  });<br>});</pre><p>So, this is the whole behaviour that you have to recreate and now all we have to do is to define in our CSS this expansion animation:</p><pre>@keyframes expansion {<br>  from {<br>    transform: scaleY(0.1);<br>  }<br>  to {<br>    transform: scaleY(1);<br>  }<br>}</pre><p>And we’re done! You can now check the full example in this preview or you can play around with the <a href="https://codesandbox.io/s/billowing-paper-lm0ij?file=/index.html:310-352">CodeSandbox</a> yourself! I’ve added an extra element with a different animation so you could get a full grip of what’s happening! 😄</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodesandbox.io%2Fembed%2Fbillowing-paper-lm0ij%3Ffontsize%3D14%26hidenavigation%3D1%26theme%3Ddark&amp;display_name=CodeSandbox&amp;url=https%3A%2F%2Fcodesandbox.io%2Fs%2Fbillowing-paper-lm0ij%3Ffontsize%3D14%26hidenavigation%3D1%26theme%3Ddark&amp;image=https%3A%2F%2Fcodesandbox.io%2Fapi%2Fv1%2Fsandboxes%2Flm0ij%2Fscreenshot.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codesandbox" width="1000" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/88b8f96b6a0f5d8f24f9959a3e7656ea/href">https://medium.com/media/88b8f96b6a0f5d8f24f9959a3e7656ea/href</a></iframe><h3>And that’s it!</h3><p>What did you think about the Intersection Observer API? Will you give it a try on your next project?<br>Let me know what you thought about this post and feel free to follow me on <a href="https://twitter.com/HeyItzaMi">Twitter</a> 🤘</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=900becabfc4b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I use Notion as a developer]]></title>
            <link>https://itzami.medium.com/how-i-use-notion-as-a-developer-f7c2f435a340?source=rss-8379066bec55------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7c2f435a340</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[notion]]></category>
            <category><![CDATA[study]]></category>
            <dc:creator><![CDATA[Rui Sousa]]></dc:creator>
            <pubDate>Mon, 28 Dec 2020 15:54:11 GMT</pubDate>
            <atom:updated>2020-12-28T15:54:11.455Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*-42ZZLY7u-MTO5GHEyVlxQ.png" /><figcaption>How I use Notion as a developer — ItzaMi</figcaption></figure><p><a href="https://www.notion.so/"><strong>Notion</strong></a> is an amazing tool that helps you organize your work and you can pretty much adjust to all of your needs. Also, there are <a href="https://www.notion.so/Notion-Template-Gallery-181e961aeb5c4ee6915307c0dfd5156d"><strong>a lot of templates</strong></a> to choose from made by incredibly creative people.</p><h3>My Overall Setup</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*rEwIN7FphcFkWWz1ESdVPA.png" /><figcaption>My Overall Setup — Itzami</figcaption></figure><p>I use Notion for a lot of stuff (activity tracker, money manager, diary) but it all started when I realized that I had way too many development blog posts saved in my browser’s bookmarks. Once I took a clear look at them I said to myself</p><blockquote>There’s no way I would ever find here, even if I wanted</blockquote><p>So, something had to be done about it and that’s when I started using Notion! My first database was <strong>Reading List</strong>.</p><h3>Reading List</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*MsPx18xSZQxDLR8IV9rZIw.png" /><figcaption>Reading List — ItzaMi</figcaption></figure><p>The <strong>Reading List</strong> serves as my organized collection where I put the articles or tutorials that I find interesting for stuff that will surely be useful for my career. More than being a collection of stuff that I haven’t read before, it’s a collection of stuff that I know will always be useful for me and that I should always take into consideration.</p><blockquote>Yes, a Google search might serve the same purpose but here I’m capable to organize the info as I want</blockquote><p>And that’s what I do. Since Notion allows you to add tags and filters, it’s the perfect way to only what you actually want to see, which facilitates search. I also ended up using Gallery mode because, for me, having a list of links isn’t particularly interesting and I want something that is eye-popping and I can find easily. I would say that the images do the trick!</p><p>However, I ended up realizing that not everything belongs to the Reading List and they are just stuff that I find around the internet that seems interesting but I don’t really have time to read them right when I find them so that’s where <strong>Quick Links</strong> appear!</p><h3>Quick Links</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*E49pDURLH9PfMNY859eTOQ.png" /><figcaption>Quick Links — ItzaMi</figcaption></figure><p><strong>Quick Links</strong> pretty much represents what I don’t want my <strong>Reading List</strong> to look like, but when you’re on your phone you don’t have time to make an incredible-looking database. Instead, you just copy &amp; paste the link and title and you’re all set for when you actually have time to study whatever you’ve found.<br>It basically serves as a triage for whatever comes into my Notion. The material does the check-in here and then they are properly dropped in their own place! I try to have this page as clean as possible since I don’t want to repeat my mistake with the bookmarks!</p><h3>Task List</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*zpx8aFNFIjKFunTyClkF9g.png" /><figcaption>Task List — ItzaMi</figcaption></figure><p>I don’t like to program my day or even week but, sometimes, when you actually want to have side-projects, you need to organize your life! If you don’t, you’ll never find the time to work on them so that’s why this Task List exists. I mostly use pen and paper for work but for my side projects, considering that I only have the weekends to work on them, it’s a great tool and helps me assess the project’s progression.</p><h3>Blog</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*P2FfrbpEb4hbZwg9sYSIiQ.png" /><figcaption>Blog — ItzaMi</figcaption></figure><p>I think this one is self-descriptive but I write all my content on Notion before assessing if it’s good enough to be published. It’s also where I take note of topics that I might want to cover or links to other blog posts that I may want to expand upon.</p><h3>Note Taking</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*HQDHkbNvgga7aF7lhozq3A.png" /><figcaption>Note Taking — Itzami</figcaption></figure><p>Here stands the important notes that I take (well, duh!) from my <strong>Reading List</strong> or books. Some things aren’t worth taking notes on and some others deserve a special place to which I can quickly refer to. For example, <strong><em>Rework</em></strong> and <strong><em>The Opinionated Guide to React</em></strong> are two books that I read, enjoyed, and took some notes along the way and I want to preserve them without having to get to the original material again!</p><h3>App Ideas</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*LVFJPtv6oO2dmcIVUx7ZsA.png" /><figcaption>App Ideas — ItzaMi</figcaption></figure><p>I guess that we all have this section on a paper, note app on the phone, or a word document but here stands my quirky ideas for apps, including with technologies that I have no idea on how to work with. Some are supposed to be personal projects, others might turn into actual products. The important part for me here is that I classify these projects on their type (personal or product) and degree of execution (<em>“As of now, how easily can I build it and how motivated am I to do so?”</em>). For me, the degree of execution plays a huge part in it because while all ideas are great, I may just not feel incline to elaborate on them… but I don’t want to lose them as well.</p><h3>Learning X</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*rMyuIisdGm29FS5bpkH9yw.png" /><figcaption>Learning X — ItzaMi</figcaption></figure><p>This is basically a sub-division of <strong>Note Taking</strong> but I also insert here resources for these specific technologies. I’m still starting to build a system for this section but at least I have a visible section for something that I’m currently learning and that’s the important part!</p><h3>That’s pretty much it!</h3><p>If you read this far, thank you so much for it! Hopefully, this post ends up helping something that might need some organization in their life!<br>I usually ramble a lot on <a href="https://twitter.com/HeyItzaMi">Twitter</a> so you can find me there!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7c2f435a340" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Important tips for a self-taught developer at a software company]]></title>
            <link>https://itzami.medium.com/important-tips-for-a-self-taught-developer-at-a-software-company-ecb39abc5c3a?source=rss-8379066bec55------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecb39abc5c3a</guid>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Rui Sousa]]></dc:creator>
            <pubDate>Fri, 17 Jul 2020 08:01:01 GMT</pubDate>
            <atom:updated>2020-07-17T08:01:01.231Z</atom:updated>
            <content:encoded><![CDATA[<h3>Important tips for a self-taught developer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJXrM3d1BSeCXmoKbBS2GA.png" /></figure><p>There are some <a href="https://www.freecodecamp.org/news/ace-your-first-year-as-a-junior-developer-with-this-advice-bbc68b6fe2d9/">big tips out there</a> that will teach you the core fundamentals (mostly technical) to withstand, as a junior developer, the first times at a company. This post, however, focuses on traits that are a bit more on the <strong>personality </strong>side of the role (I guess you could say that it’s aimed to help you being human 🤔).</p><p>Although the post starts by focusing on self-taught developers, <strong>it’s actually for everybody</strong>. The reason I chose to speak closely to the self-taught developers out there is because I’m one of them.</p><p>To talk a bit about myself, I’m a self-taught Front End Developer with a Master’s Degree in Psychology (completely changing my career path) and I got my first job as a Front End Web Developer at <a href="https://coletiv.com/">Coletiv</a>, a software development studio from Porto 😎</p><p>In this post, I intend to cover <strong>4 important tips</strong> that helped me improve myself and that I find fundamental to turn your first software development role (or any role at any profession, really) a more pleasant experience (for you and your peers).</p><p>So, without further ado, let’s do it!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o84sw9CmwYpAnRRni%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fstarwars-star-wars-episode-3-3o84sw9CmwYpAnRRni&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2F3o84sw9CmwYpAnRRni%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="188" frameborder="0" scrolling="no"><a href="https://medium.com/media/3556960d2b86f022a91d6c75714a8b5d/href">https://medium.com/media/3556960d2b86f022a91d6c75714a8b5d/href</a></iframe><h3>Tip 1: Learn to say “I Don’t Know”</h3><p>No one expects you to know everything but <strong>they do expect you to tell them when you don’t</strong>. Be comfortable showing your own level.</p><p>Saying <strong>I don’t know </strong>shows that you’re comfortable with your own knowledge and that you understand your weaknesses. It allows your mentors, colleagues or peers to adjust their speech and, if you add <strong>“But can you show me?”</strong> to it, they will guide you and show you the resources so you can change that <strong>I don’t know</strong> to <strong>Yeah, of course I know!</strong></p><p>Don’t try to <em>pretend </em>like you do know about the subjects if you have no idea what people are talking about. You won’t gain anything with it. You’ll be left with no answers and a lot of doubts and the only profit you might take from it is a slight ego boost!</p><h3>Tip 2: Have the ability and will to learn</h3><p><strong>The ability to learn</strong></p><p><strong>If you still haven’t figured what’s your best study and learning method, work some late hours trying to figure it out so you can ask for resources similar to your preferred way.</strong> That way you can get specialized help and resources without feeling like you’re spinning your wheels.</p><p>If video tutorials aren’t for you, ask for books. If books aren’t for you, check the documentation. If the documentation isn’t cutting it, create a mini-project that tackles whatever you’re learning.</p><p><strong>The will to learn</strong></p><p>Of course, resources and the perfect way of studying mean nothing if there’s no will of tackling your difficulties. You might get away a couple of times by reading an answer on StackOverflow but <strong>you DO want to learn and understand what you’re working with</strong>; I believe that’s the only way of actually doing some progress.</p><p>Allow yourself to study past work hours. <strong>Do it for yourself</strong>. Not for the job but for yourself since you probably already sacrificed a lot to be here. So why stop now?</p><h3>Tip 3: Keep teaching yourself</h3><p>Be the first one to know your own weaknesses. <strong>If you don’t stay hungry, you’ll never know what you’re missing out on your knowledge and <em>curriculum</em></strong><em>. </em>Look for new stuff and have a reading list. Take notes of everything that seems new (but <em>relatable to your area</em>) and prioritize what seems to give you the edge.</p><p>If you’re working with React and your knowledge of <em>useEffect </em>seems a bit wonky, don’t wait for others to point it out so you do something about it.</p><p><strong>Stay hungry!</strong></p><h3>Tip 4: Don’t be a lone wolf</h3><p>No one is against you… or, if there is someone against, it’s probably someone who doesn’t matter. Your mentors, colleagues, and peers want to hang out with you and help you! If they didn’t, they probably wouldn’t have hired you.</p><p>Allow yourself to open up and make the working environment more friendly towards you. It will make things easier when you’ll eventually ask for help and it’s just better to get to know people.</p><p>We’re all used to work alone but this time we can share a joke from time to time and actually connect with someone and we have the opportunity to share knowledge, ideas and to get better together!</p><h3>That’s pretty much it!</h3><p>I think these four tips cover what I think to be essentials to actually get through your first job as a developer. Sure, there is a lot more to talk about but, for me, <strong>Being hungry</strong>,<strong> Staying humble,</strong> and <strong>Being a people person </strong>take the cake since they will help you level up your knowledge and increase your connection.</p><p>So, if I had to shorten this article to a single phrase, it would be this</p><blockquote>Having technical skills is important but being willing to DO, TRY and FAIL is critical</blockquote><p>Are there any other tips you consider important? <em>Share them in the comments!</em></p><h3>Thank you for reading!</h3><p>Thank you so much for reading and if you enjoyed this article make sure to hit that 👏👏 button. It means a lot to us! Also<strong> don’t forget to follow </strong><a href="https://coletiv.com/"><strong>Coletiv</strong></a><strong> on </strong><a href="https://medium.com/coletiv-stories"><strong>Medium</strong></a><strong>, </strong><a href="https://twitter.com/coletivstudio"><strong>Twitter</strong></a><strong>, and </strong><a href="https://www.linkedin.com/company/coletiv/"><strong>LinkedIn</strong></a> as we keep posting more and more interesting articles on multiple technologies.</p><p>In case you don’t know, Coletiv is a software development studio from Porto specialized in Elixir, iOS, and Android app development. But we do all kinds of stuff. We take care of UX/UI design, web development, and even security for you.</p><p>So,<a href="https://coletiv.com/contact"><strong> let’s craft something together?</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecb39abc5c3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>