<?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 Cynthia Costa on Medium]]></title>
        <description><![CDATA[Stories by Cynthia Costa on Medium]]></description>
        <link>https://medium.com/@cycosta?source=rss-585728f27ce4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oobmh_JL90RQiF83sK2ldw.jpeg</url>
            <title>Stories by Cynthia Costa on Medium</title>
            <link>https://medium.com/@cycosta?source=rss-585728f27ce4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:13:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cycosta/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[CSS Performance]]></title>
            <link>https://medium.com/@cycosta/css-performance-a374009e8c4e?source=rss-585728f27ce4------2</link>
            <guid isPermaLink="false">https://medium.com/p/a374009e8c4e</guid>
            <category><![CDATA[bem]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css-performance]]></category>
            <category><![CDATA[class]]></category>
            <dc:creator><![CDATA[Cynthia Costa]]></dc:creator>
            <pubDate>Thu, 28 Oct 2021 15:46:11 GMT</pubDate>
            <atom:updated>2021-10-28T15:46:11.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS Performance: using classes to improve performance and avoid scalability issues</h3><figure><img alt="A photo of colorful lego building blocks" src="https://cdn-images-1.medium.com/max/1024/1*29KzhfL8h85O-pllhs1zVA.jpeg" /><figcaption>Photography: <a href="https://unsplash.com/@xavi_cabrera">Xavi Cabrera</a></figcaption></figure><h3>Before digging in, let&#39;s understand how the browser renders a page</h3><ul><li>First, it sends a request to the server to fetch an HTML document (which is served in binary format and converted to a readable text file)</li><li>Then it transforms the HTML elements (html, body, div) into nodes and objects and ultimately creates a tree-like structure called <strong>DOM</strong> (Document Object Model)</li><li>After building the DOM, the browser reads all styles from all sources (external, inline, etc) and builds the <strong>CSSOM</strong> (CSS Object Model), which is a tree-like structure, just like the DOM</li><li>Each CSSOM node contains style attributes that will be applied to the DOM element it is intended for, following the path specified by the selector</li></ul><h3>The browser&#39;s reading process</h3><p>The reading system consists of finding the element <strong>on the far right of the selector</strong>. Therefore, the selector reading starts <strong>from right to left</strong>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FiOetNL0jVGKGknCfQY%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FiOetNL0jVGKGknCfQY%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FiOetNL0jVGKGknCfQY%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/57aa623adc6de044d14c8c474e8fee95/href">https://medium.com/media/57aa623adc6de044d14c8c474e8fee95/href</a></iframe><p>Let&#39;s check an example:</p><figure><img alt="A CSS selector containing an anchor element inside of a list item inside of a list element" src="https://cdn-images-1.medium.com/max/1024/1*yB5GxKfZI6X5gkeaGtyH0w.png" /></figure><p>In this case, the browser selects <strong>all</strong> anchor elements on the page, regardless of whether it is inside a list item or not, and only then does a filtering based on the rest of the selector. It&#39;s three steps being executed to achieve the final result. Do you see the unnecessary work and how costly it is for the browser?</p><figure><img alt="A CSS selector of a level 2 heading element inside an element with a card class" src="https://cdn-images-1.medium.com/max/1024/1*mvogKLCpZz7nRywZrcKzqQ.png" /></figure><p>Okay, now we are using a class, so problem solved, right? Not really. It&#39;s a better scenario but still not ideal. In this second case, the browser selects <strong>all </strong>level 2<strong> </strong>heading elements on the page, regardless of whether or not it is inside another element with the card class. It&#39;s still a two step process that could be reduced to just one.</p><p>So, the way you identify your elements along with how you apply your CSS will determine <strong>the time it will take the browser to read and render your page as expected</strong>. That&#39;s why it&#39;s important to make use of the best and fastest selectors.</p><h3>These are the fastest to slowest selectors:</h3><ol><li>ID, <strong>#header</strong></li><li>Class, <strong>.header</strong></li><li>Type, <strong>header</strong></li><li>Adjacent sibling, <strong>nav + header</strong></li><li>Child, <strong>header &gt; h1</strong></li><li>Descendant, <strong>header p</strong></li><li>Universal, <strong>*</strong></li><li>Attribute, <strong>[type=”text”]</strong></li><li>Pseudo-class / Pseudo-element, <strong>a:hover .header:before</strong></li></ol><h4>That doesn&#39;t mean you should start using ID to identify all your HTML elements. Easy, pal!</h4><p>The ID is an exclusive identifier which must be unique throughout the whole document. If you attach a style to an ID, you won’t be able to reuse it within the same page. So what&#39;s second best on our list, kids? That&#39;s right, <strong>classes</strong>!</p><h3>Why your context matters</h3><p>Before asking yourself whether you need to worry about CSS performance, you need to consider the context of your application.</p><p>If you’re working on a small project such as a resume or presentation portfolio, it’s unlikely that your CSS performance will become an issue.</p><p>But, if you are dealing with larger and more complex applications, <strong>high performance and scalability are essential</strong>, especially if it’s a project being constructed and maintained by more than one engineer, which it usually is.</p><h3>So what can we do to ensure better scalability and, consequently, better performance?</h3><ul><li>Reduce the complexity of selectors by using some class-oriented methodology such as <strong>BEM</strong> (we&#39;ll get there!)</li><li>Use consistent naming</li><li>Prevent style leaking out of the component</li><li>Avoid nesting greater than 3 levels (that&#39;s a prime rule!)</li></ul><h3>Who is this BEM dude?</h3><p><strong>Block. Element. Modifier.</strong></p><p><a href="https://en.bem.info/methodology/">BEM</a> is a methodology for class naming in CSS, which helps to create a sustainable and scalable code. It is a component-based approach to web development.</p><p>There&#39;s no dependency attached to it, you just have to read the docs (which are really good!), learn and start using.</p><p>These are the key elements to the methodology:</p><ul><li><strong>Block</strong>: logically independent component that can be reused, which must be described according to purpose and not state (eg .menu)</li><li><strong>Element</strong>: a component that is part of a block and cannot be used separately, and that must be described according to purpose and not state (eg .menu__item)</li><li><strong>Modifier</strong>: an entity that defines the appearance, state or behavior of a block or element, which must be described according to its appearance or state (eg .menu__item — active)</li></ul><h4>Good practices</h4><p>Blocks can be nested inside other blocks:</p><figure><img alt="A HTML code block of a navigation tag identified with a menu class inside a header tag identified with a header class" src="https://cdn-images-1.medium.com/max/1024/1*AdaRSHBXtJQE1PjULORIVA.png" /></figure><p>Do not replicate the HTML hierarchy in class names:</p><figure><img alt="An anchor tag identified with a &quot;menu__item__link&quot; class" src="https://cdn-images-1.medium.com/max/1024/1*QjZnxxDPK8oO7HJz-S_dBw.png" /></figure><p>In these cases, a good suggestion is to use compound names:</p><figure><img alt="An anchor tag identified with a &quot;menu__item-link&quot; class" src="https://cdn-images-1.medium.com/max/1024/1*FzbvfyJ8fzvkmS-29J2jkQ.png" /></figure><p>So, next time you find yourself wondering whether or not to use a class to identify your HTML element, remember that <strong>there is no reason not to</strong>.</p><h4>Classes are our friends!</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FfnQ3DS2bSrOdxNIXOC%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FfnQ3DS2bSrOdxNIXOC%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FfnQ3DS2bSrOdxNIXOC%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="235" frameborder="0" scrolling="no"><a href="https://medium.com/media/4daa2013a4e78ef38f673dd2cf00f4f8/href">https://medium.com/media/4daa2013a4e78ef38f673dd2cf00f4f8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a374009e8c4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The biggest issues with tech interviews and why companies should do better]]></title>
            <link>https://medium.com/@cycosta/the-biggest-issues-with-tech-interviews-and-why-companies-should-do-better-4eeb9f63e8dd?source=rss-585728f27ce4------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eeb9f63e8dd</guid>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[diversity-in-tech]]></category>
            <category><![CDATA[diversity]]></category>
            <category><![CDATA[hiring]]></category>
            <dc:creator><![CDATA[Cynthia Costa]]></dc:creator>
            <pubDate>Mon, 02 Aug 2021 15:07:44 GMT</pubDate>
            <atom:updated>2021-10-04T16:44:56.269Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A woman with her hands on her face showing signs of exhaustion" src="https://cdn-images-1.medium.com/max/1024/1*i8G2PFWRJquZ_TfM8ACeBg.jpeg" /><figcaption>Photography: <a href="https://unsplash.com/photos/BH8-YFSNEIw">Annie Spratt</a></figcaption></figure><p>I’m a former designer turned front-end developer and I’ve been dedicating myself entirely to web development since 2018. That means I’ve been dealing with the tech market ever since, and let me tell you something, <strong>our industry hiring process is broken.</strong></p><p>Back in 2018, when I got my first opportunity as a developer, I was lucky enough to bump into a company that was welcoming junior developers without demanding previous experience. That leads me to our first problem: the absurd number of prerequisites asked of junior developers nowadays. How is it possible for an entry level developer to have a minimum 2 year experience with React? Let me answer that, it simply isn’t. If your company wants to hire junior developers (and they should), they must be willing to guide and teach them through this path. Junior developers are eager to learn and contribute when given the chance to do so.</p><p>My first hiring process consisted of three parts:</p><ul><li>An online interview with two managers, focused mostly on my previous experience as a designer, my career path and my skills, both technical and soft;</li><li>A take home assignment where I should develop from scratch a layout they sent me and then send it to Github for the tech team to review;</li><li>A final on location interview for me to present my assignment to the team, explaining the project and choices of technology</li></ul><p>A simple, straight forward and, most important, <strong>HUMAN</strong> process.</p><p>A few days later, on my birthday, I got a call from one of the managers offering me the job that changed my professional life.</p><p>At the end of the year 2020 I decided it was time for a change, which led me to begin the search for my next challenge. And this is the cue to our second problem, which is precisely <strong>the hiring method</strong> I’ve began to notice and experience since then. Long, heavy and far from empathetic processes that drain our energy, makes us question our abilities and is extremely damaging to mental health.</p><p>One of the companies I applied to demanded a 4 hour interview (among other stages) with people from different areas of the business, who frequently asked identical questions, making me repeat myself to a level of exhaustion. Another one sent me an assignment to deliver in a week using React. At the time I had zero experience with the library, but still I immersed myself in learning the technology and I delivered a beautifully coded project that makes me proud till this day. What I got in return? A final interview with a person with no tech experience, who asked rehearsed questions with no additional explanation and who gave me no technical feedback whatsoever on my assignment. It was a real bummer.</p><p>A friend, who was looking for her second tech job at the time, took part in a process that required applicants to engage in a full workday at the company, not taking into account that most candidates are still employed while applying. The workday consisted of team ceremonies, a pair programming task with someone from the team, a conversation with the project manager and finally a talk with someone from RH. You had to be available to them for a whole day, which is impossible for most applicants.</p><p>Beyond all these issues, there is a specific one that hunts me till the present day: <strong>the live coding interview</strong>.</p><p>As a person who struggles with <a href="https://adaa.org/understanding-anxiety/generalized-anxiety-disorder-gad">generalized anxiety disorder</a>, I found myself at a crossroad many times, having to chose between participating in a live coding interview, even knowing that I would perform poorly and that it would affect me personally, or refusing to participate at all, closing the door to that opportunity. I believe anyone who suffers from anxiety or any kind of mental disorder can relate to this.</p><p>Luckily for me, back then, I found myself in a comfortable position to refuse and respect my personal boundaries. And I eventually got the perfect job without having to sacrifice myself in the process. But unfortunately that’s not always the case, not for me or anyone else.</p><p>When given the chance, I often give feedback to recruiters to try to raise awareness to this matter. It’s well received and people are often open to the conversation, but not always. A recruiter once told me that she agreed with my perspective and she brought the matter up internally, but the company wasn&#39;t willing to change.</p><p>There is <a href="https://www.sciencedaily.com/releases/2020/07/200714101228.htm">a study from the North Carolina State University along with Microsoft</a>, that finds that the technical interviews currently used (<em>live coding, whiteboarding</em>) test <strong>whether a candidate has performance anxiety rather than whether the candidate is competent at coding</strong> and a right fit for the job.</p><p>It’s also noticed that the current format excludes entire classes of candidates, like women. One of the researches responsible for the study showed that all of the women who took the public interview failed, while all of the women who took the private interview passed. And in our present scenario, where companies are striving to appear more inclusive, that should be a point of concern. When we talk about diversity and inclusion, <strong>it’s not as simple as listing a job targeting minorities</strong>. It has to go beyond the public eye. Companies need to make sure the hiring process is also inclusive and that their space is safe to welcome everyone.</p><p>As a developer who is constantly striving to evolve, I wonder if I should adapt to fit the market, pushing my personal boundaries in favor of my career, even though I know it would be wrong.</p><p>We shouldn’t be forced to choose between our careers and our mental health. <strong>Change should come from within the industry.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eeb9f63e8dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>