<?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 Mateo Fain on Medium]]></title>
        <description><![CDATA[Stories by Mateo Fain on Medium]]></description>
        <link>https://medium.com/@mateofainalonso?source=rss-e8e4dac1901d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*spnrbQy3lgi-hsMj9l3bOA.jpeg</url>
            <title>Stories by Mateo Fain on Medium</title>
            <link>https://medium.com/@mateofainalonso?source=rss-e8e4dac1901d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 19:33:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mateofainalonso/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[Creating My First React App]]></title>
            <link>https://javascript.plainenglish.io/creating-my-first-react-app-400d2ababc1d?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/400d2ababc1d</guid>
            <category><![CDATA[tailwind]]></category>
            <category><![CDATA[frontend-mentor]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[nextjs]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Thu, 24 Nov 2022 07:16:22 GMT</pubDate>
            <atom:updated>2022-11-24T07:16:22.542Z</atom:updated>
            <content:encoded><![CDATA[<h4>The step-to-step making of my first React-app using create-react-app for a project.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqeJOHAVfW8MUydYkD7FzA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@gamell?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Joan Gamell</a> on <a href="https://unsplash.com/s/photos/React-APp?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Hello everyone! After mastering the basics from HTML, CSS and JavaScript and also getting a grasp about CSS frameworks, I though it was time to move and learn my first JavasScript framework, and here is how I did it!</p><h4>Step 1 — Installing NPM and NPX</h4><p>If you wanna create your app using the command create-react app then you are going to need NPM (<strong>N</strong>ode<strong> P</strong>ackage <strong>M</strong>anager) which you get by default by installing the JS library Node (which provides tools for backend JavaScript, allowing you to also run JS files with no browser), you can download Node from (<a href="https://nodejs.org/en/">https://nodejs.org/en/</a>). NPM enables developers to easily install packages locally and globally while NPX is a CLI tool to make the former easier. NPX comes by default starting from NPM 5.2.0. To check if it’s installed run:</p><pre>$ which npx</pre><p>And if it isn’t run</p><pre>$ npm install -g npx</pre><h4>Step 2— Using create-react-app</h4><p>To get started, type:</p><pre>$ npx create-react-app</pre><p>This command allows you to directly create all the necessary code and files for a React App to work instead of having you to create them manually, saving lots of times of code and permiting you to focus only on code.</p><p>The folder structure is the following</p><p>my-app/<br> README.md<br> node_modules/<br> package.json<br> public/<br> index.html<br> favicon.ico<br> src/<br> App.css<br> App.js<br> App.test.js<br> index.css<br> index.js<br> logo.svg</p><h4>Step 3 — Setting basic files and fonts</h4><p>Some of the basic files you want to set are index.html (add here ONLY your &lt;link&gt;s to fonts and other frameworks like Bootstrap) as the scripts will add automatically when running the App. If you want you can set a reset.css file to work more quickly with CSS later on. You should also set the favicon if you like to. There also are some other files like manifest.json and logo.svg (making an article about them soon, stay alert!)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mmifZ9PFi5inC-KCLtK4g.png" /><figcaption>My fold structure</figcaption></figure><h4>Step 4 — Creating and Styling Components</h4><p>Now I suggest you to start creating your components whether using classes or functions. You can also import the CSS so your components already render with the styles you set. I recommend creating a Components folder inside the src/ one. Each component should have its own separated JS and CSS file. You can also add global styles in App.css.</p><h4>Step 5— Implementing Functionality</h4><p>Now it’s time to start coding! In my case my app required me to fetch data from the REST Countries API and display it in different country boxes. It also required me to filter through them and making a Search bar and a light/dark mode toggle. Here is my code for the &lt;Countries /&gt; component.</p><pre>import React from &quot;react&quot;;<br>import &quot;./Countries.css&quot;;<br><br>export default class Countries extends React.Component {<br>  constructor(props) {<br>    super(props);<br>    this.state = { countries: [] };<br>  }<br><br>  async getDefaultCountries() {<br>    let array = [];<br>    let countries = await fetch(&quot;https://restcountries.com/v3.1/all&quot;).then(<br>      (response) =&gt; response.json()<br>    );<br>    for (let i = 0; i &lt; 8; i++) {<br>      let index = Math.floor(Math.random() * 99);<br>      array.push(countries[index]);<br>    }<br>    return array;<br>  }<br>  render() {<br>    return (<br>      &lt;article&gt;<br>        {this.state.countries.map((country) =&gt; {<br>          return (<br>            &lt;section&gt;<br>              &lt;img src={country.flags.png} alt=&quot; &quot; /&gt;<br>              &lt;h2&gt;{country.name.common}&lt;/h2&gt;<br>              &lt;strong&gt;Population: &lt;/strong&gt; {country.population}<br>              &lt;strong&gt;Region: &lt;/strong&gt; {country.region}<br>              &lt;strong&gt;Capital: &lt;/strong&gt; {}<br>            &lt;/section&gt;<br>          );<br>        })}<br>        hola<br>      &lt;/article&gt;<br>    );<br>  }<br><br>  async componentDidMount() {<br>    this.setState({ countries: await this.getDefaultCountries() });<br>  }<br>}</pre><p><strong>Note: </strong>Remember to render and import the components in App.js so that they display in the actual App, I usually utilize export default for this.</p><h4>Step 6 — Making the build version and publishing it</h4><p>After you finished writing the code it’s time to make the build version. You can run your unoptimized version of the app just by going to its folder and typing:</p><pre>$ npm start</pre><p>If you want to create the final build (the one you are going to publish), run:</p><pre>$ npm run build</pre><p>After this you may use whatever you like for React App publishing, some examples are Netlify and Surge. You can see my App on <a href="https://github.com/Chabulsqu/country-finder">https://github.com/Chabulsqu/country-finder</a> (WIP).</p><p><strong>And that’s it for today’s article, I hope you have enjoyed as much as I enjoyed writing it 😃.</strong></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><em>, </em><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><em>, and </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><em>. Interested in Growth Hacking? Check out </em><a href="https://circuit.ooo/"><strong><em>Circuit</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=400d2ababc1d" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/creating-my-first-react-app-400d2ababc1d">Creating My First React App</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Get Hired with These 7 Projects]]></title>
            <link>https://medium.com/@mateofainalonso/get-hired-with-these-7-projects-cf97c623ae93?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf97c623ae93</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[high-income]]></category>
            <category><![CDATA[front-end-developer]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 11:01:39 GMT</pubDate>
            <atom:updated>2022-10-19T11:01:39.423Z</atom:updated>
            <content:encoded><![CDATA[<h4>Do you want to practice your skills as a Front-end Dev but don’t know where to start?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_TF41GE3B9jE_O9qKeqzdw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@cgower?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christopher Gower</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Web development and in general, programming is a field that requires a lot of practice, maybe you are looking to build your first portfolio or land a job.</p><p>In either cases you will need projects to showcase and if you started learning on your own (like I once did) then it’s going to be hard to find opportunities to practice, in this article you’ll find some of them.</p><p>I classified them on two different levels (beginners and advanced). All the designs are made by me except when noted.</p><h3>Beginners</h3><p>You can make this simple web apps just by using HTML and CSS.</p><h4>Landing Page</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*pMRHTfjiSam4UK__BsXzdw.png" /></figure><p>Build a landing page for something. It could be a business, an influencer or an e-commerce shop. Th page should have a call-to-action and basic information about the website’s brand displayed on it.</p><h4>Restaurant Page</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*8X1U4dj9gXHscnNTcRmbqA.jpeg" /><figcaption><a href="https://dribbble.com/madhumia">Madhu Mia</a> for <a href="https://dribbble.com/UpNow_Studio">Upnow Studio</a></figcaption></figure><p>Code a Restaurant page, some of the content you could include are menus, promotions and even a kitchen tour. You could make this a single page web or split into several pages for each option — It’s up to you!</p><h4>Help Page</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QSE22mpwrn9SxD8zWEH2jw.jpeg" /><figcaption><a href="https://dribbble.com/jordanhughes">Jordan Hughes®</a></figcaption></figure><p>Make a help page for a business or software with a search bar and several topics included in, you could even code a chatbot for customer service if you feel confident with it.</p><h3>Advanced</h3><p>This projects can be completed with advance knowledge on HTML, CSS and a Javascript framework (or pure javascript if you prefer).</p><h4>Kanban board</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*676wSvhn5odRIqOth6wqRQ.jpeg" /><figcaption><a href="https://dribbble.com/ilnicki">Patryk Ilnicki</a></figcaption></figure><p>Design a board similar to Trello’s one where users can drag and drop, remove, add, edit and update cards. You can also allow users to create tags for each card, You choose!</p><h4>JavaScript Library Clone</h4><p>Especially useful if you aim to sharpen your skills with JavaScript, trying to code some of the methods of libraries like Lodash can be a good hook for recruiters.</p><h4>Calculator</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*5ikT8OjiKXqm6COBjIpPMw.png" /></figure><p>Make a Web Calculator, it could go from a simple one to a very complex scientific one, remember to make it responsive so users from every device can use it.</p><h4>Streaming platform</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IGGfsaudY3dWwAJ8D8xysw.jpeg" /><figcaption><a href="https://dribbble.com/maneel">Emmanuel Edokpa</a> for <a href="https://dribbble.com/Piqodesign">Piqo Design</a></figcaption></figure><p>Using an API like TMDB (The Movie DataBase) to fetch data from famous movies, you could emulate a famous streaming platform like Netflix or Amazon Prime. This could also mean a good time to show your CSS skills making focus states and animations.</p><h4>Some other ideas</h4><ul><li>You could also try to replicate a famous social media app or website like Reddit, Twitter or Instagram, it can give recruiters a nice sight of what you are able to do.</li><li>Never forget to have a well organized and complete Github profile with several projects and regular activity, it is a perfect way to show them your experience and collaboration skills.</li></ul><p><strong>And that’s it for today’s article, I hope you have enjoyed this article as much as I enjoyed writing it. Have a great day! 😃</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf97c623ae93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Am Way More Productive]]></title>
            <link>https://medium.com/@mateofainalonso/6-killer-tools-for-productivity-as-a-student-8d874da369a1?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d874da369a1</guid>
            <category><![CDATA[passive-income]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[students]]></category>
            <category><![CDATA[productivity]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Mon, 26 Sep 2022 14:02:30 GMT</pubDate>
            <atom:updated>2022-10-17T21:32:52.248Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Some of the tools I use as a student and programmer (does not include Notion)</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y8qSPaGs4PdLwNg11yiRfg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@carlheyerdahl?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Carl Heyerdahl</a> on <a href="https://unsplash.com/s/photos/productivity?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Everyone seems so obsessed to be productive these days and it makes sense. Not wasting your time when you have job to do is very important, and if you are a student, these tools will make your life easier like they made mine.</p><h4><a href="https://resoomer.com/en/">#1 Resoomer</a></h4><p>Resoomer is a good web for students, journalists, editors and professors who want to quickly summarize long texts or extract main ideas. It allows you to enter argumentative texts and works in more than languages, including English, German, Portuguese and Spanish. It also has some other services like an extension for Firefox and Google Chrome.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*buT6G-d-Wtel8ykHjTZS-g.png" /></figure><h4><a href="https://www.paraphraser.io/">#2 Paraphraser.io</a></h4><p>Paraphraser.io is a useful tool if you are looking to rewrite some text (In my experience, I used it to sell homework to my classmates without getting caught). It’s paraphraser offers 2 free options (fluency and standard) and 2 paid ones (creative and smarter); it also offers other tools like a text summarizer, a grammar checker, a plagiarism checker, an article rewriter and a paid API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m5sMtkqGxAMUGkN9kT3Y5g.png" /></figure><h4><a href="https://www.studypool.com/">#3 Studypool</a></h4><p>Studypool allows you to earn passive income by selling your notes and also become a tutor (or ask questions). It’s a nice web if you are looking to make some extra money or need to get some answers fast. Studypool offers a notebank (10$ for each note) for different subjects including Computer Science, Math, Programming and Literature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfqKxvS32xnz5O2wGDfqMQ.png" /></figure><h4><a href="https://hemingwayapp.com/">#4 Hemingway Editor</a></h4><p>A grammar corrector app that helps you write more simple and clearer sentences, specially useful if you are looking to make a complex text easier. It offers different text highlight colors for different types of problems and displays a readability scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y_gkLKxNrVcafIfaZ4rL9w.png" /></figure><h4><a href="https://getcoldturkey.com/">#5 Cold Turkey Blocker</a></h4><p>If you are working/studying on a computer, keeping focus is very hard, specially with tons of distractions available just with a click. That’s why I use Cold Turkey. It has a free plan and a one time subscription. Some of its free features include blocking websites, locking a block with a set time or password, statistics for the blocked websites and a “Frozen Turkey” option which blocks your entire computer</p><h4><a href="https://cloudconvert.com/image-converter">#6 CloudConvert</a></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7T8_bJcVgWi78NDQfVrHqg.png" /></figure><p>This site allows you to convert files to several extensiones and includes support for more than 200+ file formats, including jpg, ico, png, psd and webp. It also offers a paid API for custom integrations which itself has a full Amazon S3 integration.</p><p><strong>And here it is for today’s article, I hope you’ve enjoyed it!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d874da369a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript: Classes and Objects]]></title>
            <link>https://javascript.plainenglish.io/learn-to-use-classes-and-objects-in-js-be97505ed4f3?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/be97505ed4f3</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Mon, 12 Sep 2022 13:02:34 GMT</pubDate>
            <atom:updated>2022-09-16T16:01:29.878Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn how to implement two of the most popular object-oriented features of JavaScript.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jcURqHFH51kshmdc" /><figcaption>Photo by <a href="https://unsplash.com/@oskaryil?utm_source=medium&amp;utm_medium=referral">Oskar Yildiz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>What are Objects?</h4><p>Objects in JavaScript resemble the objects of our world, they have properties (keys) that can hold different values: from numbers to arrays and even other objects. Objects are declared with curly brackets {} and to give a value to a property the colons are used along with a comma to separate the properties. The const-declared variables&#39; behavior is the same as with arrays, their properties can be changed, but they cannot be reassigned to another object or data type. To access the properties of an object, either a period (.) along with its key or parentheses [“key”] are used.</p><figure><img alt="let object = { // Usually we use an underscore for properties that we don’t want to be directly accesed _colour: ‘red’, _weight: 50, get colour() { console.log(this._colour); }, get weight() { console.log(this._weight); // The keyword this allows you to acces the internal methods and properties of an object }, }; console.log(objeto.colour); // ‘red’ const object2 { // Object nested inside another object name: ‘John’ height: 6, car: { brand: ‘Peugeot’, }, }; object2 = false // E" src="https://cdn-images-1.medium.com/max/1024/1*4PwQabN8jNf6rMCsyEjQuQ.png" /></figure><p>Some other keywords used by objects are delete to delete a property; get to create functions that get the values of an object and that do not require parameters and set to create functions that modify the values of an object, this is done to prevent key values from being accidentally modified, these are usually indicated by a hyphen under (_) before the name.</p><p>If a non-existent or deleted property is accessed, the value will be undefined until it holds a value.</p><h4>Factory Functions</h4><p>One way of creating multiple objects that share similar features without repeating code is factory functions. They can take (or not) parameters and they always return an object with their properties and methods directly set. They use Capitalized CamelCase for naming. To create a new instance of an object we use the new keyword along with the call to the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-l9mUcBpkyIYrlTAmzoccw.png" /></figure><h4>Classes and Inheritance</h4><p>As with factory functions, classes can be used to create multiple instances of the same type of object. They are commonly named using CamelCase (capitalized) and to create a new instance you just need to call the class with the New keyword and parameters. The properties of class objects are set using a method called constructor() that can take parameters to be set as properties with the help of the this keyword. Object methods support getters and setters and are written without being separated by commas, following constructor(). If we want an exclusive method of the class (not used by instances), we use the static keyword.</p><p>One of the most important advantages of classes, if we use the keyword extends + the name of our parent class, the new class will inherit all its methods (except the static ones), to call the constructor() function of the parent class we use super() and the parameters, if any.</p><p>Let’s refactor our old code with classes and implement inheritance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0xN6kqDAVxv5r5vEBFzoyA.png" /></figure><h4>How to use Modules</h4><p>As many people have already noted, classes in Javascript and other programming languages often result in lots of problems, especially with legibility and boilerplate code. One fix to this is by splitting our classes into modules, as we’ll see below.</p><p>Based on the principle of separation of concerns, JavaScript allows us to import code as functions from other files to be able to use it in our own, this allows us to, among other things:</p><ul><li>Easier debugging by having more readable and organized code.</li><li>Avoid namespace contamination.</li><li>Write code faster.</li></ul><p>Let’s take a look at a code example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lj5M-EsCmDjvyZNT0dLa3g.png" /></figure><p><strong>And there we have it. I hope you have found this useful. Thank you for reading 😄</strong></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><strong><em>, </em></strong><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><strong><em>, and</em></strong><em> </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong><em> Interested in Growth Hacking? Check out </em><a href="https://circuit.ooo/"><strong><em>Circuit</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be97505ed4f3" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/learn-to-use-classes-and-objects-in-js-be97505ed4f3">JavaScript: Classes and Objects</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Don’t Use CSS]]></title>
            <link>https://medium.com/@mateofainalonso/how-to-deal-with-css-using-bootstrap-dc5b7377bb21?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc5b7377bb21</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[bootstrap]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Wed, 31 Aug 2022 22:03:29 GMT</pubDate>
            <atom:updated>2022-10-17T21:30:58.859Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone! If you began coding in CSS and made any big projects with it like me then you sure have feel uncountable headaches because of responsive layouts, overflow and selector specificity. This is why some weeks ago I decided to learn Bootstrap, and here is a short description of its documentation and top features so you can, too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6_BafqlCSnN2VdcvvQc8aQ.jpeg" /></figure><h3>Bootstrap</h3><p>Bootstrap is a framework used for front-end development and based on Saas classes. It allows to create modern and responsive websites that use grids and flexbox by directly manipulating the html, without resorting to CSS. Components and so on can be modified from the Saas files themselves that are found once downloaded with a package manager like npm (although it can also be included with some &lt;link&gt; and &lt;script&gt; tags). Its latest version is Bootstrap 5 and on its page, in addition to the documentation, we can find an [icon library](<a href="https://icons.getbootstrap.com/">https://icons.getbootstrap.com/</a>).</p><h4>Layout</h4><p>Bootstrap uses a 12-column system and breakpoints can be used for responsive design and thus modify the size of the elements and the space they occupy, for this we must append -breakpoint to the size we want, the breakpoints are:</p><ul><li>xs (extra small, default breakpoint): Extra small, for screens under 576px.</li><li>sm (small): Screens 576px up to 767px.</li><li>md (medium): Screen 768px up to 991px.</li><li>lg (large): Screens 992px up to 1199px.</li><li>xl (extra-large): Screens 1200px up to 1399px.</li><li>xxl(extra-extra-large): Screens 1400px and bigger.</li></ul><p>To use grids we need to have a container class element: there are 3 container classes (normal, designated to occupy x percent of space before the breakpoint and fluid, which always occupy 100% of the space). To manipulate the grid system, a system similar to that used to create tables in HTML, where the columns (col class) go inside the rows (row class) which in turn go inside the container. To specify the size of the columns we add a -number or -auto so that they occupy the size of their content.</p><p>Bootstrap also adds spaces between columns and rows, to prevent or modify them (by default they are 1.5rem) we can use g- (all), gx- (horizontals) and gy- (verticals). Bootstrap also has a z-index prefix for all elements that prevents them from overlapping.</p><h4>Components</h4><p>Bootstrap adds default styles to components that we would normally have to go to the trouble of designing and programming using CSS and even Javascript. Some of the accessible components are:</p><ul><li>Accordion: Allows the user to expand and retract the content just like an accordion (requires including scripts). Live example of some components (code below).<br>- Alert: Easily used with .alert- followed by its proper context (success, danger, warning, dark, light, info, primary, secondary).<br>- Badge: Used as badges attached to another component usually, accompanied by bg-{color} and text-{color}.<br>- Breadcrumb: Allows you to create a menu of that style based on an ordered list and its items.<br>- Button: Allows you to add buttons of different colors and styles and with various states available.<br>- Card: Cards are flexible, responsive and extensible components, as well as being able to use images.<br>- Carousel: Allows you to switch between several images automatically or by user action.<br>- Dropdowns: They allow to show links and more options depending on the context in which they are used.<br>- Lists Group: Can be used to display lists of items with .list-group, .list-group-item, .list-group-numbered, .list-group-flush and .active.<br>- Modal: Allows you to create a small pop-up style message with a title and interaction buttons.<br>- Navbar: It has several classes starting with .nav and .navbar to easily create a responsive navigation bar.<br>- Offcanvas: Allows you to insert sidebars that can be disabled with Javascript in different places on the page.<br>- Placeholder: We can add the .placeholder class to other components to add a loading screen.<br>- Popover: iOS-like popovers can be created with a button and the data-bs-container=”body” data-bs-toggle=”popover” data-bs-placement=”top” data-bs attributes -content=”Top popover”.<br>- Progress: Allows you to add progress bars to the page with the help of the `.progress` and .`progress-bar` classes.<br>- Spinner: Several spinners can be used both for loading screens and for other purposes, some of the spinners can be modified in their color thanks to its utilities and others are simply done with the .spinner-* classes.<br>- Toasts: They create push notifications with a highly modifiable shape based on a toast.</li></ul><h4>Helpers</h4><p>Bootstrap also offers several helpers that can make your life easier by fixing common errors. Some of these are: .clearfix (fix floats being added to the parent element); .text-*, .bg-* (allows you to easily add text and background colors); .link- (allows you to do the same as above but with links); .fixed-*, .sticky-*, .static, .relative-*, .absolute-* (allows you to manipulate the css position attribute to move according to the specified direction and number); .ratio (allows you to manipulate the aspect ratio of media files like &lt;video&gt;, &lt;iframe&gt; and &lt;embed&gt;); .vstack and .hstack to change the verticality or horizontality of the alignment; .stretched-link (allows stretching links to occupy objects like cards and make them clickable); .text-truncate separates long text with three periods (…); .vr (allows you to create visual separators like &lt;hr&gt;, but vertical) and .visually-hidden (hides the content on the user’s screen but not from screen readers and other assistive technologies).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc5b7377bb21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Front-End Portfolio]]></title>
            <link>https://javascript.plainenglish.io/my-first-front-end-portfolio-6de9b3db1203?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6de9b3db1203</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[portfolio]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Sat, 20 Aug 2022 15:35:41 GMT</pubDate>
            <atom:updated>2022-10-17T07:44:11.987Z</atom:updated>
            <content:encoded><![CDATA[<h4>A fresher’s take on building your first Portfolio as a front-end developer.</h4><p>Hello everyone, I began taking courses on Front-end development a couple of months ago and I finally decided to make my first personal portfolio website, it took me an entire month working around 1/2 hours a day. You can see its <a href="https://chabulsqu.github.io/portfolio_project/index.html">live site</a> or the <a href="https://github.com/Chabulsqu/portfolio_project">project repository</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HMht8EvylCRdvQBWTaxXyA.png" /><figcaption>My portfolio, on desktop view</figcaption></figure><h4>Step 1: Wireframe my website</h4><p>I made the first wireframes of my main and projects page in paper and in a pretty basic way, but they guided me and help me remember the design while coding.</p><h4>Step 2: Write the basic HTML</h4><p>I did this for both pages, and added classes I thought I would need later on during the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4ZZxULJhicm5H8t9QkJ7vw.png" /></figure><h4>Step 3: Add basic styling for your Portfolio</h4><p>I recommend doing this on a separate stylesheet instead of the one you are using for each page (styles.css) so you don’t have to split the code when you go further in the project like I had. I also recommend to use a reset file like reset.css for managing styles easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JxUqbzoH93-4MZ6yLVVQfA.png" /></figure><p>Speaking about the general design and color pallete, I wanted the page to have a modern and soft look, so, using the Adobe Color contrast checker and inspired by Twitter design I picked the main background, accent and text colours for both Dark and light Mode, I also tried to use soft shadows to give it a deeper look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*aHrNqnJFU4Yb7EdEc9QKUA.png" /></figure><h4>Step 4: Make each site responsive</h4><p>If you can, try to use as much relative measurements as you can so you need to write less code. I worked on 5 device size ranges: phones (320 to 480px); tablets (481 to 768px); laptops (769px to 1024px); desktop (1025px to 1440px) and large screens (1440px+). If you see your stylesheet getting really big at this point (500+ lines) try to split it into more, believe me, it will be easier to edit later in the future.</p><h4>Step 5: Adding Javascript for interactivity</h4><p>In this case I decided to use JS to make a light / dark mode switch (with help of CSS classes and custom properties), an hamburguer menu (only mobile devices) and 2 dropodowns featuring the technologies I used for the project and my contact information. I also learned to use local storage so I could save the user preferred mode and use it the next time he/she visits the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*90fBAIej8AMUl-TIVRBqww.png" /></figure><h4>Step 6: Start the second page</h4><p>I decided that my second page would feature all of my projects, with links to their code and their live versions, you could also make a third or fourth page if you like, but for me I decided that it was enough for a portfolio.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HwIzTg5uCVhigqGVjl2CFw.png" /><figcaption>My projects page, seen on Dark Mode</figcaption></figure><h4>Step 7: Final features and accessibility</h4><p>After days of headaches thanks to Media Queries and, after converting a video into a gif so I can directly use it on my site hero with the background-image property; I finally completed the page. At this point I recommend you to use some accessibility testing tool like Axe devtools to ensure that your website is accessible. If you haven’t done so yet, start a Github repository for your project and enable Github pages on it, make a decent Readme and publish it in any site you want.</p><p><strong>And that’s it for today’s article, I hope you have enjoyed it, Have a good day! 😄</strong></p><p><em>More content at </em><a href="https://plainenglish.io/"><strong><em>PlainEnglish.io</em></strong></a><em>. Sign up for our </em><a href="http://newsletter.plainenglish.io/"><strong><em>free weekly newsletter</em></strong></a><em>. Follow us on </em><a href="https://twitter.com/inPlainEngHQ"><strong><em>Twitter</em></strong></a>, <a href="https://www.linkedin.com/company/inplainenglish/"><strong><em>LinkedIn</em></strong></a><strong><em>, </em></strong><a href="https://www.youtube.com/channel/UCtipWUghju290NWcn8jhyAw"><strong><em>YouTube</em></strong></a><strong><em>, and</em></strong><em> </em><a href="https://discord.gg/GtDtUAvyhW"><strong><em>Discord</em></strong></a><strong><em>.</em></strong><em> Interested in Growth Hacking? Check out </em><a href="https://circuit.ooo/"><strong><em>Circuit</em></strong></a><strong><em>.</em></strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6de9b3db1203" width="1" height="1" alt=""><hr><p><a href="https://javascript.plainenglish.io/my-first-front-end-portfolio-6de9b3db1203">My First Front-End Portfolio</a> was originally published in <a href="https://javascript.plainenglish.io/">JavaScript in Plain English</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is A11y (And Why You Should Be Using It)]]></title>
            <link>https://medium.com/@mateofainalonso/a-brief-guide-to-a11y-cda330f70cd4?source=rss-e8e4dac1901d------2</link>
            <guid isPermaLink="false">https://medium.com/p/cda330f70cd4</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[a11y]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Mateo Fain]]></dc:creator>
            <pubDate>Sat, 02 Jul 2022 00:02:11 GMT</pubDate>
            <atom:updated>2022-09-19T23:59:35.528Z</atom:updated>
            <content:encoded><![CDATA[<p>Maybe you have heard about W3C or ARIA attributes, but what do they really mean?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*HsiZWGa-m2NT7C34TNyS0w.png" /></figure><p>Accessibility is defined as the process of designing products, devices and environments that people with disabilities of various kinds can use. In 1990 the United States Congress sanctioned the ADA (American Disabilities Act) and since then we can find both in public and private spaces tools for people deprived of their vision (braille) or in physical aspects (ramps for wheelchairs). The regulatory body for internet accessibility is the WCAG( <a href="https://www.w3.org/TR/WCAG21/">https://www.w3.org/TR/WCAG21/</a>), which is responsible for that websites have features such as subtitles on videos, images with alternate text, labels readable by screen readers, etc.</p><p><strong>Visual Accessibility Elements:</strong></p><ul><li>Contrast: The process of differentiating two elements to give them importance and readability for users with reduced vision or color blindness, can be done through colors, fonts and spacing.</li><li>Headings: The web is fast and therefore the content must be divided into several sections these headings have a relationship of h1 (unique on the page), h2 (section title) h3 (section subtitle) and so on.</li><li>Design for the colorblind: Use opposite colors on the color wheel where possible or else use multiple shades of the same color (it also helps colorblind people who only see in grayscale), color is a powerful contrast agent, but should never be the only one. Use text, icons, images (for example if a form is wrong, use red borders + a box that explicitly says so)</li></ul><h3>What is Aria?</h3><p>ARIA is short for Accessible Rich Internet Applications, it is a set of attributes to handle assistive technologies for people with disabilities that HTML alone cannot handle. The technical specification was called WAI-ARIA and was published by the W3C initially in 2008 and became a recommendation in 2014.</p><p><strong>Primary components of ARIA:</strong></p><ul><li>Roles: They are used to define the specific type of an interface element (role=”role_name”).</li><li>Abstract Roles: These are brief descriptions used by search engines to give meaning to roles and should not be changed.</li><li>Document Structure Roles: They provide descriptions for various parts of the page (toolbar, img, heading). While HTML 5 already handles this quite well, since screen reader support for it is still limited, it is recommended to use both types.</li><li>Landmark Roles: They are used to indicate the beginning and the end of a certain section of the document by screen readers (banner, form, search)</li><li>Widget Roles: They give a semantic meaning when HTML does not, they are divided into groups of Widgets or UI Widgets (grid, menu, tablist) and standalone Widgets or child Widgets (checkbox, link).</li></ul><p><strong>ARIA Rules:</strong></p><ol><li>Use native HTML unless it is absolutely or nearly impossible to do so.</li><li>Don’t change semantic elements in HTML unless absolutely necessary.</li><li>All ARIA controls must be keyboard accessible, they can be added to tab navigation using (tabindex=”0&quot;).</li><li>For all focusable elements, never use (aria-hidden=”true” or role=”presentation”) as this can cause user confusion when focusing on an empty element.</li><li>Give all interactive elements an accessible label, either with (Search) or (&lt;input type=” text” aria-label=”” / aria-labelledBy=””) not to show it to users who don’t use screen readers.</li></ol><p><strong>Alt attribute rules:</strong></p><ul><li>If the image is already described below, add an empty attribute.</li><li>If the image is a link, also add the page it leads to.</li><li>Alt should not be longer than 150 characters</li><li>The alt should clearly and concisely describe the image.</li><li>Images used as decoration (such as a decorative border) should have an alt attribute, even if it is empty.</li></ul><p>The Alt attribute differs from aria-label because the former will also be displayed if the element’s source is not found or on slow connections, while the latter is for screen readers only, however, it is preferable to use alt on elements where they can be used.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cda330f70cd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>