<?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>DEV Community: Haakon Helmen Rusås</title>
    <description>The latest articles on DEV Community by Haakon Helmen Rusås (@haakonhr).</description>
    <link>https://dev.to/haakonhr</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%2F212747%2Fb0a0db33-98c2-4a23-869e-145327c65a6b.jpeg</url>
      <title>DEV Community: Haakon Helmen Rusås</title>
      <link>https://dev.to/haakonhr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/haakonhr"/>
    <language>en</language>
    <item>
      <title>Committing to Github</title>
      <dc:creator>Haakon Helmen Rusås</dc:creator>
      <pubDate>Tue, 28 Jul 2020 17:58:00 +0000</pubDate>
      <link>https://dev.to/haakonhr/committing-to-github-b89</link>
      <guid>https://dev.to/haakonhr/committing-to-github-b89</guid>
      <description>&lt;p&gt;In this post I am going to do a quick run down of how you can store your well crafted code in source control.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;p&gt;I'm going to assume that you have an account on Github and are somewhat familiar with the command line. For those who prefer a GUI, like me, I will be showing you how to upload or push your code up with the Github Desktop program. &lt;/p&gt;

&lt;p&gt;Pre-requsite&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Git installed &lt;/li&gt;
&lt;li&gt;Code editor of choice installed&lt;/li&gt;
&lt;li&gt;Account on Github &lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The beginning
&lt;/h2&gt;

&lt;p&gt;Let's say we have a simple website that we want to share and maybe collaborate on. By using a service like Github we can upload or push our code to a remote repository. This repository will be the single source of truth for the website. To keep this short and to the point I'll be using a simple one-page website, built only with HTML and CSS.&lt;/p&gt;

&lt;h2&gt;
  
  
  The middle
&lt;/h2&gt;

&lt;p&gt;We start with our site with some boilerplate code. I've made a folder ./github-website which I have in a project folder on my computer. In there I have two files index.html and styles.css. &lt;/p&gt;

&lt;p&gt;Here is index.html file content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!doctype html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"utf-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;My simple website&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"description"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;""&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;

  &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"styles.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;

&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;header&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"title"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;My website - a Github collaboration project&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/header&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;main&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"paragraph"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Hello world! This is my simple website.&lt;span class="nt"&gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/main&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the styles.css content:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* Stylesheet */&lt;/span&gt;
&lt;span class="nt"&gt;body&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;text-align&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;center&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.title&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;font-weight&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;700&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nl"&gt;font-size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;2rem&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nc"&gt;.paragraph&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;#34ad65&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;These files are in the directory ./github-website and here is where we will initiate a git repository. If you are somewhat familiar with the command line then you can navigate to your folder and run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;init&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Git will now create a hidden folder with configuration files and start watching your files for any changes. We can now open Github Desktop and add the project folder. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5yu5q7q5vqsby41661vt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5yu5q7q5vqsby41661vt.png" alt="Add local repository to Github Desktop app"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The files should appear as new changes in the pane on the left. You can click on them to see the changes in the window on the right. To commit the changes we can write a commit message and summary at the bottom of the pane.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvu61umyi86uw2ku93kn4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvu61umyi86uw2ku93kn4.png" alt="Checking the changes and writing a commit message"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you where using the command line or git bash then the following code would be the equivalent&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;git&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;commit&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"First commit"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-m&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Adding index.html and styles.css to the project"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we can upload or push the code to a new remote repository on Github. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fa2wz54lwowd3kik3ikb7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fa2wz54lwowd3kik3ikb7.png" alt="Ready to push our code to the remote repository on Github"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The program is now telling us that there are no more local changes so we are up to date. But our code only exist on our local machine. To publish our code and create a remote repository on Github just hit the blue "Publish repository"  button. It will then ask you to give the remote repository a name, an optional description and decide if you want the repository to be public or private.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F47fheo6qqqd0ocomkota.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F47fheo6qqqd0ocomkota.png" alt="Give the new remote repository some information"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If all goes well you should be able to inspect the repository online!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frqhlr8thizv748k6sr54.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frqhlr8thizv748k6sr54.png" alt="A new repository has been born"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The end
&lt;/h2&gt;

&lt;p&gt;I hope this post has been helpful. I find it easier to work with a good tool in which I can see what changes has been made, which files I'm working with and has useful information about what I can do. The terminal is handy sometimes and I believe it is good to know what goes on under the hood, sometimes, but it is unforgiving and unintuitive. It gives you nothing and expect you as a user to know everything. What are your thoughts on tools like the terminal and Github Desktop? Do you prefer a GUI over a command line interface?&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>github</category>
      <category>git</category>
    </item>
    <item>
      <title>My Visual Studio Code Extensions</title>
      <dc:creator>Haakon Helmen Rusås</dc:creator>
      <pubDate>Sun, 16 Feb 2020 09:53:39 +0000</pubDate>
      <link>https://dev.to/haakonhr/visual-studio-code-extensions-53kn</link>
      <guid>https://dev.to/haakonhr/visual-studio-code-extensions-53kn</guid>
      <description>&lt;p&gt;I use Visual Studio Code as my main code editor. At least for all web development projects. If you haven't seen or tried vscode before &lt;a href="https://code.visualstudio.com/"&gt;here is a link to their site&lt;/a&gt;, which does a good job of explaining the use cases and features. It is a relative small program that you can add functionality to with extensions. In this post I thought I share which extensions I find useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install an extension
&lt;/h2&gt;

&lt;p&gt;Just thought I mention how you can install an extension in vscode in case someone was new to it. When you open vscode you can click on the "Extensions" icon in the main toolbar (Ctrl + Shift + X)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--VUekXOgs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1nnswpo7a8cc18va1ros.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--VUekXOgs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/1nnswpo7a8cc18va1ros.jpg" alt="VSCode interface"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then type in the name of the extension ⇒&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UJKK06ue--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3bkkhhfv08cskk2uu1et.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UJKK06ue--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3bkkhhfv08cskk2uu1et.jpg" alt="VSCode extension list"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And hit install when you find the one you are looking for!&lt;/p&gt;

&lt;h2&gt;
  
  
  My extensions list
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;ESLint - by Dirk Baeumer

&lt;ul&gt;
&lt;li&gt;Integrates ESLint for Javascript into VS Code.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Auto Rename Tag - by Jun Han

&lt;ul&gt;
&lt;li&gt;Auto rename paired HTML tags&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Auto Close Tag - by Jun Han

&lt;ul&gt;
&lt;li&gt;Automatically add HTML/XML close tags&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Bracket Par Colorizer 2 - by CoenraadS

&lt;ul&gt;
&lt;li&gt;For colorizing matching brackets&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Debugger for Chrome - by Microsoft

&lt;ul&gt;
&lt;li&gt;Debug JavaScript in the Chrome browser&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Debugger for Firefox - by Firefox DevTools

&lt;ul&gt;
&lt;li&gt;Debug JavaScript in Firefox&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Docker - by Microsoft

&lt;ul&gt;
&lt;li&gt;Syntax highlighting, commands, hover tips and linting for Dockerfile&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Document This - by Joel Day

&lt;ul&gt;
&lt;li&gt;Automatically generates detailed JSDocs comments in TypeScript and JavaScript&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;ES7 React/Redux/GraphQL/React-Native snippets - dsznajder

&lt;ul&gt;
&lt;li&gt;Simple snippets&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;GitLens - Git supercharged - by Eric Amodio

&lt;ul&gt;
&lt;li&gt;Supercharge the Git capabilies built into VS Code&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;HTML CSS Support - by ecmal

&lt;ul&gt;
&lt;li&gt;CSS support for HTML documents&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Live Server - by Ritwick Dey

&lt;ul&gt;
&lt;li&gt;Launch a development local Server with live reload feature for static &amp;amp; dynamic pages&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;npm Intellisense - Christian Kolher

&lt;ul&gt;
&lt;li&gt;Autocompletes npm modules in import statements&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;Prettier - Code formatter - Esben Petersen

&lt;ul&gt;
&lt;li&gt;Code formatter using prettier&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;React Native Tools - Microsoft

&lt;ul&gt;
&lt;li&gt;Debugging and integrated commands for React Native&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;vscode-icons - VSCode Icons Team

&lt;ul&gt;
&lt;li&gt;Icons for VS Code&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I update and change this list when I find some new shiny thing or a new project require more out the editor. Interested in hearing about your collection of extensions, do you see something new here or am I missing something that you would recommend :D&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

&lt;p&gt;This post was originally published on my blog &lt;a href="https://www.helmendesign.no/"&gt;Helmen Design&lt;/a&gt; &lt;/p&gt;

</description>
      <category>vscode</category>
      <category>html</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Capitalize first letter in Javascript</title>
      <dc:creator>Haakon Helmen Rusås</dc:creator>
      <pubDate>Tue, 28 Jan 2020 15:24:51 +0000</pubDate>
      <link>https://dev.to/haakonhr/capitalize-first-letter-in-javascript-38f7</link>
      <guid>https://dev.to/haakonhr/capitalize-first-letter-in-javascript-38f7</guid>
      <description>&lt;p&gt;In Javascript you have a built in data type called strings. This is used to handle a sequence of characters. This post will attempt to explain one small use case where you wish to change the first letter in a word to upper case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;p&gt;We have a string that is comprised of two words, the classic &lt;em&gt;hello World!&lt;/em&gt;, but someone forgot to capitalize the "h"! &lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let string = "hello World!";

let capitalizedString = string[0].toUpperCase() + string.slice(1);

// capitalizedString =&amp;gt; Hello World!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Okey so in the first line we declare a variable called &lt;em&gt;string&lt;/em&gt; and assign the value "hello World!" to it. In the second line we declare a second variable called &lt;em&gt;capitalizedString.&lt;/em&gt; The value for that variable is the result of two operations we preform on &lt;em&gt;string&lt;/em&gt;. &lt;/p&gt;

&lt;h2&gt;
  
  
  Description
&lt;/h2&gt;

&lt;p&gt;Javascript ⇒ String.prototype.toUpperCase()&lt;/p&gt;

&lt;p&gt;"The toUpperCase() method returns the value of the string converted to uppercase. This method does not affect the value of the string itself since JavaScript strings are immutable." - &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase"&gt;MDN&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This method is used to convert all the characters from their initial state to upper case.&lt;/p&gt;

&lt;p&gt;Javascript ⇒ String.prototype.slice()&lt;/p&gt;

&lt;p&gt;"slice() extracts the text from one string and returns a new string. Changes to the text in one string do not affect the other string." - &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice"&gt;MDN&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This method is used to return the rest of the word after the first letter. These to are then combined and returned from the operation. We combine these methods because just using .toUpperCase alone returns only the first letter after the operation.&lt;/p&gt;

&lt;p&gt;Hopefully this tip can be useful!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings"&gt;MDN Docs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.geeksforgeeks.org/how-to-make-first-letter-of-a-string-uppercase-in-javascript/"&gt;GeeksforGeeks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>javascript</category>
    </item>
    <item>
      <title>Good habits</title>
      <dc:creator>Haakon Helmen Rusås</dc:creator>
      <pubDate>Wed, 22 Jan 2020 12:55:22 +0000</pubDate>
      <link>https://dev.to/haakonhr/good-habits-4fm0</link>
      <guid>https://dev.to/haakonhr/good-habits-4fm0</guid>
      <description>&lt;h2&gt;
  
  
  How could good habits help you
&lt;/h2&gt;

&lt;p&gt;Forming good habits can make your life easier. Okay let me try to back up that statement.  I see myself as a semi-structured person. I try to keep track of my to-do's which I do with the awesome app from Microsoft called To Do. It's just another app where you can write down a task and tell it to remind you of it later. I've tried Todoist and others but this is the one that stuck. One feature that I like is that it keeps my tasks synchronized across devices. I have become so reliant on this that if I don't write down a task in the app or somewhere else I consider it forgotten.&lt;/p&gt;

&lt;h2&gt;
  
  
  One step at a time
&lt;/h2&gt;

&lt;p&gt;So having an app is all well and good but to make a bigger change in my life I need a system. Here is where &lt;a href="https://jamesclear.com/habit-stacking"&gt;habit stacking&lt;/a&gt; comes in. In his book James Green talks about the how the brain has all these connections between neurons that build up and get stronger when used and fade over time when they go unused. Like garbage collection for the brain. This can be applied to habit forming. People say they want to get in better shape or improve their skills in a particular field, but have a hard time sticking to it over time. It turns out that it is not the lack of motivation or willpower, like &lt;a href="https://www.researchgate.net/publication/9026815_Combining_motivational_and_volitional_interventions_to_promote_exercise_participation_Protection_motivation_theory_and_implementation_intentions"&gt;this study&lt;/a&gt; found, but rather a lack of a system. Planning and setting up a system that you can follow, will enable you to more easily start and more importantly keep up with your goals.&lt;/p&gt;

&lt;h2&gt;
  
  
  The system step one ⇒ four
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;First step is to make it clear. A hint of a reward in the future that will hook you in.&lt;/li&gt;
&lt;li&gt;Next step is finding something attractive that trigger a feeling you associate with the habit.&lt;/li&gt;
&lt;li&gt;Third, make it easy. Lower the bar and you are more likely to go through with it.&lt;/li&gt;
&lt;li&gt;Lastly satisfy yourself with the reward you promised yourself in step 1.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Stack and repeat
&lt;/h2&gt;

&lt;p&gt;The circle described in the four steps can be a powerful way to make new habits. Applying this concept to habit stacking we can build a great system for change. When you wake up in the morning and go to the bathroom, before you take a shower think of something small that you can put in your daily "morning stack". If you insert a small exercise before you take that shower, nothing big just a few sit-ups or something that you are comfortable with, you can extend your "morning stack" ++. Incremental stacking of good habits are accumulative. Meaning you get more out of it and see bigger improvements than the energy you put in.&lt;/p&gt;

&lt;p&gt;Hopefully you got something out of these methods. I've slowly started changing some of my routines by adding a small step to my morning and are allways thinking of little things I can do in the moment. Maybe I'll revisit this post in a few months to give an update to my findings. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://jamesclear.com/atomic-habits"&gt;Atomic Habits&lt;/a&gt; by James Clear&lt;/p&gt;

&lt;p&gt;This post was originally published on my blog &lt;a href="https://www.helmendesign.no/"&gt;Helmen Design&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy coding!&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>career</category>
      <category>softskills</category>
    </item>
    <item>
      <title>First commit</title>
      <dc:creator>Haakon Helmen Rusås</dc:creator>
      <pubDate>Mon, 20 Jan 2020 09:29:50 +0000</pubDate>
      <link>https://dev.to/haakonhr/first-commit-4p8l</link>
      <guid>https://dev.to/haakonhr/first-commit-4p8l</guid>
      <description>&lt;p&gt;Commit early and often, that is what they say. I am going to try and apply this to this blog. Which means that I am committing myself (pun intended) to writing short and consise blog post about my journey into the world of Web Development. Hopefully this will be both usefull to myself as a future reference and anyone who stumbles upon this part of the Internet. Happy coding!&lt;/p&gt;

&lt;p&gt;This post was originally published on my blog &lt;a href="https://www.helmendesign.no"&gt;Helmen Design&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>blog</category>
    </item>
  </channel>
</rss>
