<?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: Twan Mulder</title>
    <description>The latest articles on DEV Community by Twan Mulder (@toktoktwan).</description>
    <link>https://dev.to/toktoktwan</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%2F370172%2F9a88256a-6a47-4676-a699-8efebb6710f6.jpg</url>
      <title>DEV Community: Twan Mulder</title>
      <link>https://dev.to/toktoktwan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/toktoktwan"/>
    <language>en</language>
    <item>
      <title>Your Website Sucks</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Tue, 23 Feb 2021 11:33:23 +0000</pubDate>
      <link>https://dev.to/toktoktwan/your-website-sucks-539n</link>
      <guid>https://dev.to/toktoktwan/your-website-sucks-539n</guid>
      <description>&lt;p&gt;🎉 It's out: &lt;a href="https://flurly.com/p/your-website-sucks"&gt;https://flurly.com/p/your-website-sucks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Learn the 5 pillars of creating a website that gets you the results you want.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hey, your website sucks!
&lt;/h2&gt;

&lt;p&gt;A pretty bold statement. One I firmly believe in and stand by.&lt;/p&gt;

&lt;p&gt;At the time of writing, there are over 2 billion websites on the internet. 400 million of those are active. &lt;/p&gt;

&lt;p&gt;And I'm sure that &lt;strong&gt;&lt;em&gt;all of them suck&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Working as a Developer and CRO Specialist for companies like Accenture and marketing agencies, I have a lot of experience creating and/or reviewing websites for clients like Audi, Virgin Media, and Porsche.&lt;/p&gt;

&lt;p&gt;Even though there's an amazing amount of great working, good looking websites out there, not one of them is perfect.&lt;/p&gt;

&lt;p&gt;That's why I'd love to help you improve yours!&lt;/p&gt;

&lt;p&gt;In this e-book, we'll go through 5 different pillars of creating a website that gets you the results you want.&lt;/p&gt;

&lt;p&gt;There are still a &lt;strong&gt;&lt;em&gt;ton&lt;/em&gt;&lt;/strong&gt; of different things you can work on to improve your website, but these 5 ones are the ones I've found had the most long-term impact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chapters
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Target Audience&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Value Proposition&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;SEO&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Design &amp;amp; Layout&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Page Speed&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Not convinced just yet? &lt;strong&gt;Read a sample chapter before committing&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://flurly.com/p/your-website-sucks"&gt;https://flurly.com/p/your-website-sucks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>books</category>
      <category>productivity</category>
      <category>webdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Announcing GitHub README Templates - Amazing README's to get you started with your own.</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Wed, 06 Jan 2021 17:03:26 +0000</pubDate>
      <link>https://dev.to/toktoktwan/announcing-github-readme-templates-amazing-readme-s-to-get-you-started-with-your-own-1nek</link>
      <guid>https://dev.to/toktoktwan/announcing-github-readme-templates-amazing-readme-s-to-get-you-started-with-your-own-1nek</guid>
      <description>&lt;p&gt;Hello and thank you checking out my post about GitHub README Templates!&lt;/p&gt;

&lt;p&gt;Adding an amazing README to your GitHub project is a great way of introducing new people to the codebase, teaching them about how to use your project/code, and will inspire them to contribute themselves.&lt;/p&gt;

&lt;p&gt;I've always struggled with what makes a great README. That's why I've gathered some that I really enjoyed and made them available on &lt;a href="http://www.readme-templates.com"&gt;www.readme-templates.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You can preview all the README's, copy their markdown, and view the original projects on GitHub.&lt;/p&gt;

&lt;p&gt;I'd love to hear what you think and if you have any README's you can recommend to add!&lt;/p&gt;

&lt;p&gt;Cheers 😄&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.readme-templates.com"&gt;www.readme-templates.com&lt;/a&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>programming</category>
      <category>react</category>
    </item>
    <item>
      <title>Your website sucks! And I'll tell you why (ROUND 2) ⚡️⚡️</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Sat, 07 Nov 2020 12:51:04 +0000</pubDate>
      <link>https://dev.to/toktoktwan/your-website-sucks-and-i-ll-tell-you-why-round-2-518o</link>
      <guid>https://dev.to/toktoktwan/your-website-sucks-and-i-ll-tell-you-why-round-2-518o</guid>
      <description>&lt;p&gt;I had some great success critiquing/roasting your websites on &lt;a href="https://twitter.com/toktoktwan/status/1290712060154843138"&gt;Twitter&lt;/a&gt; and &lt;a href="https://dev.to/toktoktwan/your-website-sucks-and-i-ll-tell-you-why-4mpb"&gt;here on dev.to&lt;/a&gt;, and I'd love to help tell you why your website sucks again!&lt;/p&gt;

&lt;p&gt;As a CRO Consultant, I have a lot of experience in improving our client's products.&lt;/p&gt;

&lt;p&gt;So show me your website, and I'll give you at least one point to improve!&lt;/p&gt;

&lt;p&gt;😄&lt;/p&gt;

</description>
      <category>ux</category>
      <category>showdev</category>
      <category>discuss</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Your website sucks! And I'll tell you why ⚡️</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Mon, 10 Aug 2020 19:24:36 +0000</pubDate>
      <link>https://dev.to/toktoktwan/your-website-sucks-and-i-ll-tell-you-why-4mpb</link>
      <guid>https://dev.to/toktoktwan/your-website-sucks-and-i-ll-tell-you-why-4mpb</guid>
      <description>&lt;p&gt;I had some great success critiquing/roasting your websites &lt;a href="https://twitter.com/toktoktwan/status/1290712060154843138?s=20"&gt;on Twitter&lt;/a&gt;, and I'd love to help tell you why &lt;strong&gt;your website sucks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;As a CRO Consultant, I have a lot of experience in improving our client's products.&lt;/p&gt;

&lt;p&gt;So show me your website, and I'll give you at least one point to improve!&lt;/p&gt;

&lt;p&gt;😄&lt;/p&gt;

</description>
      <category>ux</category>
      <category>showdev</category>
      <category>discuss</category>
      <category>javascript</category>
    </item>
    <item>
      <title>5 Must-know Javascript Tips &amp; Tricks</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Mon, 13 Jul 2020 13:25:46 +0000</pubDate>
      <link>https://dev.to/toktoktwan/5-must-know-javascript-tips-tricks-3pm7</link>
      <guid>https://dev.to/toktoktwan/5-must-know-javascript-tips-tricks-3pm7</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--R1J0rpIs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2A9NpIEqA7unwxJo7t_u1YUA.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--R1J0rpIs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2A9NpIEqA7unwxJo7t_u1YUA.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JavaScript keeps adding new and neat features. Sometimes, it’s hard to keep up. In this article, I’ll share a couple of cool tips &amp;amp; tricks to keep you up to speed and deepen your JS knowledge.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Create an array with unique values using the “Set” object
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--G0C5MO6G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AYumzRMDm5AVUMNhejYp9Jg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--G0C5MO6G--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AYumzRMDm5AVUMNhejYp9Jg.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Imagine having an array with some duplicate items and wanting to filter out only the unique ones.&lt;/p&gt;

&lt;p&gt;You could try writing a &lt;em&gt;map&lt;/em&gt; or &lt;em&gt;filter&lt;/em&gt; to achieve this. Alternatively, ES6 introduces the &lt;strong&gt;&lt;em&gt;Set object&lt;/em&gt;&lt;/strong&gt;, which solves this problem in just 1 line of code.&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;arrayWithUniqueItems&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[...&lt;/span&gt;&lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Set&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,])]&lt;/span&gt;
&lt;span class="c1"&gt;// [1, 2, 3]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, this example uses integers, but you can use strings and floating-point numbers as well!&lt;/p&gt;

&lt;p&gt;For a little more in-depth knowledge about the Set object, check out this &lt;a href="https://dev.to/clairecodes/how-to-create-an-array-of-unique-values-in-javascript-using-sets-5dg6"&gt;article by Claire-Parker Jones&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Shorten your “if” statements
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--h5klHXxP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2A8p7lcXKKW3eCmIoLql8vmQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h5klHXxP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2A8p7lcXKKW3eCmIoLql8vmQ.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now this is a tricky one.&lt;/p&gt;

&lt;p&gt;Shortening your “if” statements can be a great way to simplify your code.&lt;/p&gt;

&lt;p&gt;However, if you need to write more complicated statements, you should definitely go for the first option.&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="c1"&gt;// Instead of using this                                      &lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;iAmHungry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
   &lt;span class="nx"&gt;bakeAnEgg&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// You can use this&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;iAmHungry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nx"&gt;bakeAnEgg&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="c1"&gt;// Or this&lt;/span&gt;
&lt;span class="nx"&gt;iAmHungry&lt;/span&gt;&lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="nx"&gt;bakeAnEgg&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember, readability &amp;amp; ease-of-use are more important than a couple less lines of code.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Shorten an array using its length property
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6udcF8hL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AJLm5quDrO7b5rIm7idsrdw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6udcF8hL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AJLm5quDrO7b5rIm7idsrdw.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A great way of shortening an array is by redefining its length property.&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;let&lt;/span&gt; &lt;span class="nx"&gt;array&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;9&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="nx"&gt;array&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;length&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;

&lt;span class="c1"&gt;// Result: [0, 1, 2, 3]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Important to know though is that this is a destructive way of changing the array. This means you lose all the other values that used to be in the array.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Using the spread operator to combine objects
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--L_Uec4kL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AQQDQHw4aEPHucfRvk6W0vg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--L_Uec4kL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AQQDQHw4aEPHucfRvk6W0vg.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Let’s say you want to combine multiple objects into one object containing them all.&lt;/p&gt;

&lt;p&gt;The spread operator ( … ) is a great way to achieve this!&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;obj1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;a&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;b&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&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;obj2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;c&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&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;obj3&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;d&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Combine them using the spread operator            &lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;objCombined&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{...&lt;/span&gt;&lt;span class="nx"&gt;obj1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;obj2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;...&lt;/span&gt;&lt;span class="nx"&gt;obj3&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// Result: {'a': 1, 'b': 2, 'c': 3, 'd': 4}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Something to keep in mind while using this is that whenever you update one of the objects, it doesn’t reflect those changes in the combined object.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Using the window.location object
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XXSzD-nB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AZ0iAQx6K5GMl2DiECkMwNQ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XXSzD-nB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://cdn-images-1.medium.com/max/2400/1%2AZ0iAQx6K5GMl2DiECkMwNQ.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;JavaScript can access the current URL using the window.location object. Pretty neat, but even cooler is that this object contains certain parts of the URL as well.&lt;/p&gt;

&lt;p&gt;Get access to the protocol/host/pathname/search/and more!&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="c1"&gt;// JavaScript can access the current URL in parts. For this URL:&lt;/span&gt;
&lt;span class="s2"&gt;`https://thatsanegg.com/example/index.html?s=article`&lt;/span&gt;

&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;protocol&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;`https:`&lt;/span&gt;
&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;host&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;`thatsanegg.com`&lt;/span&gt;
&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;pathname&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;`/example/index.html`&lt;/span&gt;
&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;location&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;search&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;`?s=article`&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h4&gt;
  
  
  That’s all!
&lt;/h4&gt;

&lt;p&gt;Thanks for reading, look at how much you’ve learned 😄&lt;/p&gt;

&lt;p&gt;This article was originally written on &lt;a href="https://www.thatsanegg.com/blog/5-must-know-javascript-tips-tricks/"&gt;"That's an Egg"&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>100daysofcode</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Shorten your if statements using the '&amp;&amp;' operator</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Tue, 30 Jun 2020 07:33:55 +0000</pubDate>
      <link>https://dev.to/toktoktwan/shorten-your-if-statements-using-the-operator-2m9</link>
      <guid>https://dev.to/toktoktwan/shorten-your-if-statements-using-the-operator-2m9</guid>
      <description>&lt;p&gt;Today I learned a pretty cool trick!&lt;/p&gt;

&lt;p&gt;You can use the '&amp;amp;&amp;amp;' operator to shorten your if statements.&lt;/p&gt;

&lt;p&gt;So instead of using this:&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="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;iAmHungry&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;bakeAnEgg&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;You can use it like this!&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;iAmHungry&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;bakeAnEgg&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Would you use this in your own code?&lt;br&gt;
How would this impact the readability of your code?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--a2_XW6n2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jc9tskafc0citwydabzv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--a2_XW6n2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/jc9tskafc0citwydabzv.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>100daysofcode</category>
      <category>todayilearned</category>
    </item>
    <item>
      <title>Stop importing Multiple Fonts and Start using Variable Fonts</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Mon, 11 May 2020 07:19:31 +0000</pubDate>
      <link>https://dev.to/toktoktwan/stop-importing-multiple-fonts-and-start-using-variable-fonts-33g8</link>
      <guid>https://dev.to/toktoktwan/stop-importing-multiple-fonts-and-start-using-variable-fonts-33g8</guid>
      <description>&lt;p&gt;&lt;strong&gt;&lt;em&gt;Variable Fonts.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Maybe you already know all about them.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Maybe you have no clue what they are.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;In this short article, I’ll take you through how you can use variable fonts to your advantage in creating efficient &amp;amp; fun websites.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.thatsanegg.com/blog/stop-importing-multiple-fonts-and-start-using-variable-fonts/"&gt;Link to article&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>html</category>
      <category>beginners</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I built a blog for the developer just starting out.</title>
      <dc:creator>Twan Mulder</dc:creator>
      <pubDate>Mon, 20 Apr 2020 08:27:38 +0000</pubDate>
      <link>https://dev.to/toktoktwan/i-built-a-blog-for-the-developer-just-starting-out-36gj</link>
      <guid>https://dev.to/toktoktwan/i-built-a-blog-for-the-developer-just-starting-out-36gj</guid>
      <description>&lt;p&gt;"That's an Egg"&lt;/p&gt;

&lt;p&gt;What?&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://thatsanegg.com"&gt;"That's an Egg!"&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;These days, web-development can be a very daunting task to learn for the developer who's just starting out. With things like JavaScript frameworks, server-side rendering, and REST/CRUD API's, it doesn't get a lot simpler either.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;However, it doesn't have to be this way!&lt;/strong&gt; I love writing about making your (developer) life easier. From basic HTML &amp;amp; CSS, to more complicated subjects regarding web-development, I write about all of them.&lt;/p&gt;

&lt;p&gt;You might know the expression "That's a piece of cake". In Dutch, we have a saying that goes likewise. Roughly translated back to English, it says &lt;strong&gt;"That's an Egg"&lt;/strong&gt;. With my writing, I want to make you feel confident in your ability as a developer and think; "That's an Egg!".&lt;/p&gt;




&lt;p&gt;You can check it out over at &lt;strong&gt;&lt;a href="https://thatsanegg.com"&gt;"www.thatsanegg.com"&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you're ready to dive straight into an article, I'd recommend these:&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://www.thatsanegg.com/blog/your-first-css-animation/"&gt;Your First CSS Animation&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Read all about creating beautiful and smooth web-animations using just CSS.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://www.thatsanegg.com/blog/create-landing-pages-like-stripe-does/"&gt;Create landing pages like Stripe does&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Using basic CSS tricks to create beautiful websites.&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;a href="https://www.thatsanegg.com/blog/animating-text-like-sketch-does-using-only-css/"&gt;Animating text like Sketch does using only CSS&lt;/a&gt;
&lt;/h3&gt;

&lt;p&gt;Using CSS to create a beautiful staggering text animation.&lt;/p&gt;




</description>
      <category>beginners</category>
      <category>html</category>
      <category>css</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
