<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Jason Stewart</title>
    <description>The latest articles on Forem by Jason Stewart (@gitjasin).</description>
    <link>https://forem.com/gitjasin</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1044501%2Fbfcc0564-bc04-4dbb-9995-67322bae286d.jpg</url>
      <title>Forem: Jason Stewart</title>
      <link>https://forem.com/gitjasin</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/gitjasin"/>
    <language>en</language>
    <item>
      <title>The Wetware of Coding: How to Deal with Stress and Stuckness</title>
      <dc:creator>Jason Stewart</dc:creator>
      <pubDate>Thu, 11 May 2023 21:56:42 +0000</pubDate>
      <link>https://forem.com/gitjasin/the-wetware-of-coding-how-to-deal-with-stress-and-stuckness-kg9</link>
      <guid>https://forem.com/gitjasin/the-wetware-of-coding-how-to-deal-with-stress-and-stuckness-kg9</guid>
      <description>&lt;p&gt;I've been practicing full-stack software development in a Flatiron boot camp for the past 2.5 months now. In that time, I've learned a lot about JavaScript, and I've also learned a lot about the wetware of coding: what goes on behind the scenes, in your head and in your body, when you're coding.&lt;/p&gt;

&lt;p&gt;One of the things I've learned is that getting stuck and feeling stressed is a natural part of the coding process. We've all been there: staring at a difficult problem, with no solution in sight, banging our heads against our desks in frustration, feeling the pressure of time as it slips away and we're getting nowhere. These feelings are often heightened even more when we're new to coding.&lt;/p&gt;

&lt;p&gt;The good news is that there are things you can do to deal with stress and stuckness when you're coding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stress Management
&lt;/h2&gt;

&lt;p&gt;For me, learning to deal with the stress and doubt has been critical to moving forward in coding and improving my life while doing it. Some techniques that are great for this are: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Take a break. Seriously, take breaks! It may seem counterintuitive, but taking a break can actually help you to be more productive. Get up and move around, or step away from your computer for a few minutes to clear your head. This has been critical in helping me.&lt;/li&gt;
&lt;li&gt;Talk to someone. Sometimes, just talking to someone about what you're stuck on can help you to see the problem in a new light. Find a friend, family member, or mentor who you can talk to about your coding challenges. Failing that, try the rubber-duck method: talk to an inanimate object, like a rubber-duck, walk through the issue, explain the code and what it is you are trying to do.&lt;/li&gt;
&lt;li&gt;Ask for help. There are many resources available to help you when you're stuck on a coding problem. You can search online for help articles or tutorials, or you can ask for help from your classmates, teachers, or mentors. There is even AI nowadays that can help explain things differently or point you in the right direction
&lt;/li&gt;
&lt;li&gt;Don't be afraid to fail. Everyone fails at coding sometimes. It's part of the learning process. Failure is a learning opportunity and a powerful way to learn something well. Don't let failure discourage you. Just pick yourself up, dust yourself off, and keep going. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In general, I try to follow these tips for stress management:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get enough sleep. When you're well-rested, you're better able to cope with stress.&lt;/li&gt;
&lt;li&gt;Eat a healthy diet. Eating nutritious foods gives you the energy you need to power through tough coding sessions.&lt;/li&gt;
&lt;li&gt;Exercise regularly. Exercise is a great way to relieve stress and improve your mood. I love biking and rock climbing myself.&lt;/li&gt;
&lt;li&gt;Practice relaxation techniques. There are many different relaxation techniques that can help to reduce stress, such as meditation, yoga, and deep breathing.&lt;/li&gt;
&lt;li&gt;Set realistic expectations. Don't expect to be an expert overnight. Coding takes time and practice.&lt;/li&gt;
&lt;li&gt;Celebrate your successes. When you reach a coding milestone, take a moment to celebrate your accomplishment. This will help you to stay motivated and on track.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Time Management
&lt;/h2&gt;

&lt;p&gt;My favorite ways to take a break and destress are to meditate, do calisthenics, and go for a walk. Doing those things really helps me chill out and refocus. Additionally, knowing &lt;em&gt;when&lt;/em&gt; to seek help is super critical. I have spent way to much time going down rabbit-holes when trying to get unstuck. As a general rule, I follow the 10-15 approach: spend 10-15 min researching online, reaching out to colleagues, leveraging AI tools, or taking a break. If these steps don't yield results, it's time to escalate the issue to a teacher, senior developer, etc.&lt;/p&gt;

&lt;p&gt;Some time management strategies for coding I have looked into and would recommend checking out are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Pomodoro Technique: The Pomodoro Technique is a time management method that breaks down work into intervals, typically 25 minutes in length, separated by short breaks. (my favorite, I do a 60 to 10 interval)&lt;/li&gt;
&lt;li&gt;Eat the Frog: The Eat the Frog method is a time management method that prioritizes tasks by importance and difficulty. The idea is to "eat the frog" first, meaning to tackle the most important and difficult task first thing in the morning.&lt;/li&gt;
&lt;li&gt;Time Blocking: Time blocking is a time management method that involves scheduling specific blocks of time for specific tasks. This can help you to stay focused and avoid distractions.&lt;/li&gt;
&lt;li&gt;Getting Things Done (GTD): GTD is a time management method that involves five steps: capture, clarify, organize, reflect, and execute. The goal of GTD is to get everything out of your head and into a system so that you can focus on the most important tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is no perfect way to destress or manage time. You should experiment with various methods and find what works for you. Create your own workflow.&lt;/p&gt;

&lt;p&gt;Keep these ideas in mind. They are very important. Don't forget, you are not alone, we have all been there, and will all be there again. So let's help support each other! Good luck!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>coding</category>
    </item>
    <item>
      <title>Hello World! Hoisting!</title>
      <dc:creator>Jason Stewart</dc:creator>
      <pubDate>Mon, 13 Mar 2023 20:13:36 +0000</pubDate>
      <link>https://forem.com/gitjasin/hello-world-51oi</link>
      <guid>https://forem.com/gitjasin/hello-world-51oi</guid>
      <description>&lt;h2&gt;
  
  
  My Hello World!
&lt;/h2&gt;

&lt;p&gt;Hello! My name is Jason Stewart. I'm currently beginning my adventure into learning full-stack programming. I'm part of a cohort at &lt;a href="https://flatironschool.com/"&gt;Flatiron School&lt;/a&gt;. There I'm going to be focusing on &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;JavaScript &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ReactJS &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Flask&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Currently, I'm focusing on learning JavaScript, yay!&lt;/p&gt;

&lt;h2&gt;
  
  
  Hoisting!
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;boo! don't use 'var' as it can cause strange bugs&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;hello&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello World!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;VS&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;hello&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello World!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  What is hoisting?
&lt;/h3&gt;

&lt;p&gt;According to &lt;a href="https://www.geeksforgeeks.org/javascript-hoisting/"&gt;GeeksforGeeks&lt;/a&gt;, hoisting is...&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;a concept that enables us to extract values of variables and functions even before initializing/assigning value without getting errors and this happens during the 1st phase (memory creation phase) of the Execution Context.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So in JavaScript, hoisting is moving declarations to the top of the scope, before execution. Hoisting is why, when we assign a variable with 'var', rather than 'let', or 'const', it can cause strange issues and make it hard to debug.  &lt;/p&gt;

&lt;p&gt;This is also why, when we use 'function' to make a function in JavaScript, it does not really matter where in the scope we put the function. In other words, writing a function at the end of your code and calling it at the beginning is not a problem. So doing is fine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sayHello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Steve&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;sayHello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Hello World!&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;However, the cool way to write functions is with the 'arrow' e.g. =&amp;gt;&lt;br&gt;
The thing to keep in mind with using arrow is that, where it is placed in the scope is critical. For example, if you have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sayHello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Steve&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sayHello&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;`Hello, &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;!`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It throws an error&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;ReferenceError: Cannot access 'sayHello' before initialization&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and will not run, as the function was made with =&amp;gt;, therefore not hoisted and it was called before it was defined. So to fix it, we would have to call the function after it was defined. That way it is in scope. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;sayHello&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="s2"&gt;`Hello, &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;!`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;sayHello&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Steve&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;All that being said, which to use? IDK, I'm new here. hahah &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---Rq0rw0F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5cftne995q7qphj8dg7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---Rq0rw0F--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s5cftne995q7qphj8dg7.png" alt="Laughing smiley face" width="48" height="48"&gt;&lt;/a&gt;&lt;br&gt;
I have been told that most functions nowadays are being written with arrow notation. I will continue to play with them and see how I feel about it. Will update, once I have figured out my take on this. &lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>hello</category>
    </item>
  </channel>
</rss>
