<?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 Yahjaira Vasquez on Medium]]></title>
        <description><![CDATA[Stories by Yahjaira Vasquez on Medium]]></description>
        <link>https://medium.com/@yahjairav?source=rss-1c5ec491b1c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*G8YJQn6NSsp8M5nRnN9MIQ.jpeg</url>
            <title>Stories by Yahjaira Vasquez on Medium</title>
            <link>https://medium.com/@yahjairav?source=rss-1c5ec491b1c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:49:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yahjairav/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[What is Node.JS ?]]></title>
            <link>https://yahjairav.medium.com/what-is-node-js-3ca9e7e22f9f?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ca9e7e22f9f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[multithreading]]></category>
            <category><![CDATA[backend-development]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Fri, 08 Apr 2022 18:18:27 GMT</pubDate>
            <atom:updated>2022-04-08T18:18:27.693Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Node.JS ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1Z_sIVIcHwB7y20vqUgrvQ.png" /></figure><p>What is Node.JS, you ask? Node is an asynchronous event driven Javascript runtime, per the official <a href="https://nodejs.org/en/about/">Node.JS</a> website. Asynchronous code is parallel programming that allows for events to occur independently of the main application. By continuing with next requests instead of waiting for one request to be completed, asynchronous code used by Node decreases/eliminates the wait time that typically occurs with synchronous code. Because functions are typically written asynchronous (unless intentionally written synchronously using methods provided by Node), application written using Node are easily scalable.</p><p>Along with it’s asynchronous programming, Node is single-threaded and non-blocking. Therefore, while the code is processed one command at a time, given that it is asynchronous, it is also non-blocking. This can also be viewed as a downfall for Node because it puts this runtime at a disadvantage when it comes to long running calculations. When heavy computations, such as CPU-Intensive and I/O intensive operations, are performed, this can create blockage for incoming requests, further leading to decrease in application performance. Node has expanded over the years to support a multi-thread environment, by incorporating “worker threads” which are useful for performing CPU-intensive Javascript operations and built in I/O operations to provide some assistance with I/O intensive operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WVP8haZ_BXxVPEzsPDZWsQ.png" /><figcaption>Photo Credits: <a href="https://strongloop.com/strongblog/node-js-is-faster-than-java/">https://strongloop.com/strongblog/node-js-is-faster-than-java/</a></figcaption></figure><p>Node also has an open source ecosystem which has it’s pros and cons. On the cons, you have to be mindful of the packages you choose to incorporate into your applications because many of the packages are not supervised and properly updated, which can lead to bugs being incorporated into your applications. On the other hand, if you properly navigate and use the open source eco system to your advantage it allows for accelerated growth of your projects. That being said, the Node community is very active and supportive, therefore finding help when you’re stuck or have questions is fairly easy.</p><p>All in all, Node.JS is rather easy to learn, especially if you already know Javascript and is a great tool to have. I highly suggest anyone who is looking to learn Javascript or who knows Javascript already to add Node to their skillset as well, as it is an easy skillset to learn and a powerful runtime to pair with Javascript. Please share in the comments, if you intend to learn Node.JS. If you already know and use Node.JS what are you experiences with this runtime? Do you suggest learning it?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FSWoSkN6DxTszqIKEqv%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FSWoSkN6DxTszqIKEqv&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExM2J5bTZzNDlwOG5ibHk0djRmbmw4eXBtbG82NXFlcDl4a21pNDZxOCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FSWoSkN6DxTszqIKEqv%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/d62b69c5061dd4c26b184861fb11baaf/href">https://medium.com/media/d62b69c5061dd4c26b184861fb11baaf/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ca9e7e22f9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Under Representation: Why Women in Tech Matters]]></title>
            <link>https://medium.com/swlh/the-under-representation-why-women-in-tech-matters-95ebe62e784b?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/95ebe62e784b</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[women-in-tech]]></category>
            <category><![CDATA[equal-representation]]></category>
            <category><![CDATA[stem]]></category>
            <category><![CDATA[equality]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 27 Oct 2020 00:01:14 GMT</pubDate>
            <atom:updated>2020-10-31T06:22:14.505Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtJG7xL8QK3t5DgAGWkuAw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@claybanks?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Clay Banks</a> on <a href="https://unsplash.com/s/photos/diversity?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It is no new news that women are under represented in the STEM fields, especially women of color (African American, Hispanic, Asian, American Indian/Alaska Native). And if we speak about woman in leadership roles within these fields… let’s just say it is alarming. According to <a href="https://www.catalyst.org/research/women-in-science-technology-engineering-and-mathematics-stem/">Catalyst</a>, in 2017, women only accounted for 29% of those employed in STEM in the United States. Women of color employed in science and engineering accounted for a sad 11.5%; 6% being Asian, 2.5% African American, 2.3% Hispanic, and less than 1% American Indian/Alaska Native.</p><p>Many people look at these numbers and just think that’s the way it’s supposed to be and if women wanted these jobs they would study them in school and apply to them. But it’s just not that easy. The error in these numbers go way deeper than just applying. And even if we just applied for these jobs, we know men are more likely to be hired for these roles than women, because they are viewed as a “man’s role”. This is not to point fingers or upset the opposing gender. I am simply writing this article to shed some light on what is at stake by furthering this under representation, especially now as the world is becoming more and more reliant on technology.</p><h3>Where It All Begins</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wF2iSnJRLxBhnzsDMhrow.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kayanbaby?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Kayan Baby</a> on <a href="https://unsplash.com/s/photos/toy?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Like I said earlier, roles in STEM are typically viewed as a “man’s role”. This view is engrained into our brains before we can even speak. As children, boys are given toys such as cars and legos and girls are given toys such as baby dolls and kitchen sets. If one gender tries to play with the opposing gender’s toys it is frowned upon and they are told this is not for them, if not by the parents, then by surrounding family members (I applaud parents who do not feed into this divide of gender roles!).</p><p>Women are brought up in life to be nurturers and men are told they must be providers. Boys have all these movies where they can see other men who are successful and have high paying careers that they can look up to, where girls are shown movies where the women are house wives, or are searching for love and while all of this is great and probably necessary to view, there should be a balance on both ends. Girls and boys should have role models and superheroes to look up to that represent them and both boys and girls should have movies that show them a healthy representation of love.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*31nVWdTiM46do7MA2Mfrmw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@stem_t4l?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">stem.T4L</a> on <a href="https://unsplash.com/collections/2485815/screentime?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>In my opinion, a simple step in the right direction would be to provide girls with toys that stimulate their brains at a young age, toys that will teach them to build something cool and fun that they can be proud of and excited about, and give girls more women superheroes to watch on tv. Also, parents please expose children to all options. You put your daughter in ballet, well, you can also take her to the science museum too. Do not choose your child’s future, your only job is to give them options to make their own decision.</p><h3>Education</h3><p>If changes are made in the early stages of childhood, girls would be a little more prepared when heading into college. There would probably be more women choosing to study something in STEM because they’ve had exposure to it previously and found something interesting they liked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LeRJIgM-cvlpiOt5j-dDJw.jpeg" /></figure><p>When I was a senior in high school and in the process of choosing what I wanted to study in college, or what I wanted to do in life in general, I was pretty lost. I didn’t really know what I wanted to do because I didn’t think I had enough exposure. I knew I wanted to help others, but how? I had no clue. So I went with psychology, because it seemed pretty interesting. Then I jumped around from major to major for numerous reasons that don’t matter, until I came across coding and took a coding bootcamp. I had no idea about the world of software engineering before this. I had heard about engineering in general and it seemed really scary, so I never explored further. Now looking back, if I knew then what I know now, I would have definitely majored in computer science.</p><p>I say all this to say we need exposure to these fields so that they don’t seem so daunting and we aren’t left having to chose unfulfilling careers or wasting financial aid or taking out loans studying fields that are not sparking joy.</p><h3>Why Equal Representation Matters</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*og265sJqWg8cby18D1ipWQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/s/photos/stem-education?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>STEM is shaping our future. If we do not have enough women to help mold the future of STEM, it will be biased to men. There needs to be diversity in all aspects, men and women, equal portions white, African American, Hispanic, Asian, and Native American. Diversity ensures that the products that come of STEM are inclusive. Also, with the diverse set of minds on the team, it ensures a greater product can be made. When we have more women in STEM, we can also have more products that are better suited for our needs, such as mammography equipment, apps that will track our monthly cycle, the next application that will alert police when we are in danger, the list can go on. Anything that we possibly need or use should have at least half the team producing it female, because who better to understand the female anatomy than a female.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eKakZyqy7Q-hX_l9Y-o1hw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@wocintechchat?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Christina @ wocintechchat.com</a> on <a href="https://unsplash.com/s/photos/diversity?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>This issue is not something that can be fixed over night. It will take an army to see more equal representation in STEM, but it is definitely possibly and very much so important for our future. To see change, we need parents, employers, schools, everyone, doing their part to ensure equal exposure and fair opportunity is given. The future is counting on you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95ebe62e784b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/the-under-representation-why-women-in-tech-matters-95ebe62e784b">The Under Representation: Why Women in Tech Matters</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React vs Angular]]></title>
            <link>https://yahjairav.medium.com/react-vs-angular-7933b090558e?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7933b090558e</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript-frameworks]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript-library]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 20 Oct 2020 01:29:55 GMT</pubDate>
            <atom:updated>2020-10-20T01:29:55.332Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you starting a new project and unsure whether to use React or Angular? Or maybe you are looking to learn something new to add to your resume. Whatever the case, today I am here to discuss some of the prime differences between the popular React and Angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RCfjT5DruSQ6dwCUSfxtVQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@joeel56?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nicole Wolf</a> on <a href="https://unsplash.com/collections/10723930/data?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Let’s start off with some basic knowledge. Both Angular and React are open sourced, but Angular is a Javascript framework written in Typescript by Google, while React is a Javascript library written in JSX by Facebook. Angular has been around a little longer than React, as it was released in 2010 and React was released in 2013, but both languages are pretty mature, which makes them a more reliable.</p><p>Something to consider especially if you are venturing into something new is debugging and the learning curve. For Angular, I would say there is a bit more of a learning curve because you must learn how to use Typescript, as this library was built using typescript. But, despite the learning cure, the debugging process with Angular is definitely more forgiving, as Angular tends to give clear error messages. React, on the other hand, has less of a learning curve, as it is built using JSX ( a merge of Javascript and HTML). But the downside is the error messages, as they are not always as clear and helpful as they are with Angular, which can be very frustrating during the debugging process at times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4TLlisFk7XvtREAsS7C7Q.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/collections/4532936/frontend?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>A big differentiator between the two is DOM. Angular utilizes a real DOM. This means that every time a change is made, the entire DOM is reloaded. This can slow down runtime. Also, Angular is a large library, causing slower speeds as well. React utilizes a virtual DOM, which provided a solution to the slower speeds caused by real DOM. A virtual DOM is faster than a real DOM because only the elements for which changes were made are reloaded as opposed to reloading the entire DOM. React is also a smaller library, adding to the speed of the library.</p><p>These were just a few of the differences between Angular and React. Both libraries have its strengths and weaknesses, it is up to you to decide which would be more beneficial to you and/or your project. But a general rule of thumb is that React is best used for single page applications that may experience frequent changes, whereas Angular is best for larger scale applications. Until next time, Happy Coding!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P5H2xq6ElZwA5_xwAKeXHg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@prateekkatyal?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Prateek Katyal</a> on <a href="https://unsplash.com/s/photos/coding-quotes?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7933b090558e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helpful Terminal Commands Every Developer Should Know (Mac)]]></title>
            <link>https://yahjairav.medium.com/helpful-terminal-commands-every-developer-should-know-mac-848d85970a75?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/848d85970a75</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[junior-developer]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 13 Oct 2020 00:47:16 GMT</pubDate>
            <atom:updated>2020-10-13T00:47:16.000Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I wanted to provide you all with a list of helpful commands that can be used in your terminal on a mac (some of these commands may be written differently on other systems). Knowing how to navigate through your terminal is very important, especially as a developer, because it will allow you to be more efficient and faster when navigating through your system. In the beginning, it may seem like a slow process, but the more you use your terminal and start to remember what commands do what and which commands you tend to use the most, it will all come more naturally and faster. So let’s get into it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEzbw6ACVYwcTEzKfTBOiw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@_ferh97?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Fernando Hernandez</a> on <a href="https://unsplash.com/s/photos/coding?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>cd</h3><p>First up, we have <em>cd, </em>also known as “change directory”. This command is used to navigate through your folders. There are numerous combinations to use this command.</p><p>We can cd into a specific folder by writing cd and the folder path:</p><blockquote>cd development/code/test_path</blockquote><p>We can cd up one folder in our current path by typing “..” after the cd command:</p><blockquote>cd ..</blockquote><p>We can also go back to the top of our directory by just typing cd:</p><blockquote>cd</blockquote><h3>pwd</h3><p>This command stand for “print working directory”. When we type <em>pwd </em>the terminal will return the current path for the folder/file you are in.</p><blockquote>pwd =&gt; /Users/username/development/code/test_path</blockquote><p>This command will prove helpful when you are unsure of the direct path to your current folder/file.</p><h3>ls</h3><p>When we type the <em>ls</em> command into our terminal, it will return a list (hence the abbreviation) of all of the folders/files that are in your current folder. Sometimes you may be unsure of what is available to you in your current directory, remembering all folders and their paths is almost impossible, so using this command will come in handy.</p><blockquote>ls =&gt; test_project1 test_project2 test_file.js</blockquote><h3>clear</h3><p>Sometimes your terminal can start to look overwhelming from all of your previous commands that you’ve ran. While you may scroll up to look at your previous commands, there is no way to scroll down to clear your view. That is where the <em>clear</em> command comes in. When we type <em>clear</em> into the terminal, the current view will be cleared and you will now have a blank slate to work with, still in the same directory you were in. And even though you have cleared the view, you can still scroll up and view your terminal history.</p><blockquote>clear</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6ZxH7iwd3pcd49YI2-0wQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@tracycodes?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tracy Adams</a> on <a href="https://unsplash.com/s/photos/coder?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>touch</h3><p>This command allows you to create a new file straight from your terminal within your current directory.</p><blockquote>touch terminal_blog.js</blockquote><p>Or if you’d like to create a file within a different folder in your current directory you can do so by providing the path as well.</p><blockquote>touch test_blog/terminal_blog.js</blockquote><h3>rm</h3><p>If you would like to delete a file you can run the <em>rm</em> command followed by the file you would like to remove.</p><blockquote>rm terminal_blog.js</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K5GXAPomZjKLaRNRmFgC1A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@ilyapavlov?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ilya Pavlov</a> on <a href="https://unsplash.com/s/photos/computer-file?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>mkdir</h3><p>To create a folder in your current directory, the <em>mkdir</em> command, which stands for “make directory” can be ran followed by the folder name.</p><blockquote>mkdir test_blog</blockquote><p>Just as we could with touch, if you need to create a nested folder within a folder in your current directory, we can do so by providing the path.</p><blockquote>mkdir development/code/test_blog</blockquote><h3>rmdir</h3><p>If you need to remove a directory (folder), you can do so by running the <em>rmdir</em> command and the folder will be deleted.</p><blockquote>rmdir test_blog</blockquote><p>The above commands are commands you will use all of the time and if not already familiar, will become very familiar as you use your terminal more and more. Now I just wanted to throw in a few fun ones that could be pretty useful, but please master the previous ones first!</p><h3>mv</h3><p>Did you accidentally create the folder/file in the wrong directory? No need to delete and create a new one in the right directory. You can run <em>mv</em> followed by the file you want to move and then the new directory path you would like to move the folder to.</p><blockquote>mv move_this my_new_home</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chzeIszudlOkUVyRZQp74w.jpeg" /></figure><h3>less</h3><p>Want to see what is in a file without having to open the entire file? This command will allow you to do so by following the command with the name of file you would like to open. This will pull up the file contents, which you can scroll through and once you are done viewing it’s contents type “q” and hit enter to be returned to the previous terminal view.</p><blockquote>less terminal_blog.js</blockquote><h3>history</h3><p>The <em>history</em> command will provide you with a numbered history list of commands you have used. You can pair the number of the command you want to use with a bang symbol before it to run the command.</p><blockquote>history</blockquote><blockquote>!1276</blockquote><h3>man</h3><p>If ever you are unsure what a specific command does, you can run <em>man</em> followed by the command in question and a detailed description will be provided to you through the terminal. To return to the previous view you can run ”q” + enter.</p><blockquote>man ls</blockquote><p>And just like that, you have mastered the terminal! There are many more commands that can be used, these are just some of the every day commands you should be comfortable with. As always, I encourage you to do some research and explore new commands outside of this list. An extensive list can be found <a href="https://ss64.com/osx/">here</a>. Also, bookmark this blog for future reference! Until next time! Happy Coding :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl2JI1JzL6YS8z5KUM%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl2JI1JzL6YS8z5KUM%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2Fl2JI1JzL6YS8z5KUM%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="326" frameborder="0" scrolling="no"><a href="https://medium.com/media/a85ddd3973e4e6911e03e7d587d7643a/href">https://medium.com/media/a85ddd3973e4e6911e03e7d587d7643a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=848d85970a75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Components in Angular]]></title>
            <link>https://yahjairav.medium.com/creating-components-in-angular-5b11743559eb?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b11743559eb</guid>
            <category><![CDATA[components]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 06 Oct 2020 03:59:22 GMT</pubDate>
            <atom:updated>2020-10-06T03:59:22.588Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMrXL0QkDJX8ixAGPcXQTw.png" /></figure><p>In angular, a component dictates what is viewed on the DOM. The DOM will typically consist of many different components that are tied together and styled for display to the user. Unlike with React, where your component logic and html lived in one file, with angular, each of the elements of a component are separate. This means, we have 3 or more files for each component. Today we will only discuss the typescript file, html file, and css file. With this knowledge, you will know how to create basic angular components that can be viewed on the DOM.</p><p>Before we dive into creating the component, I just want to go over some naming conventions. To create a new component, we will create a new folder within our app file that will house all of our component files. This folder should be named after your component. Within this folder, the files should be named as such: <strong>componentName</strong>.component.<strong>fileType</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*Pkq-0LZV_MBtpuPqV4kB5w.png" /></figure><h3>Step 1: The Component Typescript File</h3><p>The typescript file will be where your component information is housed. This will be the file with a naming convention of <em>componentName.component.ts</em>. At the top of the file, we will need to import Component from angular/core.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FX9z3MztenGSwX1nZMg3-g.png" /></figure><p>This will allow us to use the component decorator provided to us by typescript. It allows for the class below it to be viewed as a component. The component houses metadata that gives some direction of how to use the component. All components must have a template. The template is the html code associated with the component. This can be done, either in line or by pointing to the html file, which we will do for this tutorial. Other than that there are numerous other metadata that can be used in the component to make any necessary associations. We will be adding the selector. This will allow us to associate the component as a specific html tag. While there are multiple ways to implement the selector, we will be using the selector as an html tag. We will also add the styleUrls meta data to associate the appropriate css file with the component. The styleUrls should be set to an array of routes to the css styling sheets; the routes should be strings. This is an array because it can point to many different style sheets if necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuyMJ2dyxjKgQufcLePxtQ.png" /></figure><p>Directly after the component, we should have our exported class, which will be converted to a component and will eventually hold any necessary logic required for the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pdOzTYy4dpSwsTPdV_MJCw.png" /></figure><p>And that is all we will be housing in our typescript file for the purposes of this tutorial.</p><h3>Step 2: The Component HTML File</h3><p>The html file, should house any html code you would like displayed to the DOM. For our tutorial we will make an h1 tag that will say “We are Angular component experts!”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oYtAoPCebQ7ym0XGzyezqg.png" /></figure><p>The html file is as simple as that. Whatever we place in this file will be rendered to the DOM, so long as we call out selector within the main component, in our case the app component.</p><h3>Step 3: The Component CSS File</h3><p>This file will house any of the css styling you would like applied to the component. This, of course, works just as any other styling sheet. You must either call on a specific html, class, id, etc to further style the specified element. We will simply change the color of our h1 tag to blue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*L461ztptjUw_J2_ZfYjjVA.png" /></figure><h3>Final Steps</h3><p>Finally, we will tie everything together so that this component may be rendered. In angular, unless you import the component to the app.module.ts file and add it as a declaration to the ngModule, angular and typescript will not know that the files exists. Therefore, we will import our test component into the app.module.ts file and add it as a declaration. (Side note: we do not have to specify file type when providing the file route to import from)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*auc8aSo12BiG46yYhTIjwA.png" /></figure><p>At this time we can now call our app-test tag in the app.component.html file to render our html code from the test component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*eouFEWRBKnd7rb_sEOj0rQ.png" /><figcaption>This code can be placed in the app.component.html to render our test component.</figcaption></figure><p>And there you have it! You just rendered your first angular component to the DOM. Of course, this is just a simple start point. Components can get more complex, as we begin to add more meta data to our components and add different features to our application. I encourage you to play around with this base tutorial and explore more features that can be added to components with angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rs9aenIo47ff49cGKkM9MQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b11743559eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit Testing With Jest in Javascript, Part II — React]]></title>
            <link>https://medium.com/swlh/unit-testing-with-jest-in-javascript-part-ii-react-2deca71a515d?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/2deca71a515d</guid>
            <category><![CDATA[enzyme]]></category>
            <category><![CDATA[jest]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 29 Sep 2020 02:00:48 GMT</pubDate>
            <atom:updated>2020-09-30T01:02:23.140Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unit Testing With Jest in Javascript, Part II — React</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDDum6c6L9tnVzwKzooOuw.png" /></figure><p>In part one of “Unit Testing with Jest in Javascript” we discussed the basics of unit testing and some of the basic ways to implement tests to a vanilla Javascript project, but what if you are using a React framework? When you want to test some of your React components using Jest unit testing, there are a few extra steps that should be taken to ensure proper testing is completed. I would suggest reading part one to the series <a href="https://medium.com/@vyahjaira23/unit-testing-with-jest-in-javascript-part-i-cf5b79359cc6">here</a> before continuing on so that you get the basic knowledge and learn how to set things up before moving forward with this article.</p><h3>Set Up</h3><p>In part one we discussed how to set your environment up for testing. The same rules apply, but you will also need to install <a href="https://enzymejs.github.io/enzyme/">Enzyme</a>. Enzyme gives you the ability to simulate rendering your application, without actually having to render it. To install both Jest, Enzyme, and the Enzyme adapter for React version 16 at the same time, you can run the following code in your terminal: <em>npm i --save-dev enzyme enzyme-adapter-react-16.</em> When you run this line in the terminal you should have a file called <em>setupTests.js</em> that was created. You will then need to place some code in this file that will configure Enzyme to your React adapter based on which version you are using. This code, shown in the photo below, can be found in the Enzyme docs previously linked. This is a file that Enzyme will search for when running tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DicVFg3bYl62W2INOsFKww.png" /><figcaption>Be sure you are importing “Adapter” for the right react version. Check docs!</figcaption></figure><h3>Mocking Components</h3><p>When unit testing in React, we want to be able to create mock data that can be used to test out components. We do not want to have to pull this data from the back end, because at that point, it would not be considered a unit test. So we get around this, by creating mock data using enzyme. Enzyme has three different rendering methods: shallow, full DOM, static render markup. Static render markup is actually imported from a third party, and full DOM requires a full DOM API to run it’s tests because it must have a browser-like environment. You can look into these two on your own, but today we will be discussing some of the capabilities provided through shallow rendering. Shallow rendering allows you to test your components as a whole and helps to ensure you are following proper separation of concerns.</p><p>To set up your test file, we will follow the same naming conventions mentioned in part one. Then in your test file we will need to import React and shallow, as well as the function being tested.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KDEV5wQnGOV_nskJgnn8Hw.png" /></figure><p>Then we want to create a variable with mock data to be tested. This should mimic the kind of data this function would receive from the backend.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHDYU58qvqfPMCD0PYwg9Q.png" /></figure><p>After you have that set up you can get into writing your test case. We will use the global method, describe. It takes in two arguments, a description of your test sweet and a callback function. Within the callback function we will place our individual test cases. This is similar to writing your test case for basic unit test, but the syntax is a little different and we need a wrapper variable that will mock the component being tested. This wrapper variable will be equal to the shallow render function, which takes in a component as an argument. We also have matchers that are provided to us for shallow rendering. In the case below we are using “.toMatchSnapshot()”. This is a matcher provided to us by Jest. When using this matcher, the first time the test is ran, Jest creates a file with a snapshot of the HTML code. Every time after, Jest will compare the test case to the snapshot file that was created. You want to be careful with this matcher because if the implementation of the code changes, you must be sure that the snapshot file gets updated, or else your test will fail.</p><p>The individual tests within our describe method will be “it” methods. The “it” method, again, takes in a description of what this test is checking for, and a callback function which will contain our wrapper variable and the matcher that will be used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TsZ3LCwMuRovC6KrrlYzjw.png" /><figcaption>“shallow()” takes in a component as an argument.</figcaption></figure><p>Now let’s say we have another component that renders our police components. We want to make sure that this parent component renders the correct amount of child components. We can do so, by creating a test file for the parent component, then we will import the parent file and the child file into this test file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eQ2b173EjKvI6taYejg8w.png" /></figure><p>Then we will create our describe method which will describe our Polices component. We will create an “it” test case that will test if the proper amount of Police components are created. First we want to create out mock Polices data, in this case we have an array of Police objects. Then we create our wrapper variable that holds our shallow render method, taking in a Polices component as an argument. Next we implement our matchers. For this test case we are using two matchers. So we have our toBe() matcher that will check to see if the expected argument matches the test case argument. Our expected argument, in this case, takes our wrapper variable and uses the .find() enzyme matcher to see find when the Polices component creates Police components. This returns a shallowWrapper, which is a wrapper housing all of the new nodes. We call .length on this new wrapper to get a count of the number of nodes and we are comparing that value to the length of our mockPolices variable data that was created. The two should be the same value if it is being rendered properly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WOATnW_k9nCMe5M7sDHdpQ.png" /></figure><p>Some other helpful enzyme matchers that could be used are:</p><p><strong>.props()</strong> — returns the props of the wrapper node that you call this matcher on.</p><p><strong>.get(index)</strong> — returns the node at the given index.</p><p><strong>.parent()</strong> — returns the parent node of a specified node within your wrapper variable. (It will not be able to find a parent node that is not included in the shallow render)</p><p>These are just a few of the enzyme matchers. A complete list of the shallow render matchers can be found <a href="https://enzymejs.github.io/enzyme/docs/api/shallow.html">here</a>. To run the tests you can run “npm test” in the terminal and the tests will run every time a change is saved. The tests will show the same as was shown in the previous article. Avoid the red, and chase the green!</p><p>This was just a small dip into testing within your React app with Jest. I highly suggest you look into the docs for both Enzyme and Jest to get familiar with other ways to implement tests within your project. But until next time, Happy Coding/Testing!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FUWZnF9wQeUiaI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FUWZnF9wQeUiaI%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FUWZnF9wQeUiaI%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/7839e6dd57dc951e5bce975f96e6f752/href">https://medium.com/media/7839e6dd57dc951e5bce975f96e6f752/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2deca71a515d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/unit-testing-with-jest-in-javascript-part-ii-react-2deca71a515d">Unit Testing With Jest in Javascript, Part II — React</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unit Testing With Jest in Javascript, Part I]]></title>
            <link>https://medium.com/swlh/unit-testing-with-jest-in-javascript-part-i-cf5b79359cc6?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf5b79359cc6</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[jest]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Mon, 21 Sep 2020 02:37:42 GMT</pubDate>
            <atom:updated>2020-09-30T22:45:05.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RDDum6c6L9tnVzwKzooOuw.png" /></figure><p>Everyone talks about the advantages of being able to write tests and while I have learned how to read tests, I have never really taken the time to write tests for any of my projects. Tests are important for a wide number of reasons: they allow us to quickly identify issues within our code, they also ensure we are properly separating our functions to only perform one job, and they help provide a clear understanding of what the code should do, among other things. So I decided to spend today learning the ins and out of using Jest and creating test cases so that I may add unit tests to my projects.</p><p>With that being said, today I am going to take you through a little walk through of getting started with unit testing and hopefully by the end of this you will be able to go back to some of your projects and add some tests of your own.</p><p>First things first, I highly suggest you take a look at the <a href="https://jestjs.io/docs/en/getting-started">docs</a> for Jest. They are pretty beginner friendly and straight forward. Next, you can install Jest by running either: yarn add — dev jest OR npm i — save-dev jest (please note, it should be *dash dash*dev/*dash dash*save). You must have a package.json file in order to use Jest. If you do not have one, you can run npm init.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*G1aTarW7bY44UAWhOGLTsg.png" /></figure><p>Once your environment is set up with Jest, you can either start off by writing some tests for functions you intend to write, or if you are adding tests to an existing project, write out tests for the functions you wish to test. This leads me to the question of “what should I be testing?”. Some common rules for understanding what to write tests for are as follows: (1) your test should only be testing for one thing, (2) look for parts of your code that require a specific outcome, (3) write test cases for any bugs you may encounter. These are just a few points to get you thinking.</p><p>Let’s go over some common naming rules. You want a test file for each file you have in your code. The test file name should match the code file name with the exception that it should end in “.test.js”, as you can see in the following photo. Just as you want functions to be separated between files, your tests should follow the same rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*NP2lqU5PVtQPHtNh85YkHw.png" /></figure><p>Once you have written your function, this could be just initializing a function or actually writing the entire function out, you want to make sure you are exporting the function so that it may be then imported into out test file for use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*GtHyWXep3cO7zG9D5V-h3w.png" /></figure><p>Once you have a function in mind to test, you will go to your test file and import the file you are testing. To create a test you will use a Jest function called test(). This function takes in 2 arguments, the first is a string stating what is being tested, this will show in the terminal when you run your tests, second is an arrow function containing matchers that will test your code. A matcher is Jest code that tests your functions for specified values. You can find a complete list of the provided matchers in the Jest documentations; today we will go over a few. For our above example, if we pass in values 1 and 2 to the sum function we expect it to be 3. What does that look like in test code?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RL8RJVFTyYVMi1qkPuZ28g.png" /></figure><p>So now that you have written your first test code, how do you run it? In your terminal you can run npm test and the test case will run. After running, you will either see “failed” in red or “passed” in green, along with the string argument you passed to your test and the amount of time it took to execute the function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7hdKuh2fPa8fkTW8Y4ZoeA.png" /></figure><p>And it is that simple! The hardest part is probably knowing what to test, but like with everything in life, practice makes perfect. The more you code and write tests the better understanding you will have of what to test. And even if you don’t catch all edge cases, you can always add more tests later on when you run into bugs.</p><p>So, above we used the “toBe” matcher, this is best used for functions that have an exact equality. This also takes into account where in space it is located, therefore if you need to check for the value of an object this will not work. At this point, you will need to use the “toEqual” matcher.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*KoV6ERb186K7iTAxN_QusQ.png" /></figure><p>This duplicate function, in a sense, will return the same value that was passed in as an argument, but what is being returned actually takes up a different space in memory. Therefore, if we used “toBe” the test would fail, hence why we use “toEqual below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8im2Lh7okklcSrBK0Dxdww.png" /></figure><p>Another matcher that is often used is when we want to be sure something does not equal a particular value. To do so, we can add “not” to our “toBe” matcher as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFX-dPi9-qHXB6FXiZiwew.png" /></figure><p>Today I just wanted to give a slight introduction to testing with Jest in Javascript. There are many useful matchers that can be used with Jest and I highly recommend looking over them and learning how you can use them in your projects. Next week we will go over using Jest with React. As projects get more complicated, you may need to create mock functions to test your code base. This takes a little time to get used to, but will pay off in the long run and save you time when debugging.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf5b79359cc6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/unit-testing-with-jest-in-javascript-part-i-cf5b79359cc6">Unit Testing With Jest in Javascript, Part I</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Maximize Your Coding Bootcamp Experience]]></title>
            <link>https://yahjairav.medium.com/how-to-maximize-your-coding-bootcamp-experience-f2fbe2c87b8e?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f2fbe2c87b8e</guid>
            <category><![CDATA[coding-bootcamp-students]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 15 Sep 2020 00:34:15 GMT</pubDate>
            <atom:updated>2020-09-15T00:34:15.060Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vJY3xQeFfVqL1UNlqQVVzg.jpeg" /></figure><p>I am a coding bootcamp graduate and I must say it was the most rewarding experience for a multitude of reasons: I learned a lot, found my passion, made amazing friends, among many other things. But I must say, there are some things I would have maybe done a little differently if I could do it all over again. So I am here today writing this blog, to hopefully help a future coding bootcamper.</p><p>So I want to start off by saying, you only get as much as you put in, not only with bootcamps, but with coding in general. If you do not practice, you will not excel. If you do continue to learn new things, you will stay stagnant. The world of coding is ever evolving and you have to be able to continuously learn and teach yourself new things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uE2aX_dy4-NN0ABFAJVWA.jpeg" /></figure><p>That being said, when you are going through a bootcamp, there is little time to learn things outside of your curriculum. It is intense, especially if you go full time immersive. So how do you maximize? Well, for one, I would highly recommend setting at least an hour a day to learn an algorithm, maybe through LeetCode or HackerRank; there are many online resources to practice with. This is going to ease so much stress when you begin your job hunt. You will be prepared for the algorithmic questions on technical interviews and overall have more confidence in your abilities. Unfortunately coding bootcamps do not typically dive into data structures and algorithms so this is usually something we are left to teach ourselves at the end.</p><p>Another thing I would recommend doing while going through a bootcamp is networking. Get your LinkedIn network up so that you have more people in your corner to reach out to when you begin your job hunt. How can you do this? For one, if you can make the time, try to attend meetups and make a connection with at least one person. You can also do some research on LinkedIn on companies you would like to work for and connect with recruiters at the company or employees who hold the position you hope to one day have. Finding a job after graduation will be a process, but by having a network that you can reach out to for intel, you will have an upper hand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bEJApmyfj5VrdspE0P1S-w.jpeg" /></figure><p>Last bit of advice I have would be to be strategic with your projects. Pick projects based on the direction you want your career to go. Also, always implement at least one new concept you did already learn through the curriculum. Why? These projects are a learning opportunity. This is the time you want to stretch and test your abilities and learn new things. Even if your project does not turn out picture perfect, you can always go back and clean things up after the fact. This is also a good conversation starter when interviewing, showing your ability to teach yourself new things, even under pressure.</p><p>I hope these three tips help you maximize your coding bootcamp experience. I just want to re-iterate that my coding bootcamp was great and I would definitely recommend to others, but please do your research on the program. Make sure the curriculum fits your future goals and the school has good reviews. If you have any questions about my particular experience, please do not hesitate to reach out to me on <a href="https://www.linkedin.com/in/yahjaira-vasquez/">LinkedIn</a>! Happy Coding :)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvK_JaRMB9a_sBsSqHI0Gw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f2fbe2c87b8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Helpful Built-In Ruby Array Methods]]></title>
            <link>https://yahjairav.medium.com/helpful-built-in-ruby-array-methods-cd3e4bc36fcf?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd3e4bc36fcf</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 03:59:20 GMT</pubDate>
            <atom:updated>2020-09-08T03:59:20.546Z</atom:updated>
            <content:encoded><![CDATA[<p>Ruby has many built in functions that are save us from writing out long code and I am unsure about you, but I know I do not explore them enough. I have my set few that I use consistently, but today I wanted to mention some that are not necessarily commonly used geared towards arrays.</p><h3>Append</h3><p>Appending to arrays is very common, but typically people use ‘.push()’. There is nothing wrong with this, it gets the job done. But for those who like to minimize the amount of typing they do there is a simple append symbol (‘&lt;&lt;’) that can be used. On the left of the append symbol you have the array or variable array and to the right of the append symbol is what you would like to add the end of the array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*gk1Vgq5rHz7LqgBOvCVX5A.png" /></figure><h3>Set Intersection</h3><p>Set intersection (‘&amp;’) compares two arrays and returns a new array of the unique elements that occur in both array. There will be no repetitive numbers displayed in the new array returned. This method can save you lines of codes next time you are trying to find common points in two arrays. To implement you simply need to have two array, separated by the ampersand symbol (‘&amp;’).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*7wh847W9mW56Tuw2YMKX8g.png" /></figure><h3>Difference</h3><p>The array difference method is opposite of the set intersection. The array difference method returns a copy of the original array with the values that appeared in the argument array/s removed. The array that is return also does not provide only unique values, therefore there may be some repetition, if original array has values that are repetitive. You can also compare an array with more than one other array. Let’s say you want to compare three arrays. You simply pass two arrays as arguments to the difference method and the method will return the original array minus any values that appeared in the argument arrays.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3LQ2kzZm0RL1cN3gU8u-Q.png" /></figure><h3>Include?</h3><p>The include method is definitely a part of my often used methods, but I thought it is worth the mention here. This method is helpful in determining is a certain value can be found inside of a given array. This method does return a boolean value, helping to determine if the array does or does not include the value. To set this up, all you need is an array, then pass in the value you want to check for as arguments to the include? method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*PJlADcMtxQPO1rBIojE5Ew.png" /></figure><h3>Permutation</h3><p>Permutation will find all possible permutations of an array. It returns an enumerator instance, therefore you want to make sure you call ‘.to_a’ after your method to ensure an array is returned. If no argument is given, all of the possible permutations will be returned, but if you pass in a number as an argument to the method, an array of permutations will be return with the length of the number passed as the argument. This could definitely come in handy when taking technical interviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TlCTlGbn29S2JDDXSA9GhQ.png" /></figure><h3>Product</h3><p>Product is used to find all possible combinations between two or more arrays. This will return a new array of arrays. to set this up you call ‘.product()’ on an array, then pass in any number of arrays as an argument to the product method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vFoyK80ek00vSueKy80BxA.png" /></figure><h3>Uniq</h3><p>Uniq is another method that I use quite often, but definitely is worth the mention here. Uniq cleans up your array to only show unique values, therefore there will be no repetitive values. It is very quick and easy to implement. Just call ‘.uniq’ after any array you would like to apply this method to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/754/1*bbBmOYIEpVNlPK_2SKQDBg.png" /></figure><h3>Set Union</h3><p>The last method I would like to mention here today is the set union (‘|’) method. This method return a new array, joining to arrays and only providing uniq values. This method is pretty straight forward, to implement you just need to array separated by the vertical bar (‘|’) symbol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*KZPqH2usyff9-ZKk6IltFA.png" /></figure><p>These are just a few of the many methods ruby has provided us with. I hope that this has inspired you to dive a little deeper to find some new methods you can use in your next project or coding challenge. Ruby has provided many methods to make our lives easier, we just need to do a little research to find a method for our needs. If you would like to do a little more research of your own or read more about the aforementioned methods, you can find all of the information <a href="https://ruby-doc.org/core-2.7.0/Array.html#method-i-product">here</a> in the Ruby docs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd3e4bc36fcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Structures]]></title>
            <link>https://yahjairav.medium.com/data-structures-62592951fe54?source=rss-1c5ec491b1c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/62592951fe54</guid>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[algorithms]]></category>
            <dc:creator><![CDATA[Yahjaira Vasquez]]></dc:creator>
            <pubDate>Tue, 01 Sep 2020 00:07:38 GMT</pubDate>
            <atom:updated>2020-09-01T00:07:38.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FrqXLfA2ZmV8aIQU_hm9mg.png" /></figure><p>Let us learn about data structures and the best use cases. First off, what is a data structure? Data structures are how we organize, store, and retrieve data. Knowing when and how to appropriately use each data structure is important for ensuring your code efficiently uses time and space. Other things to consider: some data structures may run quicker, but take up more space, while others may take up less space, but run a little slower. You must always consider the trade offs of each use case and decide which is more beneficial for the company/code base.</p><p>That being said, let’s jump into the different kind of data structures and what they are most commonly used for.</p><h3>Linear Data Structures</h3><p>Linear data structures are single leveled data structures, for which each element is connected to the previous and next element. Linear data structures include: arrays, stacks, queues, and linked lists.</p><h4>Array</h4><p>Arrays have a grid like structure. The elements of an array are stored next to each other in memory. When using an array, all of the elements must be of the same data type (i.e. integers, strings, or booleans etc.). When creating an array, you want to define the size of the array, so that this space in memory may be reserved. This can be a negative aspect of arrays because, you can be left reserving unused space in memory, also, if you want to add to the size of the array it is inefficient because then a new space in memory must be found to fit the size of your array because elements of an array are store contiguously.</p><p>Arrays are best for basic spread sheets or for creating linear data structures that you may know the exact size of. Arrays are also useful for instances where you will need access to elements and you know the index of the element. Arrays are also faster to iterate through, than say, linked lists. Arrays are also great for combining within other data structures.</p><h4>Linked List</h4><p>Link lists are similar to arrays, but the elements of the list are not stored contiguously. The elements, referred to as nodes, are spread out, with each individual node pointing to the next node in the list. Because each node points to the next node in the list, the nodes may be spread throughout memory. A negative to linked lists can be that it takes up a bit more space than arrays because the node must document the current element, referred to as data, as well as the next element in the list, referred to as the pointer.</p><p>Linked lists are especially useful for cases where you may not have an exact size for your list, therefore the expansion of the list is anticipated. Another great use case for linked lists would be when you need to add nodes to the beginning or middle of your list.</p><p><em>One thing to note with linked lists, this data structure is not necessarily included with all coding languages. For instance, in Ruby, there are no linked lists, arrays act as linked lists. There are also ways to create linked list like structures in languages such as Ruby and Javascript, but I will leave that to you to further research.</em></p><h4>Queue</h4><p>Queues can be thought of like a line at the grocery store. They have a FIFO method. This means, that items first placed in the list will be the first to be removed from the list. Back to the line at the grocery store, there are five people in the line. The first person who entered the line will be the first person attended to, as well as the first person to exit the line and will continue in this sequential order.</p><p>Queues are great for any algorithms that require FIFO methodology.</p><h4>Stack</h4><p>Stack is comparable to a queue, but it follows a LIFO method, meaning last item in is the first to be removed from the list. You can think of a stack like a can of Pringles. The last chip inserted to the stack is the first chip you get when you open the can. You can’t remove from the middle of the stack, unless you remove all the chips that were placed on top/after of the middle chip.</p><p>That being said, stacks are great for any algorithms that require LIFO methodology. Stack is also great for undoing, as well as reversing order.</p><h3>Non-Linear Data Structures</h3><p>Data structures that are not organized in a single level or linearly, are known as non-linear data structures. Non linear data structures are not the easiest to traverse, as they cannot be traversed with one run, making them not the best data structures to use when time complexity is the focus. Non-linear data structures are best used when space complexity is your focus. They tend to better utilize space in memory, making them great for AI and Machine Learning. The two non-linear data structures we will be discussing are graphs and trees.</p><h4>Graph</h4><p>Graphs are data structures that consist of edges and vertices. Vertices can be describes as specific points on the graph, where edges are the paths to connect two points. Graphs are commonly used for networks, such as social media friends lists, apps providing directions to and from locations, internet networks, etc. While graphs are great for maintaining connections, most graphs lack in scalability.</p><h4>Tree</h4><p>Trees are also used for representing relationships. They are mostly used for representing hierarchical relationships. They share similarity to linked lists, in that each node points to its child nodes, but each child node does not contain any information regarding its parent node. Trees are great for inserting and deleting nodes, but can be more challenging when trying to rearrange nodes. As stated before, best use case for trees would e for data that needs to be stored hierarchically.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62592951fe54" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>