<?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 Elsa Carlstrom on Medium]]></title>
        <description><![CDATA[Stories by Elsa Carlstrom on Medium]]></description>
        <link>https://medium.com/@elsa.carlstrom?source=rss-7765f75b527d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NIWaaxLbojnKTNNI_kFGkw.png</url>
            <title>Stories by Elsa Carlstrom on Medium</title>
            <link>https://medium.com/@elsa.carlstrom?source=rss-7765f75b527d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:04:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elsa.carlstrom/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[Destructuring Objects — a beginners guide]]></title>
            <link>https://medium.com/@elsa.carlstrom/destructuring-objects-a-beginners-guide-4e9d28d87018?source=rss-7765f75b527d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e9d28d87018</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Elsa Carlstrom]]></dc:creator>
            <pubDate>Sun, 05 Dec 2021 12:33:51 GMT</pubDate>
            <atom:updated>2021-12-06T11:00:52.485Z</atom:updated>
            <content:encoded><![CDATA[<h3>Destructuring Objects — an introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDRRhxjQoWQxK1tquuQsQg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@pinjasaur?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Paul Esch-Laurent</a> on <a href="https://unsplash.com/photos/oZMUrWFHOB4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It can be quite a cumbersome project to extract the data inside JavaScript objects but for new developers I have a quick tip that I would like to share. Below I’ll cover the destructuring of objects and the rest operator which can make the handling of objects a much smoother ride. Both of these features were added to JavaScript in ES6 and were not available in versions previous to that.</p><h4><strong>Object destructuring</strong></h4><p>Let’s say we have a simple object containing three properties and every property has a value.</p><pre>const objectName = {<br>key1: “value1”,<br>key2: “value2”,<br>key3: “value3”<br>}</pre><p>To get the values from inside the object we could reach it by referring to it using the name of the object and the keys of the properties like this.</p><pre>console.log(objectName.key1, objectName.key2, objectName.key3)<br><em>// &quot;value1&quot;, &quot;value2&quot;, &quot;value3&quot;</em></pre><p>To avoid a lot of code inside the functions themselves we could declare e.g. a const for every property which reduces the amount of code used later on but it results in more lines of code in total.</p><pre>const key1 = objectName.key1<br>const key2 = objectName.key2<br>const key3 = objectName.key3</pre><pre>console.log(key1, key2, key3) <em>// &quot;value1&quot;, &quot;value2&quot;, &quot;value3&quot;</em></pre><p>The destructing approach shown below makes values of the properties accessible by only having to refer to the key without first having to declare them one by one.</p><pre>const { key1, key2, key3 } = objectName</pre><pre>console.log(key1, key2, key3) <em>// &quot;value1&quot;, &quot;value2&quot;, &quot;value3&quot;</em></pre><p>Quite neat, isn’t it?</p><h4><strong>The rest parameter</strong></h4><p>When only some of the properties of an object are to be deconstructed you can create a new object of the remaining properties by extracting them using the rest parameter. It is characterised as the last parameter in the syntax starting with three dots (…) and followed by a suitable name for the new object that is being created.</p><pre>const { key1, …newObject } = objectName</pre><pre>console.log(key1) <em>// &quot;value1&quot;</em><br>console.log(newObject) <em>// {key2: &quot;value2&quot;, key3: &quot;value3&quot;}</em></pre><p>Worth noting is that there can only be one rest parameter in the syntax and it must always be the last parameter within the curly brackets.</p><p>I’ve set up a Codepen if you’d like to play around with object destructuring and the rest parameter: <a href="https://codepen.io/elsisco/pen/QWqjrXw">https://codepen.io/elsisco/pen/QWqjrXw</a></p><h4>Further exploration</h4><p>This was just a sample of how you can use destructuring to write better and more neat looking code. There is a lot more that can be done through destructuring, not just when dealing with objects but with arrays as well. <br>If this sparked your curiosity I encourage you to go ahead and explore it further — you will not regret it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e9d28d87018" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[12 down, 12 to go — reporting halfway through the Technigo Bootcamp]]></title>
            <link>https://medium.com/@elsa.carlstrom/12-down-12-to-go-reporting-halfway-through-the-technigo-bootcamp-fd1cf3539b08?source=rss-7765f75b527d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd1cf3539b08</guid>
            <category><![CDATA[frontend-developer]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[technigo]]></category>
            <dc:creator><![CDATA[Elsa Carlstrom]]></dc:creator>
            <pubDate>Sun, 07 Nov 2021 16:47:50 GMT</pubDate>
            <atom:updated>2021-11-07T17:30:58.554Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>12 down, 12 to go — reporting halfway through the Technigo Bootcamp</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8JmSCd1Is0V9xLUw1pR_rQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@lukevz?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Luke van Zyl</a> on <a href="https://unsplash.com/s/photos/middle?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>At the end of every 4-week sprint so far I’ve managed to take a step back and briefly admire the great progress and dedication I’ve seen in my class, my team and in myself, before diving head first into the next one. After the first we could suddenly build great-looking one-pagers without any previous experience of HTML and CSS. After the second JavaScript wasn’t an abstract language any more and we could build rich applications using JSON API:s. At the end of this sprint we are suddenly quite comfortable working with state and components in React with JSX and also been introduced to React Router and styled components. I’m totally in awe.</p><h4>The magic of Code from a Designers point of view</h4><p>I didn’t know what kind of journey I was embarking when accepting my space in the class of fall 2021. Coding had always felt alien to this graphic designer. I knew that I wanted to study something more and it was when considering UX that my eyes were unintentionally opened up to to coding. I needed some basic knowledge of programming in order to to apply so I enrolled for a beginners class in C# offered in the spring. Everything about it felt abstract but it sparked my curiosity. At some point I realised that coding is just another kind of design and the products you build can communicate and interact with a user on a whole other level than the one-way communication I was used to producing. And just in time I found Technigo.</p><h4>Why they won’t just give us the fishes</h4><p>The step into the world of web development has also presented to me a distinctly different way of thinking of myself in relation to others I haven’t quite experienced before, especially in education. Instead of focusing on individual performance and getting the right grades we are being taught the power of being a community and how sharing our knowledge creates a collective progress that benefits everyone. The style of teaching is somewhat different too. To use the proverb, they’re not giving us a fish, and in my experience they’re not quite teaching us how to fish either, but rather how to find or create the tools needed in order to solve problems and to teach ourselves…well, anything really. By not giving us all the answers and making us find them ourselves I believe they are turning us into a bunch of creative problem solvers and better future developers. It definitely isn’t easy, but I wouldn’t have it any other way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd1cf3539b08" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>