<?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 John Chacpi on Medium]]></title>
        <description><![CDATA[Stories by John Chacpi on Medium]]></description>
        <link>https://medium.com/@johnchacpi479?source=rss-dc1ec7ef83a9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MhMoPGd7yPs02atJyS2F2w.png</url>
            <title>Stories by John Chacpi on Medium</title>
            <link>https://medium.com/@johnchacpi479?source=rss-dc1ec7ef83a9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 23:55:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@johnchacpi479/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[Me and Webpack, JS projects and time management… or the lack of it]]></title>
            <link>https://medium.com/@johnchacpi479/me-and-webpack-js-projects-and-time-management-or-the-lack-of-it-fbccdc30bc54?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbccdc30bc54</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Thu, 01 Dec 2022 03:34:34 GMT</pubDate>
            <atom:updated>2022-12-01T03:35:45.038Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kzXjYrsx_RwYCYWrJDtECQ.png" /><figcaption>Since I’m not sure what image would fit the topics of this post, I’ll leave my GitHub profile.</figcaption></figure><p>Greetings there. It’s been a while since the last time I wrote something on this blog. Being honest, I didn’t know exactly what to write about, since I feel that I have made very little progress in my Front End learning in the last few weeks, either due to poor time management or a not so favorable state of mind. It should be noted that I tried to study or do something every day, but it is necessary to recognize that the progress was not as I expected. So I decided to include it all in this blog entry, which I haven’t been able to update simply because of excuses, well, terrible time management.</p><p>Since the last entry in this blog I have made progress with a relatively old project: the Platzi Store. I added functionalities that were not planned in the Platzi JavaScript Practical Course, such as adding products to the current order using two buttons (a small button in the section of each product and a large one in the product details panel)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*9wQ59RywUCWEBi3nuk1wrg.png" /><figcaption>you can add products to the cart with the green small button</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9TdpsY9Xw3j_PRx7YDL5A.png" /><figcaption>and with the add to cart button in the product detail panel</figcaption></figure><p>accessing the panel of all user orders (it needs a few improvements in the logic to make it more dynamic),</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*7BUMTCzPdBRm3wnNpfeCiA.png" /></figure><p>a button to load more products than are available on the main screen,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*vdYDhbpXke16HMwT86ln0Q.png" /></figure><p>make the products appear in the cart panel and sum their prices and update the small green circle with the current number of items in the cart:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*nnzYMee9Pie22NVejq_rrA.png" /></figure><p>There are more features that I plan to add, such as filtering products by category using the buttons on the navigation bar, doing checkout, placing multiple orders and displaying them in the “my orders” panel. The truth is that I have not fully resolved how to add them, that is, I have not fully developed the logic behind each of these functionalities. The complete project is in the following repository on GitHub:</p><p><a href="https://github.com/ionuser13/Store-App">GitHub - ionuser13/Store-App: This project&#39;s goal is to build a shopping web add.</a></p><p>In this time I also took courses at Platzi, such as the DOM Manipulation course, the REST API Consumption Course with JS course, the NPM course, and the Webpack course. In a sense, they were new experiences. In the DOM Manipulation course I learned how to handle JS in the DOM more efficiently, as well as an introduction to Snowpack to work with templates, Tailwind and other resources and not have to start from scratch with the setup of the files. In the course we do two small projects: one about avocados and another about foxes. They are simple projects: calls to the APIs and based on the data received, build a simple website. It remained for us to build the interface of the sites. So I took the opportunity to learn Tailwind CSS. And it is that my original plan was to carry out separate projects for each technology, such as React, Tailwind, Vue, among other technologies that are not necessarily so related (that is, not necessarily based on the same language). So that was what I did.</p><p>In a project we work with what is known as lazy loading, a technique that consists of loading the resources brought from an API or database only when they are inside the viewport. It is mostly used in images and video, but it is not limited to it. Here are the projects:</p><p><a href="https://github.com/ionuser13/workshop-1">GitHub - ionuser13/workshop-1</a></p><p>Here the lazy loading project</p><p><a href="https://github.com/ionuser13/workshop-2-lazy">GitHub - ionuser13/workshop-2-lazy</a></p><p>I recognize that the projects are not entirely presentable, especially in the README part.</p><p>In the REST API Consumption with JS course, I reinforced what I had previously learned about everything related to API queries with a project that connects to the Cat API and returns random images of cats. You can upload more images, add an image to favorites via POST method, remove an image from favorites via DELETE method, query parameters, api keys and more. Being focused on the functionalities related to the API to be implemented, the UI design was left aside. That is, each one does what seems best in this area. To be honest, I haven’t built that UI yet. Similar to the projects in the DOM course, I decided to use Bootstrap for the design, and have a concise project. I think this is where the time management problem started. But I’ll get to that later. Here’s what’s up with the project:</p><p><a href="https://github.com/ionuser13/Cat-">GitHub - ionuser13/Cat-: SImple page connected to a Cat API</a></p><p>I did the NPM Course too. Here the basics of NPM were introduced, how to use it using the console, how to install packages, uninstall them and even how to create a dependency and post it. I created a random strings app, which displays random phrases on the console. Here it is:</p><p><a href="https://github.com/ionuser13/rndm-string">GitHub - ionuser13/rndm-string: Random String Messages</a></p><p>Finally, I took the Webpack course. I learned how to use it to configure future and existent projects, install plugins and dependencies, go into development and production mode, use loaders and more. Being honest, it was kind of a hard time, since by the time I took the course, many things had changed within webpack, such as rules and uses of certain plugins. I spent a lot of time trying to fix bugs and errors every time I tried to use it. I did small projects with webpack, more than anything to familiarize myself with the working environment than to create apps. On the one hand I plan to use it in future projects once I start with React. On the other hand, I consider Snowpack to be a good alternative, from what little I know to be fair. I will comment on it in the next entry.</p><p>With all of this, I couldn’t be more efficient. Let me explain, I had pending tasks and I didn’t do them before starting new courses. To be honest, I’ve been like this for quite some time. I would say since my first interaction with the DOM, that is, with the rock-paper-scissors project at The Odin Project. I panicked, not really knowing what to do or where to start with the new interface, so I moved on to more “advanced” topics. It is true that now I have the knowledge to resume The Odin Project, what seems wrong to me is having postponed it for months for a project that would have taken me days. And the same goes for more recent projects: I decided to move on with other themes and technologies, and pick up the projects later. This has only led to constant stress, or at least worry about not having finished those previous projects. And I don’t recommend it. I mean, it has been weeks and weeks for a single projects, and personally I’ve never felt fully satisfied with a project, which only adds more worry to the previous concern about other projects, and the cycle continues.</p><p>I have to say that until recently I had this feeling of rush, that I had to be in a good position in my career as soon as possible. This is, getting a job or at least being independent with June as the last date to get it. This mainly because a personal reason and also because my Platzi suscription ends in June. This is why I used to feel (and still feel) that I have to make it as fastest as possible. Until recently I confused it with doing it as efficiently as possible, but they are quite different things. While being efficient consists of, in this case, carrying out robust projects in a “short” or relatively fast time, being fast has meant carrying out the occasional project with an uncertain weight in terms of experience.</p><p>My advice is, don’t let that feeling get you. They can end up getting burned and even lose their taste for what they do. I have not yet reached that point, but the feeling of discomfort has been here for a long time, and I have not been able to completely solve it. A part of me thinks that if I make robust projects directly “skipping” the theoretical part of some framework or library this feeling will attenuate. That is, if I make a decent portfolio and the apps that many recommend, then I will feel that my progress is advancing. That is a line of thought that I have had several times. What stops me is another line of thought, that of learning the “theoretical” now and ridding my future self of possible knowledge gaps while working. While I would feel like I have made progress if I follow the above line of thinking, the impostor syndrome would escalate, as I would be showing the world that I know something I don’t fully know about, or at least a “standard” amount (i.e., what is in the curricula of the different platforms to learn to program).</p><p>It’s… complicated. But we all should keep going. I’ll try to take my time, but not a lot of time, since my “due” dates have changed. This is all for today. Hope you are doing okay. Greetings and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbccdc30bc54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Me and projects with JS]]></title>
            <link>https://medium.com/@johnchacpi479/me-and-projects-with-js-2d8e1ee83626?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d8e1ee83626</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Sat, 05 Nov 2022 22:32:17 GMT</pubDate>
            <atom:updated>2022-11-30T22:14:56.704Z</atom:updated>
            <content:encoded><![CDATA[<p>Greetings there. These two weeks have been mainly about projects with Vanilla JS. You see, I enrolled in the Platzi Challenge, which consists in building four projects with HTML, CSS and JavaScript: a password generator, a tic-tac-toe game, a calculator and a portfolio using GitHub API. I’ve been focusing on the first three projects, since I plan to make the portfolio with other tools in the near future.</p><p>I used other resources to make the projects presentable, designs to be specific, since we went deeper into logic than into design during the challenge sessions. For the password generator, I used a Dribbble mobile app design. The third-part resources for the other two projects extended up to tutorials about how to make them. But first, I leave you the repository if you want to check out the projects’ code:</p><p><a href="https://github.com/ionuser13/Platzi-Challenge">GitHub - ionuser13/Platzi-Challenge: This repository contains the solutions for Platzi Challenge</a></p><p>And the UI design in Dribble, which will be referred soon in the repository:</p><p><a href="https://dribbble.com/shots/5900275-Password-Manager-App-Generate-Password-Settings">Password Manager App - Generate Password &amp; Settings</a></p><p>The second project, as mentioned before, was a tic-tac-toe game that included a basic AI to play against the user, based on the minimax algorithm. What this algorithm does is to search for the optimal play in a game, assuming that the opponent plays optimally. I won’t go deeper in this concept because I’m not so used to it yet. The solutions from the Challenge Session and freeCodeCamp tutorial were different. Here is the tutorial I followed for this project:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FP2TcQ3h0ipQ%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DP2TcQ3h0ipQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FP2TcQ3h0ipQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/540e6fb60c9e08ae14d066d45393acc7/href">https://medium.com/media/540e6fb60c9e08ae14d066d45393acc7/href</a></iframe><p>And this is the UI used in this project:</p><p><a href="https://www.figma.com/community/widget/1123835477666234652/Simple-Tic-Tac-Toe">Figma</a></p><p>A similar thing happened with the Calculator project. In this case, I used help from a YouTube tutorial. I didn’t pick a third-party UI because I considered that the one done in the tutorial was good in its way. Here is the tutorial:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fj59qQ7YWLxw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dj59qQ7YWLxw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fj59qQ7YWLxw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/642bf0dbbf22ab0043d8a72ca9716bc8/href">https://medium.com/media/642bf0dbbf22ab0043d8a72ca9716bc8/href</a></iframe><p>After finishing the main parts of these projects, I started taking the Front End Development Libraries Course in freeCodeCamp. Here you can learn about Bootstrap, jQuery, SASS, React and Redux. So far, I have done the Bootstrap, jQuery and SASS sections. I have to say that they weren’t what I expected. When I first heard and read about Bootstrap or jQuery or similar, I thought it’d be like learning an entire new language. Not at all, at least not by now. Just kidding. Actually, the are pretty intuitive once you understand their basics.</p><p>So far, I’ve used Bootstrap to add pre-defined CSS directly in HTML with classes, jQuery to manipulate the DOM (add classes, css properties and animations) and SASS to apply CSS in a different way. The latter uses a syntax similar to some JS concepts, so if you have knowledge in JS you can understand SASS.</p><p>Here is the freeCodeCamp course if you want to check it out:</p><p><a href="https://www.freecodecamp.org/learn/front-end-development-libraries/#front-end-development-libraries-projects">freeCodeCamp.org</a></p><p>That’s all for this post. See you and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d8e1ee83626" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Me and Asynchronism in JS]]></title>
            <link>https://medium.com/@johnchacpi479/me-and-asynchronism-in-js-733caa7e6b73?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/733caa7e6b73</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Mon, 24 Oct 2022 00:37:17 GMT</pubDate>
            <atom:updated>2022-10-24T01:56:14.583Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cqT_MsQ121fRi3lWspknTg.png" /></figure><p>Greetings. This week was pretty intensive in a good way. I was able to finish Platzi’s Asynchronism with JavaScript course. This course mainly touched on the different ways to develop asynchronous functionalities: callbacks, promises and fetch. There was a significant practical exercise in the course: a landing page connected to an API to be able to show the latest videos of a channel. Any channel really, even a playlist. I used a playlist with music from Nintendo. We use a tool called RapidAPI to get the “cast” code into JS.</p><p>Something to keep in mind on this platform is that it is necessary to have a type of subscription to start working with the APIs. It has different plans depending on the number of requests per month. There are many APIs that are Freemium, which offer the lowest number of requests among all the plans. Some allow a subscription without the need to provide payment information. Those that ask for the latter are those that offer additional requests to the one stipulated in the plan for a certain amount of money.</p><p>After a while trying to connect to the API (I didn’t know about subscriptions), I was able to successfully display the videos from my playlist on the Landing Page. Regarding the page itself, the model had already been made previously and was given to us by the teacher. One difference with the previous projects is that this one uses Tailwind, a technology that I have yet to learn.</p><p>The project consisted “only” in getting the thumbnail and the title of the videos of the channel or playlist. To be fair, it was an introduction to calling APIs. The teacher, however, urged us to try new things with the project, so I implemented functionality that redirected to the video within the playlist. This was possible thanks to the ID of the list and the videos themselves. If you want to take a look at it, you can do so here:</p><p><a href="https://ionuser13.github.io/async-landing/">Document</a></p><p>And here is the repository:</p><p><a href="https://github.com/ionuser13/async-landing">GitHub - ionuser13/async-landing: A landing page as a project of the Asynchronism with JS course in Plazti</a></p><p>That was not all. And it is that I remembered a past project: a gallery of the songs in my Spotify playlist. The initial plan for this project was to create a page for each song… manually. This changed when I learned how to connect to an API. The project would change slightly: I would no longer personally create a page for each song, but each gallery item (which was a grid) would redirect the user to the page corresponding to the song in Genius (a platform where you can find the lyrics of a song, among other things).</p><p>I used a method similar to that of the previous project to fetch the data from the API, and I did something else: I tried to create a kind of template towards Genius following the structure of the links to the songs. I used regular expressions and their methods. Overall it went well — I was able to connect to the API. However, not all songs can be connected to Genius due to their names. If you want to see the project, here it is:</p><p><a href="https://ionuser13.github.io/Music-project/">Home</a></p><p>Here is the repository:</p><p><a href="https://github.com/ionuser13/Music-project">GitHub - ionuser13/Music-project: Pages that have information about my favorite songs.</a></p><p>Although the design can be improved, this is not the objective of this project, but to put Front-End skills to the test.</p><p>Partly because of this, I recently joined the Platzi Challenge, a challenge to create a portfolio as a JavaScript developer. It consists of creating projects such as a password generator, tic tac toe, among others. And it is that in this challenge it is advisable to take a course dedicated to the consumption of API Rest. This will be the next thing I’ll be working on.</p><p>Greetings and do not give up.</p><p>Edit: While I was publishing the Song Gallery on Platzi, I asked myself if the songs lyrics could be seen from Spotify. And yes, they can. So instead if using regular expressions to adapt the link to each Genius page, I can simply use the song ID so it redirects to the song’s Spotify page.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=733caa7e6b73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 97, 98, 99 and 100, plus other days]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-97-98-99-and-100-plus-other-days-54a5082234cf?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/54a5082234cf</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Mon, 17 Oct 2022 23:00:16 GMT</pubDate>
            <atom:updated>2022-10-17T23:00:16.235Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 97, 98, 99 and 100, plus other days</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wXIsWybRfXr_fCckVeq6Ow.png" /></figure><p>Greetings again. Well, this is the end of this challenge. These last days I’ve been finishing the landing page I’ve been working on. To be honest I managed to finish only the web version of the site as there was no given mobile layout. It was with this project that I “officially” finished the 100 days of coding challenge. I leave you the GitHub repository:</p><p><a href="https://github.com/ionuser13/Delta-Project">GitHub - ionuser13/Delta-Project: This project contains a Landing Page Project. Design from Dribbble.</a></p><p>Speaking of GitHub, after finishing the Delta project, I spent a few hours organizing my GitHub and LinkedIn profiles: readme files, more accurate descriptions, and more presentable profiles. I used to not have readme files in any project, until I stumbled upon a basic guide to writing them. One sentence that stuck with me from the article was “It’s better to have the basics in a readme file than to have nothing at all.” So I dedicated myself to write the readme files of the most important projects of my profile. <strong>I encourage you to do the same.</strong> The goal of this was to have a foundation on which to formally build my online presence enough to connect with recruiters and get familiar with the ecosystem before actually applying for jobs. This thing of networking is kind of new for me, so any advice is welcome!!</p><p>The next thing is to continue with the Platzi Asynchronism with JS course. So far we have learned how to call API’s, the basis of promises and callbacks. I will update in future posts about it.</p><p>It has been a pleasure sharing about this journey with you. Surely this has only begun. I will keep writing from time to time. Greetings and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54a5082234cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 91, 92, 93, 94, 95 and 96]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-91-92-93-94-95-and-96-6da8fc4aebe9?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6da8fc4aebe9</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Sat, 08 Oct 2022 17:33:06 GMT</pubDate>
            <atom:updated>2022-10-08T17:33:06.065Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 91, 92, 93, 94, 95 and 96</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*TwxRfUtUAvK64h8GgZh0Fg.png" /></figure><p>Greetings again. These days also consisted of projects, mostly the Landing Page project based on a Dribbble design. I decided to finish (or at least get them in a good state) the HTML and CSS for this project before moving on to developing the JavaScript part. Unlike the previous project, this one doesn’t seem to need as much DOM manipulation, since it’s a Landing Page.</p><p>I was able to develop an iOS-style switch in HTML and CSS. Its purpose in theory is to determine if the payment will be annual or monthly. However, in practice it changes the font-weight of the two texts next to each other. From what I thought that would be solved with a simple click event. I will update on it. Here is the repository on GitHub:</p><p><a href="https://github.com/ionuser13/Delta-Project">https://github.com/ionuser13/Delta-Project</a></p><p>Regarding Platzi’s project, the general idea is finished. However, there are a few ideas that would make the project more realistic. Most consist of automatically modifying the data rather than proper interaction with the user.</p><p>Once I finish these projects I’ll get into learning TailWind and then React. This is because I was not clear on the importance of TailWind until I read more about it.</p><p>This challenge ends in a few days. I’m not sure what the next phase of this blog will be. An idea would be to update every week. I’ll think about it in the next few days.</p><p>Greetings and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6da8fc4aebe9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 85, 86, 87, 88, 89 and 90]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-85-86-87-88-89-and-90-aad5cf06ec68?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/aad5cf06ec68</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 04:41:51 GMT</pubDate>
            <atom:updated>2022-10-03T04:41:51.527Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 85, 86, 87, 88, 89 and 90</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*femEucCw-LKf5T0FZLnyCg.png" /></figure><p>Greetings once again. Wow, almost 90 days already. These days have basically consisted of projects. At the beginning it was just one, but lately I took up an old project so as not to miss a beat.</p><p>The project to which I have dedicated the most time these days has been the front-end part of a shopping web app in Platzi. The main focus has been the assembly of different components and manipulation of the DOM, from query Selectors to addEventListeners. What stands out the most so far is an introduction of interaction with data brought from the Back-End, at least a simulation of it. While there isn’t a database from which to fetch the product data to display, we saw a way to create a section for each product with Vanilla JS. The data we used was hardcoded since at the moment we do not interact with a database itself.</p><p>I felt that this project would be a good way to seriously introduce myself to DOM manipulation more than in a theoretical way. This does not mean that I rule out The Odin Project.</p><p>I leave you the repository of the store that takes part as a project in Platzi:</p><p><a href="https://github.com/ionuser13/Store-App">https://github.com/ionuser13/Store-Apphttps://github.com/ionuser13/Store-App</a></p><p>The other project is the Landing Page that I started a while ago based on a Dribbble design. Most of the advances have been in the positioning and styles part, since the original design does not contain any indication about interaction between components, animations or something similar. Here is the repository of the project (I admit it, I created it recently), and the original design:</p><p><a href="https://github.com/ionuser13/Delta-Project">GitHub - ionuser13/Delta-Project: This project contains a Landing Page Project. Design from Dribbble.</a></p><p><a href="https://dribbble.com/shots/19243385-Agency-website-landing-page-home-page-ui">https://dribbble.com/shots/19243385-Agency-website-landing-page-home-page-ui</a></p><p>I will keep moving forward on these projects. Greetings and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aad5cf06ec68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 79, 80, 81, 82, 83 and 84]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-79-80-81-82-83-and-84-e00450d1546d?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e00450d1546d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Mon, 26 Sep 2022 05:36:06 GMT</pubDate>
            <atom:updated>2022-09-26T05:36:06.713Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 79, 80, 81, 82, 83 and 84</h3><p>Greetings once again. These days I have been doing The Odin Project, mainly the fundamentals of JavaScript: strings, arrays, methods, debugging and types of errors. There was a module dedicated to troubleshooting, which I feel I need to delve into so I don’t feel so lost every time I read third-party code for the first time.</p><p>The highlight of these days has been a project of rock, paper or scissors with vanilla JS. It does not yet have a graphical interface, so I will only explain the logic of the program in this post.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*JXgWLSn1KRGTiGiKbMv0JA.png" /><figcaption>Images made with the CodeSnap extension for Visual Studio Code</figcaption></figure><p>First, we declare the possible values with which we have to play. In this case it consists of an array with three strings: rock, paper and scissors. Since we are going to be playing against the computer, we declare a variable that will store the computer’s choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*tpEiNZp7WVS_YwCtFYzAdg.png" /></figure><p>Then we create a function that will randomly choose between the possible values to play. It does this by choosing a number between 1 and 3 with Math.random() and then rounding it to the nearest larger integer. It subtracts 1 because “values” only has values up to index 2. That value passes as index to “values” and is assigned to computerChoice, which is what the function returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/957/1*fOyScULz0bWTL6VK8CxAAQ.png" /></figure><p>Here we declare two variables that will store the scores from both the user and the computer. They both start at 0. Next, we create a playRound function that takes the player’s choice (playerSelection) and computerSelection(we’ll get to that). We write a conditional. In the first if, if one of the 3 cases occurs, the console will print that the player has won, as well as the choices of the player and the computer. In addition, it will increase the player’s score by 1 and execute another conditional: if the score reaches 5, the player has won the round.</p><p>The second condition checks if one of the conditions that shows that the computer has won is met. We will have similar results: the console will print that the player has lost, the choices of the player and the computer, increment the computer’s score by 1, and run a conditional where if the computer’s score reaches 5, the player has lost the round.</p><p>Finally, we set a line of code in case the player’s choice doesn’t match any value in “values”. The function returns the player’s score for each game.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n2W3x1VzzqrLd_q9Fe0c6w.png" /></figure><p>Now we enter the part of the 5 rounds. We declare a function with a variable that represents the number of rounds. Inside it we declare two variables: playedRounds (the rounds played) and user points. Next, we create a while loop, which will execute as long as the number of rounds played (playedRounds) is less than the number of rounds (totalRounds). While this condition is met, the player will have to place his choice through a prompt. To avoid problems with capitalization, we apply toLowerCase to it.</p><p>On the other hand, the computer will make a choice every time the condition is met, so in each round it will choose a different value. playRound is then executed with these two values. In addition, we increment the user points with the value returned by playRound. Finally we increase by 1 the number of rounds played.<br>We print the function game on the console.</p><p>The outputs have a lot to improve, but they fulfill their function. I will polish these aspects before giving it a graphical interface. I will comment on it in future posts. Greetings and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e00450d1546d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 73, 74, 75, 76, 77, and 78]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-73-74-75-76-77-and-78-8631ebbd3d0d?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8631ebbd3d0d</guid>
            <category><![CDATA[github]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Tue, 20 Sep 2022 03:22:42 GMT</pubDate>
            <atom:updated>2022-09-20T03:22:42.880Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 73, 74, 75, 76, 77, and 78</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hvsxXl7hqZCEjHrL.png" /></figure><p>A summary of these days: The Odin Project. I have been catching up with The Odin Project, because on previous occasions it has contributed new things that I have not found in other resources. As of the date of this post, I am in the JavaScript fundamentals section, even though I have previous knowledge. This week I’ve also covered CSS, and learned a few new properties:</p><ul><li>Flex property: this property is a shortcut, so it accepts 3 values (flex-grow, flex-shrink and flex-basis). The first one tells an element whether it can take up additional space in the parent container or not. It accepts a number equal to 0 or larger, and depending on this will behave in different ways. Flex-shrink is similar, but it deals with space taht the elements content don’t need. Here is a blog that was helpful to understand this: <a href="https://medium.com/@tiffnogueira/understanding-flex-shrink-flex-grow-and-flex-basis-and-using-these-properties-to-their-full-e4b4afd2c930">https://medium.com/@tiffnogueira/understanding-flex-shrink-flex-grow-and-flex-basis-and-using-these-properties-to-their-full-e4b4afd2c930</a> .</li><li>flex-flow: It’s a shortcut that accepts two values: flex-direction and flex-wrap.</li><li>align-self: Basically overrides the “align-items” value of a flex or grid’s items. In flex’s case, instead of flex-start or flex-end, it accepts start and end. It works in a flex-item.</li><li>align-content: This works in a flex-container. It works like align-items.</li></ul><p>I made a landing page as part of a project. I leave you the Git repository: <a href="https://github.com/ionuser13/Odin-Landing-Page">https://github.com/ionuser13/Odin-Landing-Page</a>.</p><p>I got to finish the Platzi’s Git and GitHub course too. I can finally take the practical JavaScript course now.</p><p>Greetings and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8631ebbd3d0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 68, 69, 70, 71 and 72]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-68-69-70-71-and-72-77ec57d50136?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/77ec57d50136</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Thu, 15 Sep 2022 03:58:48 GMT</pubDate>
            <atom:updated>2022-09-15T03:58:48.185Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 68, 69, 70, 71 and 72</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rd-PAUn9llgZzTtN.png" /></figure><p>A new entry in this blog. Greetings. These days I’ve been learning few new concepts about JavaScript in Platzi. I’ve also learned more about Git and GitHub, and catching up with The Odin Project.</p><p>Let’s start with .flat() y .flatMap. These are methods that apply to arrays. Suppose we have the following array:<br>let array1 = [1, 3, 5, 6, [45, 88], [[44, 89], 90]];</p><p>What the .flat() method does is create a new array with the elements of the sub-arrays within it up to the specified depth. The depth is in other words by how many dimensions you want to reduce the multidimensional array., and is what it takes as a parameter. The default value it takes is 1. So:</p><p>let newArr = array1.flat() , we will get:</p><p>newArr = [1, 3, 5, 6, 45, 88, [44, 89], 90] .We have created a new array of dimension 2 from the array of dimension 3. It can also receive other values as an argument:</p><p>let newArr2 = array1.flat(2) , we will get:</p><p>newArr2 = [1, 3, 5, 6, 45, 88, 44, 89, 90].</p><p>The .flatMap() method is somewhat similar, but does not have the same function. What .flatMap does is first map all the elements by applying a function to them that takes them as arguments, and then apply the flat method to the resulting array. For example:</p><p>let array = [[1, 2], [12, 23], [34, 45]]</p><p>If we apply map, then:</p><p>let arr1 = array.map(pair=&gt;{return [pair[0]+pair[1]]}) we would get:</p><p>arr1 = [[3], [35], [79]] . But if we apply flatMap, then:</p><p>let arr1 = array.flatMap(pair=&gt;{return [pair[0]+pair[1]]}) we would get:</p><p>arr1 = [3, 35, 79]</p><p>trimStart and trimEnd are methods applied to strings. Basically they remove empty spaces at the start or end of a string, respectively. Here:</p><p>let string = &quot; Hello &quot;;<br>let string1 = string.trimStart(string);<br>let string2 = string.trimStart(string);</p><p>As result, we would get:</p><p>string1 = &quot;Hello &quot;<br>string2 = &quot; Hello&quot; ç</p><p>Another method is fromEntries. It takes a list of pairs (each in the form of an array) of the form [key, value] and transforms them into properties of an object. Here:</p><p>const values = new Map([&quot;id&quot;, 1234], [&quot;name&quot;, &quot;John&quot;])<br>console.log(Object.fromEntries(values)) we will get:</p><p>{id: 1234, <br>name: &quot;John&quot;}</p><p>“try…catch” declares a block of code to be carried out, as well as a response to an error. Here:</p><p>try {<br>randomFn()}<br>catch(error)(<br>console.log(&quot;There is an error: &quot; + error))</p><p>If we run this code, we will get an error since randomFn has not been defined. We would get this as a result:</p><p>There is an error: ReferenceError: randomFn is not defined</p><p>I also saw aspects related to BigInt (mostly used to represent very large numbers), nullish (similar to an alternative to the OR operator), all-settled with promises and dynamic import (consists of loading an external module only when the code part where the import was declared is reached).</p><p>I will keep updating on the next steps. Greetings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77ec57d50136" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[#100DaysOfCode — Days 63, 64, 65, 65 and 67]]></title>
            <link>https://medium.com/@johnchacpi479/100daysofcode-days-63-64-65-65-and-67-198923661470?source=rss-dc1ec7ef83a9------2</link>
            <guid isPermaLink="false">https://medium.com/p/198923661470</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[John Chacpi]]></dc:creator>
            <pubDate>Fri, 09 Sep 2022 17:21:55 GMT</pubDate>
            <atom:updated>2022-09-09T17:21:55.292Z</atom:updated>
            <content:encoded><![CDATA[<h3>#100DaysOfCode — Days 63, 64, 65, 65 and 67</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tv5cL7YtBjegXE6q6aiRVA.png" /></figure><p>Greetings again. These days I’ve been focusing on reviewing concepts from JavaScript in Platzi, with the ECMASCRIPT 6+ History Course. I’ve mentioned concepts in previous entries, so I’m not going to give details more than describing what I’ve been learning until now.</p><p>Earlier this week I finished the freeCodeCamp’s JavaScript Certification. The certification projects were a difficult challenge to face. They consisted of building a palindrome checker, a decimal to Roman numeral converter, a Caesar cipher, a phone number validator, and a cash register. The objective was to apply the knowledge seen throughout the certification.</p><p>I learned about higher class functions, mutations, and more detail on slice, splice, map, among other methods. Also about math.pow, sort, split and the difference between the every and some methods. Basically every returns a boolean value if every method in the array satisfy a certain condition, while some returns a boolean value if any of the elements do.</p><p>Next steps? Continue learning at Platzi, look for ideas for future projects for my portfolio, continue with The Odin Project and other freeCodeCamp certifications related to front-end development. I’ll also be exploring some ideas on YouTube and Dribbble. There is plenty left to do.</p><p>I’ll keep updating on what comes up. Greetings, encouragement and do not give up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=198923661470" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>