<?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 Barbara Bontempo on Medium]]></title>
        <description><![CDATA[Stories by Barbara Bontempo on Medium]]></description>
        <link>https://medium.com/@barbarabontempo94?source=rss-2ad33a00dcd1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yzvbE6IzqoKCv3EogbyEIA.jpeg</url>
            <title>Stories by Barbara Bontempo on Medium</title>
            <link>https://medium.com/@barbarabontempo94?source=rss-2ad33a00dcd1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:18:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@barbarabontempo94/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[Fun lil’ Animation on Scroll; REACT!]]></title>
            <link>https://medium.com/@barbarabontempo94/fun-lil-animation-on-scroll-react-c0e94077ea8f?source=rss-2ad33a00dcd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0e94077ea8f</guid>
            <dc:creator><![CDATA[Barbara Bontempo]]></dc:creator>
            <pubDate>Tue, 29 Sep 2020 01:11:49 GMT</pubDate>
            <atom:updated>2020-09-29T01:32:49.739Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey friends! Today I am going to quickly show y’all how to make the scroll game on your app a little more fun!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FsWx2NTG9gSjao%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Ffun-sWx2NTG9gSjao&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2FsWx2NTG9gSjao%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="242" frameborder="0" scrolling="no"><a href="https://medium.com/media/d00ecd8ea851da46f344ee8d37351988/href">https://medium.com/media/d00ecd8ea851da46f344ee8d37351988/href</a></iframe><p>Okay, let’s jump into this journey together! The first thing that we need to do is install the magic that is AOS. AOS stands for animation on scroll and you can read all about it in the following GitHub repo: <a href="https://github.com/michalsnik/aos#animations">https://github.com/michalsnik/aos#animations</a>.</p><p>The repo goes over how to install AOS on your app and basically how you can use it, but I am going to try to make it a little simpler for you to implement. In order to install AOS run npm install — save aos@next on your terminal. Once that is done, go to your app and import AOS into your app. You can do this by adding the following: import Aos from “aos” and import “aos/dist/aos.css”. We will also be using useEffect for this animation, so make sure you import that to your file too: import React, {useEffect} from ‘react’;.</p><p>In your useEffect add the following code:</p><pre>useEffect(() <em>=&gt;</em> {<br>   <em>Aos</em>.init({ duration: 3000 })<br>}, [])</pre><p>Inside this function, we created a useEffect. The first thing we do is initialize Aos. Initializing aos gives global animation to each element that you want to animate. So let’s say you have a container of 5 boxes and you want each box to have an animation length of three seconds, we can add { duration: 3000 } to add that 3-second duration for us. Now every box will have an animation length of 3 seconds.</p><p>Awesome! We are ready to WERK! Let’s start by creating a box container and fillin’ her up with some box items!</p><pre>import React, {useEffect} from &#39;react&#39;;<br>import &#39;./App.css&#39;;<br>import Aos from &quot;aos&quot;<br>import &quot;aos/dist/aos.css&quot;</pre><pre><em>function</em> App() {<br>   useEffect(() <em>=&gt;</em> {<br>     <em>Aos</em>.init({ duration: 3000 })<br>   }, [])</pre><pre>return (</pre><pre>   &lt;div <em>className</em>=&quot;App&quot;&gt;<br>    &lt;h1&gt;THE BOXES&lt;/h1&gt;<br>      &lt;div <em>className</em>=&quot;box-container&quot;&gt;<br>      &lt;div <em>className</em>=&quot;box-item&quot;&gt;One&lt;/div&gt;<br>      &lt;div <em>className</em>=&quot;box-item&quot;&gt;Two&lt;/div&gt;<br>      &lt;div <em>className</em>=&quot;box-item&quot;&gt;Three&lt;/div&gt;<br>      &lt;div <em>className</em>=&quot;box-item&quot;&gt;Four&lt;/div&gt;<br>      &lt;div <em>className</em>=&quot;box-item&quot;&gt;Five&lt;/div&gt;<br>     &lt;/div&gt;<br>    &lt;/div&gt;</pre><pre>);<br>}</pre><pre>export default App;</pre><p>With the code above our app should be looking pretty basic like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xpwaS97OosK5MpUSASP7mQ.png" /><figcaption>super-duper cute basic boxes, we getting somewhere I promise!</figcaption></figure><p>In order for us to see our animation in action lets add some basic styling to these boxes! Add the following to your css file:</p><pre><em>.App</em> {<br> text-align: center;<br>}</pre><pre><em>.box-item</em>{<br> margin: 50<em>px</em>;<br> margin-top: 125<em>px</em>;<br> background-color: aqua; <br> overflow: hidden;<br> height: 250<em>px</em>;<br> border-radius: 10<em>px</em>;<br> max-height: 35<em>vh</em>;<br> box-shadow: 0<em>px</em> 12<em>px</em> 18<em>px</em> -6<em>px</em> rgba(0,0, 0, 0.3);<br>}</pre><pre><em>.box-container</em>{<br> max-width: 50<em>%</em>;<br> margin: auto;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*u1AAbd1MDgmnaRYFUBsQKA.gif" /><figcaption>terrible quality gif, but your boxes should look something like this!</figcaption></figure><p>Whoop! We got some boxes up on our app. Take a breath and pat your self on the back, we just started and can you believe we are nearly done?!</p><p>So with the boxes I have, the animations will not work with box 1 and 2 because we already see them on the page before we even have to scroll, so we will be adding the animation to the last 3 boxes! GET HYPE!</p><p>On your box-item divs add the following code. Warning we will be working with some extremely cool fade animation, so yes… GET EXCITED.</p><pre>&lt;div <em>className</em>=&quot;box-container&quot;&gt;<br>  &lt;div <em>className</em>=&quot;box-item&quot;&gt;One&lt;/div&gt;<br>  &lt;div <em>className</em>=&quot;box-item&quot;&gt;Two&lt;/div&gt;<br>  &lt;div <em>data-aos</em>=&quot;fade-up&quot; <em>className</em>=&quot;box-item&quot;&gt;Three&lt;/div&gt;<br>  &lt;div <em>data-aos</em>=&quot;fade-right&quot; <em>className</em>=&quot;box-item&quot;&gt;Four&lt;/div&gt;<br>  &lt;div <em>data-aos</em>=&quot;fade-left&quot;<em>className</em>=&quot;box-item&quot;&gt;Five&lt;/div&gt;<br>&lt;/div&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qjo0HgZa4zOt_PXw8dN5Cw.gif" /></figure><p>LOOK AT THAT SEXY FADE!!! YOU DID THAT!!! NOW YOUR SCROLL GAME IS SO STRONG THAT YOUR APP HAS BECOME UNSTOPPABLE! YOU SUPERSTAR! Also, can you believe you just did all of that in less than 5 minutes? I told you it was going to be quick! Hope you had some fun with this.</p><p>Also here are some other fun animations you can try out (these can all be found on the Github repo I shared above):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*zILfj0OPBENr6wL5vRN59A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0e94077ea8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bootcamp Survival Guide]]></title>
            <link>https://medium.com/@barbarabontempo94/bootcamp-survival-guide-ae3e1b41c45f?source=rss-2ad33a00dcd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae3e1b41c45f</guid>
            <dc:creator><![CDATA[Barbara Bontempo]]></dc:creator>
            <pubDate>Wed, 26 Aug 2020 20:58:52 GMT</pubDate>
            <atom:updated>2020-08-26T21:25:51.773Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3DnDRfZe2ubQc%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fspongebob-3DnDRfZe2ubQc&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2F3DnDRfZe2ubQc%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="312" frameborder="0" scrolling="no"><a href="https://medium.com/media/1e59bbf855664ca81921b8c52e2cd6b3/href">https://medium.com/media/1e59bbf855664ca81921b8c52e2cd6b3/href</a></iframe><p>EVERYTHING IS ON FIRE AND I DON’T KNOW WHAT TIME IS ANYMORE, AND MY TWO BRAIN CELLS ARE TIRED, BUT IT’S FINE. Everything is fine. Everything will always be fine, even when you feel like it won’t be, trust me… it will. Bootcamps are difficult, like REALLY difficult. You’ve entered a program where every week you will be learning a college semesters worth of coding knowledge. I know this sounds terrifying, but as human beings, we have this phenomenal capability to adapt to any high-stress environment we are thrown in. I’ve outlined some tips that have helped me stay grounded and sane throughout this insanely intensive program.</p><h3>Set Boundaries</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F26tn42f4M1jbuAMM0%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fnew-girl-fox-new-girl-ng-26tn42f4M1jbuAMM0&amp;image=https%3A%2F%2Fmedia1.giphy.com%2Fmedia%2F26tn42f4M1jbuAMM0%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/5dcf7b18ea34e50db1c9ac28bd1c07b0/href">https://medium.com/media/5dcf7b18ea34e50db1c9ac28bd1c07b0/href</a></iframe><p>Okay, hear me out, I know this sounds like I am about to dive into some serious relationship advice, but as I’ve gotten older I have realized that boundaries are important in all aspects of life. Boundaries will keep you sane. Boundaries will give you me-time. Boundaries will allow you to heal and come back stronger. It is important that you set healthy boundaries for yourself so that you can maintain a stable mind throughout the program. So what does setting boundaries mean exactly? It means you need to be greedy and block off some time on your schedule to do something that brings you JOY. Trust me, there is no way you will be able to maintain a social life, go to the gym, meal prep healthy meals, sleep 8–9 hours a day, and keep up with the program&#39;s curriculum. There is just no way. What I recommend is finding an activity that grounds you and brings you some sort of peace. Whether that be going for a walk, reading a book, calling up your parents to say hi, drawing, or honestly just sitting down and staring at a tree (I love doing this, you learn a lot). Find the thing that brings you joy and do it guilt-free. By consciously setting boundaries, you will slowly begin to create a beautiful balance between work and play.</p><p>P.S. Please sleep. Don’t ask why. JUST DO IT. DO IT FOR ME!</p><h3>GO TO MEDITATION TUESDAYS/THURSDAYS. JUST DO IT.</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FPnPZshcJBgC76Gi05N%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmoodman-PnPZshcJBgC76Gi05N&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2FPnPZshcJBgC76Gi05N%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/d56428f6b970c88a27fc79524f8e6934/href">https://medium.com/media/d56428f6b970c88a27fc79524f8e6934/href</a></iframe><p>I am fortunate enough to be part of a program that integrates mental health and well being into their curriculum. Every Tuesday and Thursday morning we have the option to start our day with an awesome 10-minute guided meditation. Meditation is a practice that can help you develop your level of attention to the present moment. If we practice meditation on a regular basis and make it a habit, we can train our minds to live with more awareness. This may seem insignificant to programming, but it isn’t! When we are sitting down and programming we need a certain amount of focus and by meditating and focusing on your breath, you slowly begin to develop a higher level of awareness that will ultimately help you focus more deeply while you are coding. There have been a ton of scientific studies that show the health benefits of meditating on a regular basis. If meditating is something you are interested in starting, <a href="https://www.tarabrach.com/guided-meditations/">Tara Brach</a> has created some of my favorite guided meditations.</p><p>P.S. If Beyonce can find time in her day to meditate, so can you 😉.</p><h3>CELEBRATE SMALL VICTORIES!</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxUPGcIxcIZ1rMeChEs%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fgirlstarter-girl-starter-xUPGcIxcIZ1rMeChEs&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FxUPGcIxcIZ1rMeChEs%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/48dbe8c3b3ba23f571617039da1484e0/href">https://medium.com/media/48dbe8c3b3ba23f571617039da1484e0/href</a></iframe><p>The number one piece of advice I got before starting Bootcamp was, “Don’t compare yourself to others.” Even though I was aware of that advice, my silly human mind betrayed me and I still fell for the trap. Thankfully, one day it all suddenly clicked and I just stopped comparing myself to other people. I am not exactly sure what advice I can give you so you can have that magical “it all just clicked” moment, but hear me out. I did notice that when I started being proud of my work and celebrating every little victory, those thoughts of “Oh, but their project was better! Mine was so basic and bad,” slowly began to go away. SO PLEASE celebrate every single tiny victory. You got “Hello world!” to show up on your screen?! THAT IS A BIG DEAL AND YOU SHOULD BE PROUD OF YOURSELF FOR THAT! I am not joking. Especially if it is your first time being exposed to coding. This stuff ain’t easy and it does not “come naturally.” It comes with practice and time, so be kind to yourself and celebrate every tiny victory. It is easy to get lost inside tunnel vision and focus on only what you want to do, but take some time to be here now and reflect on all that you’ve done! You’ve done A LOT! You’ve learned so MUCH! Be proud!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxUA7bf3sHeSuIKF1mg%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fkenny-good-job-cabin-boy-xUA7bf3sHeSuIKF1mg&amp;image=https%3A%2F%2Fmedia3.giphy.com%2Fmedia%2FxUA7bf3sHeSuIKF1mg%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="295" frameborder="0" scrolling="no"><a href="https://medium.com/media/aa9b57e2842fb97350483f334c5f4c46/href">https://medium.com/media/aa9b57e2842fb97350483f334c5f4c46/href</a></iframe><p>These three little things (plus one more I am about to add) have helped me stay sane in my Bootcamp journey. Don’t get me wrong though, I have had a couple of breakdowns, but fortunately, I have a really awesome support group for when things get dark. Do not be afraid to reach out to others! Having a support group that I can lean on when things get tough has made all the difference! Please don’t try to tackle this alone because it will be a lot harder that way! Lean on others! If you can’t find others to lean on, my door is always open! Hang in there because you are doing GREAT sweetie! Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae3e1b41c45f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Javascript: Scope it UP!]]></title>
            <link>https://medium.com/@barbarabontempo94/javascript-scope-it-up-434ea4ff3522?source=rss-2ad33a00dcd1------2</link>
            <guid isPermaLink="false">https://medium.com/p/434ea4ff3522</guid>
            <dc:creator><![CDATA[Barbara Bontempo]]></dc:creator>
            <pubDate>Thu, 13 Aug 2020 16:06:19 GMT</pubDate>
            <atom:updated>2020-08-13T20:17:23.185Z</atom:updated>
            <content:encoded><![CDATA[<p>In general, when it comes to programming the topic of scope is very important. More importantly, understanding scope will make your time with Javascript a lot more pleasurable!</p><h3>Okay, slow your roll…what even is SCOPE?</h3><p>Scope refers to the accessibility of variables in our code. A good question to ask yourself while writing your code is: <em>When a piece of my code is running what variables do I have access to?</em> This may not seem like a big deal, but as you get more comfortable with scope, you will realize that scoping parts of your code helps improve efficiency and most importantly, it will make debugging your code a lot easier.</p><h3>Scope in Javascript</h3><p>Now that we have a basic idea of what scope is, let’s dive right in and try this basic experiment that will show scope in all its glory!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8a3ad7ae256f3cb845c243eda9b8f24d/href">https://medium.com/media/8a3ad7ae256f3cb845c243eda9b8f24d/href</a></iframe><p>In the first example provided (lines 1–2), nothing funky happened. We declared a variable message and assigned it the value of “Hello World.” We were then able to call console.log on our message variable and it returned “Hello World” YAY! This all worked out because message in this case is being written in the global scope. In the second example (lines 5–8), we declared a variable message inside an if code block. When we tried to console.log(message) outside of the if block, we got an error, WHOMP!</p><p>So why does this happen? The if code block creates a scope for that message variable and that message variable can only be accessed within that specific scope. In other words, the accessibility of variables is limited based on the scope where they are created.</p><h3>Global and Local scope</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f8b05892a571a5c8452b5afab7ff02a/href">https://medium.com/media/3f8b05892a571a5c8452b5afab7ff02a/href</a></iframe><p>The moment you start writing on a Javascript document you are by default in the global scope. If a variable is defined outside a function, the scope will be global. The variables that are on the global scope can be accessed in any other scope.</p><p>Variables that are declared inside a function are in the local scope. The beauty of the local scope is that they have a different scope for every call of each function. This means that variables can have the same name and be used in different functions!</p><h3>BLOCK!</h3><p>We can declare variables in Javascript with the three following keywords: var, const, and let. The let and const keywords are strongly encouraged to be used in place of the var keyword. Unlike the var identifier, let and const support the declaration of local scope inside block statements.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4ca6e01493c31fadb1ea161ad7cd4b98/href">https://medium.com/media/4ca6e01493c31fadb1ea161ad7cd4b98/href</a></iframe><p>In the above code, we have a block if statement with 3 different variables inside, each with a different identifier. The if conditional block does not create a new scope, so why does dish and dishProtein give us a reference error when we call it outside the block? Unlike var, let and const are block scoped. A block is basically code that is bounded by {}. This means that variable a declared with let and const is only available for use within that block.</p><p>This may not seem like a huge deal, but lets see some problems that arise with the var keyword.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/771dab9c5f39b35caa39be413f0dfba0/href">https://medium.com/media/771dab9c5f39b35caa39be413f0dfba0/href</a></iframe><p>Okay fine, this may not be an issue if you wanted to redefine favFood, but imagine you were working on a wonderful project with a bunch of lines of code and like any human-being you forget that the variable favFood has already been defined, then you would be super confused with your return value! So for the sake of making your debugging process smoother, stick to let and const!</p><h4>let and const: block scoped BFFs</h4><p>These two will become your best friends, but they are slightly different from each other. With let, the value of the variable can be updated, but it cannot be redeclared. However, if the same let variable is defined in different scopes, you will not get an error. The beauty of let is that you don’t have to worry about if you used a name for a variable before, since the variable exists only within that scope! const is similar to let, but with const the value of the variable cannot be updated or re-declared. The behavior of const however is a bit different with objects. While the const object itself cannot be updated, the properties of its object can!</p><h3>OMG..Finally…Lexical Scope! ~basic version~</h3><p>Javascript has something that is called lexical scoping, which basically means that a variable defined outside a function can be accessible inside <em>another </em>function. In other words, functions have access to the variables of their “parent” scope.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ffe9852ef4f6e8e0a1d596deb27a8994/href">https://medium.com/media/ffe9852ef4f6e8e0a1d596deb27a8994/href</a></iframe><p>In the code above, we see that lexical scoping works in a forward direction and the inner function scope can access variables from the outer function scope. In other words, anotherCoolFunction and anotherSuperCoolFunction both have access to fruit.</p><h3>WE ARE DONE YES!</h3><p>The concept of scope is super important to understand in order to thrive in more advanced topics. I hope this basic overview of some hot topics in scope will encourage you to dive in deep and tackle other topics such as hoisting and closures! I hope this little review will help you scope up your code! Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=434ea4ff3522" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>