<?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 Netaly Ramirez on Medium]]></title>
        <description><![CDATA[Stories by Netaly Ramirez on Medium]]></description>
        <link>https://medium.com/@21netaly?source=rss-6c7358081362------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uBAMB7NJsOcVhx-GslRGuQ.jpeg</url>
            <title>Stories by Netaly Ramirez on Medium</title>
            <link>https://medium.com/@21netaly?source=rss-6c7358081362------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 02:00:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@21netaly/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[Try Throw Catch]]></title>
            <link>https://21netaly.medium.com/try-throw-catch-302fc22947e1?source=rss-6c7358081362------2</link>
            <guid isPermaLink="false">https://medium.com/p/302fc22947e1</guid>
            <category><![CDATA[asynchronous]]></category>
            <category><![CDATA[try-catch]]></category>
            <category><![CDATA[javasc]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Netaly Ramirez]]></dc:creator>
            <pubDate>Fri, 07 May 2021 04:29:18 GMT</pubDate>
            <atom:updated>2021-05-07T04:29:18.345Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Controlling the flow of your statements can also be handled using Try, Throw and Catch in your blocks of code.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QYNcFySk6DQmVSZ_" /><figcaption>Photo by <a href="https://unsplash.com/@frankielopez?utm_source=medium&amp;utm_medium=referral">Frankie Lopez</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In JavaScript our code is often wrapped in curly’s ({} ), these are our blocks of code. Statements such as if...else or while...for to name a few help ensure our code has a distinct flow. What happens if your function returns to you an error? Often times, JavaScript will <strong>throw</strong> you a bone and prevent your function from causing havoc. You might even be able to get a hint on where to look for your error. This is what JavaScript refers to as <strong>throwing an exception, </strong>or<strong> </strong>throwing you an error object. On how to edit your error message click <a href="https://www.w3schools.com/js/js_errors.asp">here</a>.</p><p>This is where our try...catch comes into play. For comparison think of a try...catch block as football offensive play. The goal is to try to get a touchdown or at least gain a few yards to get closer to that end goal. In this way this play is our try or attempts in our block of code. If all else fails we need to catch the ball in order to keep attacking another day. In our case the catch block will handle the case in which we fail.</p><p>Heres the layout for your try...catch blocks:</p><pre><strong>try{</strong><br><em>//Insert what you want your code to run and attempt here</em><br><strong>}</strong><br><strong>catch (exceptionObject) {</strong><br><em>//What do you want to happen if the code breaks/fails<br>//The the error that is being &#39;handled&#39; can be passed as <br>// an argument in your catch block<br></em><strong>}</strong></pre><pre>** <strong>HINT:</strong> if you want to see what error you are getting back best practice states to <strong>console.error(<em>exceptionObject</em>)</strong> within your catch block instead of using a <strong>console.log(<em>exceptionObject</em>)</strong></pre><h4>When to use Try, Catch, Throw?</h4><ol><li>Handling database Transactions such as CRUD functionality like creating a new user in your DB.</li><li>When handling asynchronous effects/events</li></ol><p>Over all use catch to handle an exception/error when you can expect a failure. These are usually from systems or apis you are trying to access. Brownie points for knowing how to handle them, try not to leave it as a log. JavaScripts safety net is awesome! try catch gives you that extra insurance that the entire app doesn’t burst into flames.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=302fc22947e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use your MakeStyles!]]></title>
            <link>https://towardsdev.com/use-your-makestyles-7d347f9a3e96?source=rss-6c7358081362------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d347f9a3e96</guid>
            <category><![CDATA[material-ui]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[destructuring]]></category>
            <category><![CDATA[styled-components]]></category>
            <category><![CDATA[makestyles]]></category>
            <dc:creator><![CDATA[Netaly Ramirez]]></dc:creator>
            <pubDate>Sat, 13 Mar 2021 01:12:40 GMT</pubDate>
            <atom:updated>2021-04-05T19:26:33.959Z</atom:updated>
            <content:encoded><![CDATA[<h4>makeStyles package basics, offered by Material UI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XI7LCoB8-vVdeepX" /><figcaption>Photo by <a href="https://unsplash.com/@federicorespini?utm_source=medium&amp;utm_medium=referral">Federico Respini</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When using <a href="https://material-ui.com/styles/basics/">Material Ui</a>, you get access to a bunch of different tools on top of styled components. makeStyles is a function that allows you to use JavaScript to styles your components. makeStyles uses JSS at its core, this essentially translates JavaScript to CSS. What makes this a great option is that it runs when the page is requested on the server side.</p><h3>1. Importing</h3><p>In order to use makeStyles function in your application you will need to import it in the component in where you plan to access the css that results from your makeStyles function. This is assuming you have already installed Material Ui in your project.</p><pre>*//* <em>../src/yourComponent.js</em></pre><pre>import { makeStyles } from &#39;@material-ui/core/styles&#39;;</pre><p>If you wish to separate your styles file from your main component you will still need to import makeStyles . If you do decide to separate styles from your component you will need to name it like so IE: yourComponent.styles.js <br>This is in order for react to recognize it as a styles file. Conventionally you can assign makeStyles to a variable called useStyles but it is up to you.</p><h3>2. The Arguments</h3><p>makeStyles accepts a function as an argument with return value being an object with the key value being the className or id. The className in turn should be in reference to the selector that is being styled. The value for the class should also be an object but with your regular css styling.</p><pre>import React from &#39;react&#39;;<br>import { makeStyles } from &#39;@material-ui/core/styles&#39;;<br><br>const useStyles = makeStyles({<br>  <em>yourClassName</em>: {<br>    background: &#39;linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)&#39;,<br>    border: 0,<br>    borderRadius: 3,<br>    boxShadow: &#39;0 3px 5px 2px rgba(255, 105, 135, .3)&#39;,<br>    color: &#39;white&#39;,<br>    height: 48,<br>    padding: &#39;0 30px&#39;,<br>  },<br>});</pre><p>I would like to point out that css properties like border-radius, or box-shadow are recognized by changing them to camel case. Additionally the value for the properties finish with a , instead of the usual ; after each style.</p><h3>3. Destructuring</h3><p>For better clarity and easier accessibility I highly recommend <a href="https://wesbos.com/destructuring-objects">destructuring</a> the object you receive from makeStyles or useStyles. Destructuring allows you to extract multiple properties at a time from and object or array. Below makeStyles is created, and exported as useStyles, in a different file to ensure separation of concerns. useStyles is then invoked and assigned to classes, which can now be destructured in the following line.</p><pre>*//* Subheader.styles.js<br>const useStyles = makeStyles(() =&gt; ({...}));<br>export default useStyles;</pre><pre>*//* ./Subheader.js</pre><pre>import useStyles from &#39;../Subheader/Subheader.styles.js&#39;;<br></pre><pre>export default function Subheader() {</pre><pre>const classes = useStyles();</pre><pre>const {<br>  subheaderContainer,<br>  subheader,<br>  subheaderItems,<br>  subheaderIcon,<br>  mainText,<br>  subText,<br>  closeIcon,<br>} = classes;</pre><pre>return (</pre><pre>&lt;div className={ subheaderContainer }&gt;<br>   &lt;div className={ subheader } &gt;<br>     &lt;div className={ subheaderItems }&gt;<br>       &lt;div className={ subheaderIcon }&gt; an imaget &lt;/div&gt;<br>     &lt;/div&gt;<br>   &lt;/div&gt;<br>&lt;/div&gt;<br>)}</pre><p>Assigning an object with all the <em>classNames</em> created in our makeStyles function, we can now give each element their corresponding className instead of having to use dot notation. Ie: classes.subheaderContainer</p><h3>4. Passing Arguments</h3><p>Depending on what route you end up choosing you can pass arguments into useStyles or your makeStyles in order to adapt your style depending on a condition.</p><pre>*//* ./Subheader.js<br>import useStyles from &#39;../Subheader/Subheader.styles.js&#39;;</pre><pre>export default function Subheader() {<br>const classes = useStyles( props );<br>....<br>}</pre><p>Take for example the <em>subheader</em> className created below, if the background color should be dependent on where it is being used, pass the color as an argument. Access the argument in the style section with a the help of an arrow function.</p><pre>...<br> subheader: {<br>   display: &#39;flex&#39;,<br>   flexDirection: &#39;row&#39;,<br>   alignItems: &#39;center&#39;,<br>   justifyContent: &#39;center&#39;,<br>   height: &#39;90px&#39;,width: &#39;100%&#39;,<br>   backgroundColor: ( props ) =&gt; props.color,<br>   top: &#39;64px&#39;,<br>   borderRadius: &#39;0px&#39;,<br>   overflow: &#39;hidden&#39;,<br>},</pre><pre>...</pre><p>This is great if you are attempting to make a component more versatile and modular.</p><h3>5. Theme</h3><p>makeStyles comes with the option of passing theme as an argument. Theme in turn comes from a preset object created by material UI which can be found <a href="https://material-ui.com/customization/breakpoints/">here</a>. This is a great option if you are attempting to make your component responsive since theme comes with preset breakpoints that you can access for your styling.</p><pre>const styles = theme =&gt; ({<br>  root: {<br>    padding: theme.spacing(1),<br>    [theme.breakpoints.down(&#39;sm&#39;)]: {<br>      backgroundColor: theme.palette.secondary.main,<br>    },<br>    [theme.breakpoints.up(&#39;md&#39;)]: {<br>      backgroundColor: theme.palette.primary.main,<br>    },<br>    [theme.breakpoints.up(&#39;lg&#39;)]: {<br>      backgroundColor: green[500],<br>    },<br>  },<br>});</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g3gTBmShCyIvh7aesgPoJw.png" /></figure><p>Break points are great when attempting to create a website that is mobile friendly. By using the predetermined points engineers can focus more on the nitty gritty details of what to place inside the component.</p><p>Material Ui offers a ton of functionality when it comes to working along side with react. For those of us who have difficulty with css Material Ui is a great companion.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d347f9a3e96" width="1" height="1" alt=""><hr><p><a href="https://towardsdev.com/use-your-makestyles-7d347f9a3e96">Use your MakeStyles!</a> was originally published in <a href="https://towardsdev.com/">Towards Dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mini Iteration Crash Course JavaScript]]></title>
            <link>https://21netaly.medium.com/mini-iteration-crash-course-javascript-8699e82af01c?source=rss-6c7358081362------2</link>
            <guid isPermaLink="false">https://medium.com/p/8699e82af01c</guid>
            <category><![CDATA[codingbootcamp]]></category>
            <category><![CDATA[callback-function]]></category>
            <category><![CDATA[sorting-algorithms]]></category>
            <category><![CDATA[sorting]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Netaly Ramirez]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 00:06:51 GMT</pubDate>
            <atom:updated>2020-10-09T13:25:02.623Z</atom:updated>
            <content:encoded><![CDATA[<h3>Crash Course</h3><h4>A mini guide on JavaScript array iterators</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fXvHpWJlKPkkzqgi" /><figcaption>Photo by <a href="https://unsplash.com/@breakfast_on_jupiter?utm_source=medium&amp;utm_medium=referral">Aleksandr Ledogorov</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>JavaScript Iterators can be a difficult bunch and as such need to be handled with care. However, when you understand them and care for them they become some of the best tools in your programing belt. Iterators are often used on arrays to process each element in the array and can returns a result once it has fully ran its course. Iterators often expect a function as its argument, for simplicity i will demonstrate with arrow functions.</p><p>It’s important to keep in mind that each Iteration has its own set of rules and regulations, and results may vary.</p><h4><strong>.find()</strong></h4><p>The find function will check each element in the given array with information that is given inside the brackets. The find function however is lazy and will stop when it finds the first element the meets the given condition.[element1, element2, element3].find()will return to you that element without mutating that original array.</p><pre><strong>let wizArray = [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</strong></pre><pre><strong>wizArray</strong>.<strong>find(</strong> <strong>strongWizard =&gt;</strong> <strong>{<br></strong><em>//conditional function to check against each element<br>// &quot;Harry&quot;.length &gt; 3?<br>// this is true &#39;I&#39;m done!&#39;</em></pre><pre><strong>return strongWizard.length &gt; 3<br></strong><em>//this is returning the element the meets the criteria notice if it finds one thats where it stops<br></em><strong>} )</strong></pre><pre>// <em>this will return: Harry</em></pre><pre><em> console.log(wizArray)<br>// this will log: [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</em></pre><h4>.filter()</h4><p>Don’t be fooled the filter function may look similar to the find function, yet it yields different results. .filter() will go the extra mile and continue to check every element in your array against your given condition. For every element that evaluates to true it will will return that element in a new array.</p><pre><strong>let wizArray = [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</strong></pre><pre><strong>let newWizArray = wizArray.filter( strongWizard =&gt;</strong> <strong>{<br></strong><em>//conditional function to check against each element</em></pre><pre><em>// &quot;Harry&quot;.length &gt; 3?<br>// </em>&quot;Ron&quot;<em>.length &gt; 3?<br>// &quot;Hermione&quot;.length &gt; 3?</em></pre><pre><strong>return strongWizard.length &gt; 3<br></strong>// this is returning every element that meets the criteria </pre><pre><strong>})</strong></pre><pre><em>//this will return: [&quot;Harry&quot;, &quot;Hermione&quot;]<br> <br>console.log(wizArray)<br>// logs: </em>[&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</pre><pre>console.log(newWizArray)<br>// logs: <em>[&quot;Harry&quot;, &quot;Hermione&quot;]</em></pre><h4>.map()</h4><p>Now for my recent favorite, the map function. This little hero will grab each element in an array and process it by the callback function you give it. .map() will make a copy of the element, do the action described in your function and return to you a new array with the effected elements.</p><blockquote><em>Want to read this story later? Save it in </em><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=blog&amp;utm_campaign=noteworthy&amp;utm_content=eid7"><em>Journal</em></a><em>.</em></blockquote><pre><strong>let wizArray = [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</strong></pre><pre><strong>wizArray.map( wizard =&gt; {<br> </strong><em>//(remember param here is wizard will reference the element in the array)</em><strong> <br>  return wizard + &quot; wand at the ready!&quot;<br>})</strong></pre><pre><em>//returns: [&quot;Harry wand at the ready!&quot;, &quot;Ron wand at the ready!&quot;, &quot;Hermione wand at the ready!&quot;]</em></pre><pre>console.log(wizArray) // logs: [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</pre><p><em>but wait theres more…</em></p><pre><strong>let wizArray = [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</strong></pre><pre><strong>wizArray.map( wizard =&gt; {<br> </strong><em>//(remember wizard is just the element in the array)</em><strong> <br>  if(wizard.length === 3){<br>   return wizard + &quot; Weasley&quot;<br>  }<br>  return wizard<br>})</strong></pre><pre>//returns: [&quot;Harry&quot;, &quot;Ron Weasley&quot;, &quot;Hermione&quot;]</pre><pre>console.log(wizArray) // logs: [&quot;Harry&quot;, &quot;Ron&quot;, &quot;Hermione&quot;]</pre><p>If you only want to change one element in your array but keep the rest, no problem. Set up a condition in your .map() for the element you want to alter change it and return it. In your else statement make sure to return the param. Essentially what you are telling the your map function to do is:</p><p>if the element meets the condition</p><p>this will allow .map() to continue to do it for the rest of the elements, if you don’t want it to change/update any of the other elements just return that element and BAM you have a new array with an updated element.</p><h4>.sort()</h4><p>The .sort() function acts on the original array, and will mutate your original array. The .sort() function acts on an array and accepts a callback function , other wise known as the comparator function, as an argument. Under the hood what sort() does is by comparing their UTF-16 character code. This code is essentially a value that is assigned to each symbol/letter. For example the letter b is assigned the value of 96, and the value of “P” is given 80, you can test this out using &quot;yourstring&quot;.charCodeAt() . The CharCodes is what .sort() organizes by.</p><pre>const letters = [&quot;b&quot;,&quot;P&quot;,&quot;a&quot;]</pre><pre>letters[0].charCodeAt() // returns: 98<br>letters[1].charCodeAt() // returns: 80<br>letters[2].charCodeAt() // returns: 97</pre><p>The comparator function also allows us to sort numbers, and even objects more effectively. The comparator function often accepts 2 arguments.</p><pre><strong>const comparatorFunction = (a,b) =&gt; {</strong><br><em> // a represents the first element in your array, while be represents the next element</em></pre><pre><em>//this will have the sort function sort by the size of the result</em><br>    <strong> return a - b</strong><br><strong>}<br></strong><em>// if the a - b returns to you a negative number, &quot;b&quot; is greater than &quot;a&quot;. the result of the sort will place &quot;a&quot; first.<br>the comparison is then done to the rest of the elements</em></pre><p>Lets see in an object.</p><pre>let wizInfo = [<br>{ name:&quot;Harry&quot;, age: 15},<br>{ name:&quot;Ron&quot;, age:16},<br>{ name:&quot;Hermione&quot;, age:14}<br>]</pre><pre><em>//if you want to sort by the length of the name</em></pre><pre>wizInfo.sort((a, b) =&gt; {<br>  <em>//length returns to you the length of the string</em><strong><br>     return</strong> a.name.length - b.name.length<br>})</pre><pre><em>//returns: [<br>{ name:&quot;Ron&quot;, age:16},<br>{ name:&quot;Harry&quot;, age: 15},<br>{ name:&quot;Hermione&quot;, age:14}<br>]</em></pre><p>If you set up the comparator function to a — b then if it returns a negative number it will be returned first setting up the array to be in ascending order. Other wise if you have the comparator function to b-a it will set up the array in descending order.</p><h4>More from Journal</h4><p>There are many Black creators doing incredible work in Tech. This collection of resources shines a light on some of us:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fusejournal.com%2Fapp%2Fembed%2Fjournal%3Aspace%3Aproject%2F5c84f6f0-715c-48b8-9387-9e74f33b7a7b&amp;display_name=Journal&amp;url=https%3A%2F%2Fusejournal.com%2Fapp%2Fspace%2Fjournal%3Aspace%3Aproject%2F5c84f6f0-715c-48b8-9387-9e74f33b7a7b&amp;image=https%3A%2F%2Fimperio.usejournal.com%2Fimage%2Fjournal%3Aspace%3Aproject%2F5c84f6f0-715c-48b8-9387-9e74f33b7a7b%2F1602668529%3Fclient%3Dfacebook&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=usejournal" width="900" height="710" frameborder="0" scrolling="no"><a href="https://medium.com/media/ca84c63a615be91123438987244ec06c/href">https://medium.com/media/ca84c63a615be91123438987244ec06c/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8699e82af01c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging Bugging You?]]></title>
            <link>https://medium.com/swlh/debugging-bugging-you-58cbed5b9073?source=rss-6c7358081362------2</link>
            <guid isPermaLink="false">https://medium.com/p/58cbed5b9073</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[debugging-javascript]]></category>
            <category><![CDATA[bootcamp]]></category>
            <category><![CDATA[begginer-tips]]></category>
            <category><![CDATA[debugging]]></category>
            <dc:creator><![CDATA[Netaly Ramirez]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 18:39:13 GMT</pubDate>
            <atom:updated>2020-09-04T22:12:49.465Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginners guide on debugging</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FYFkpsHWCsNUUo%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FYFkpsHWCsNUUo&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2FYFkpsHWCsNUUo%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="394" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c05f51a09df9307397162c97a0e8d60/href">https://medium.com/media/7c05f51a09df9307397162c97a0e8d60/href</a></iframe><p>When I first began my programing journey I was both amazed and baffled by the sheer amount of documentation I would have to sift through. I was given some direction when my friend directed me to some free pre-boot programs. These programs gave me some structure, and practice understanding logic with the help of their test specs. I quickly came to realize that I often began to “code” without fully thinking through my game plan. This as you may already know is crucial in how much time you spend trying to solve a problem or as a result of ill-planning creating your own little army of bugs.</p><h4>1. Read Your Prompt And Understand Your Deliverables</h4><p>Read your problem, then read it again. Take it one step at a time and plan out how to achieve that step. “<em>Computers are as dumb as a rock” — Tracy Collins </em>Computers<em> </em>will take everything you type literally you have been warned. We, however can understand more through less and in so doing, tend to think declaratively. While in order for your program to work effectively you need you to think more imperatively. For example let’s say you go into a Bodega and ask for a BLT, this request is considered declarative. The imperative counterpart would be to request a BLT, on a whole wheat roll with the inside of the bread scooped out, lightly toasted, 1/4 tbs of mayonnaise, bacon cooked well done, and a side of extra sliced tomatoes. One way to get this habit going is to sue-do code your solution/thought process inside your code.</p><h4>2. Read The Error!</h4><p>After reading lines of code for varied amounts of time some things can become out of focus. Read your errors with patience and critical thought. Think, “what is my screen trying to tell me? ”, “Is there something missing?”, and “what can cause this error?</p><h4><strong>3. Check Your Spelling / Check Your Syntax</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/524/1*PNYg4sC8RTPyKIKQZXn6gA.gif" /></figure><p>Simple enough right? You wouldn’t believe how often a simple lowercased letter or a comma can throw your whole logic out the window. If you are anything like me when I first began to code, it is important that you stay cool, calm, and collected in the face of the evil red errors. Take a moment to read over your code, maybe you were just missing a letter.</p><h4>4. Backtrack</h4><p>Think, up to what point was everything working? Take one step back, and comment out the newest segment of code. If your code still won’t run, go to another segment and comment that out. Rinse and repeat until you find which line of code is failing you. These steps will help you narrow down the source of your error. Note: If you are using a mac one way to comment out a large section of code is by highlighting the desired section and cmd + / . This will work in most programming languages.</p><h4>5. Do not be afraid to console.log( )</h4><p>If you have made a function or method that is expecting an argument, now is the time to use console.log()or a debugger. This works wonders when you want to see what you are receiving as an argument. You can even use this as a way to check if your function or method is being properly called 😉. If you don’t get to your debugger or your console.log() your function probably never ran.</p><h4>6. Check Your Scopes</h4><p>Depending on what language you are learning, variables can be accessed differently. That being said, in JavaScript, a variable defined within a function belongs to that function and can only be referred to it by its inner components. For example, you have access to your toilet</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FZGDk9lMkuSDhm%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fcomedy-seinfeld-ZGDk9lMkuSDhm&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FZGDk9lMkuSDhm%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="258" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d686541d2550c734e2af3926136ad4d/href">https://medium.com/media/3d686541d2550c734e2af3926136ad4d/href</a></iframe><p>paper in your bathroom <em>(toilet paper = variable, your house is your bigger function)</em> and you can use that toilet paper in any area in your house. Your neighbor on the other hand can’t come into your home and use your toilet paper for nefarious reasons.</p><h4>7. Make Google Your Best Friend</h4><p>Google will be there for you. Google will treat you right. In Google we trust. Googling your question might work occasionally; however, it may not always yield the answers we are looking for. Instead try to google the action you need, and the programing language you are working in. If you know of certain documentations such as MDN, include that in your search.</p><h4>8. Take a Break!</h4><p>I know it’s hard to take a break when you think you haven’t made any strides in your code. You may feel like you don’t deserve it, but be kind to yourself you do deserve it. A simple trip to your fridge, or even making yourself a drink can give you a new set of eyes to handle your problem. And if you really don’t want to take a physical break, try a different problem.</p><p>Over the course of this year I have become more comfortable with errors. Seeing errors had once filled me with dread and anxiety, but now getting a different error gives me hope. This becomes a sign of progress! Don’t ever be afraid of getting errors, or breaking things. Every error is part of the learning process. Understanding why your code wouldn’t work is imperative for your programing journey. I’ve been recently reminded by a project partner “You have to break a few eggs to make an omelette”. Keep in mind it gets better, you stop making the same mistakes, and instead make new ones! Good luck on your road to becoming a programmer, and may the odds be ever in your favor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58cbed5b9073" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/debugging-bugging-you-58cbed5b9073">Debugging Bugging You?</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>
    </channel>
</rss>