<?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 Peerigon on Medium]]></title>
        <description><![CDATA[Stories by Peerigon on Medium]]></description>
        <link>https://medium.com/@peerigon?source=rss-8c7a6234fc38------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ENCc7sHAdLDlXXeKcR9a6w.png</url>
            <title>Stories by Peerigon on Medium</title>
            <link>https://medium.com/@peerigon?source=rss-8c7a6234fc38------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 21:07:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@peerigon/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[Lessons learnt about working from home before it was mandatory]]></title>
            <link>https://medium.com/peerigon/lessons-learnt-about-working-from-home-before-it-was-mandatory-b0391f516014?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0391f516014</guid>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[remote-working]]></category>
            <category><![CDATA[work-from-home]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[home-office]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Wed, 22 Apr 2020 12:23:22 GMT</pubDate>
            <atom:updated>2020-11-13T10:03:23.794Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voD865N9K1eVzZhYmL6YAA.jpeg" /><figcaption>Working from Home<a href="http://www.peerigon.com/">@Peerigon</a> ©Adrian Ludwig</figcaption></figure><blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: <a href="https://peerigon.com/en/blog/homeoffice-working-from-home">“Lessons learnt about working from home before it was mandatory”</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0391f516014" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/lessons-learnt-about-working-from-home-before-it-was-mandatory-b0391f516014">Lessons learnt about working from home before it was mandatory</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Can Make a Difference]]></title>
            <link>https://medium.com/peerigon/we-can-make-a-difference-4151e0417ed5?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/4151e0417ed5</guid>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[charity]]></category>
            <category><![CDATA[donations]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Wed, 04 Sep 2019 08:55:43 GMT</pubDate>
            <atom:updated>2020-11-13T10:12:56.828Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vb_9GJLlAfSNAAVdA5KVjw.jpeg" /><figcaption>Peerigon donation projects summer 2019. Illustration by Judith Urban</figcaption></figure><blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: <a href="https://peerigon.com/en/blog/donation-projects-corporate-culture">“We Can Make a Difference”</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4151e0417ed5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/we-can-make-a-difference-4151e0417ed5">We Can Make a Difference</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Peerigon is About the People]]></title>
            <link>https://medium.com/peerigon/peerigon-is-about-the-people-d7024e2c5b3a?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7024e2c5b3a</guid>
            <category><![CDATA[team]]></category>
            <category><![CDATA[inclusion]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[diversity]]></category>
            <category><![CDATA[manifesto]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Tue, 28 May 2019 07:28:35 GMT</pubDate>
            <atom:updated>2020-11-13T10:02:02.252Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FYXEOGw1A5ubHBpV.png" /><figcaption>Illustration by Judith Urban</figcaption></figure><blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: <a href="https://peerigon.com/en/blog/diversity-as-part-of-corporate-culture">“Peerigon is about the people”</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7024e2c5b3a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/peerigon-is-about-the-people-d7024e2c5b3a">Peerigon is About the People</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Async Adventures Or: How I learned to stop worrying and love Promises]]></title>
            <link>https://medium.com/peerigon/async-adventures-or-how-i-learned-to-stop-worrying-and-love-promises-f32335c5eff4?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/f32335c5eff4</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Tue, 09 Apr 2019 09:01:00 GMT</pubDate>
            <atom:updated>2020-11-13T10:17:27.944Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: <a href="https://peerigon.com/en/blog/async-await-javascript-promise-callback">“Async Adventures Or: How I learned to stop worrying and love Promises”</a>.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f32335c5eff4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/async-adventures-or-how-i-learned-to-stop-worrying-and-love-promises-f32335c5eff4">Async Adventures Or: How I learned to stop worrying and love Promises</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scope and Context]]></title>
            <link>https://medium.com/peerigon/scope-and-context-4cdfbc5071cd?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cdfbc5071cd</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 10:50:04 GMT</pubDate>
            <atom:updated>2020-11-13T10:14:16.387Z</atom:updated>
            <content:encoded><![CDATA[<h3>The difference between function scope and context in JavaScript</h3><h4>By Jessica Schneck</h4><blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: <a href="https://peerigon.com/en/blog/function-scope-and-context-javascript">“The difference between function scope and context in JavaScript”.</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cdfbc5071cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/scope-and-context-4cdfbc5071cd">Scope and Context</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS modules]]></title>
            <link>https://medium.com/peerigon/css-modules-7a057fe6ec17?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a057fe6ec17</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css-modules]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[apprenticeship]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Fri, 01 Mar 2019 15:27:49 GMT</pubDate>
            <atom:updated>2020-11-13T10:21:06.364Z</atom:updated>
            <content:encoded><![CDATA[<h3>A short story about CSS modules</h3><h4>By Jessica Schneck</h4><blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: “<a href="https://peerigon.com/en/blog/css-modules-javascript">A short story about CSS modules</a>”.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a057fe6ec17" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/css-modules-7a057fe6ec17">CSS modules</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 7: React, Redux and MobX]]></title>
            <link>https://medium.com/peerigon/week-7-react-redux-and-mobx-260a8f6c97bd?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/260a8f6c97bd</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[apprenticeship]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[celestine-auburger]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Wed, 28 Nov 2018 14:48:15 GMT</pubDate>
            <atom:updated>2018-11-28T14:48:15.748Z</atom:updated>
            <content:encoded><![CDATA[<h4>By Celestine Auburger</h4><p><em>Celestine is currently taking an apprenticeship at </em><a href="https://peerigon.com/"><em>Peerigon</em></a><em> to become a professional web developer. As part of her weekly routine, she publishes a blog post each week about what she has been doing and what she has learned.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z8GCQZUbCSGPF4r0OOi9Ow.png" /></figure><h3>Problem to solve</h3><p><a href="https://medium.com/peerigon/week-6-popular-libraries-and-frameworks-f4edb94aba0">Last time</a> I showed you many different frameworks and libraries. Maybe you remember React, Redux and MobX.</p><p>As a little reminder: React helps you to create reusable components, where Redux and MobX are libraries/frameworks for state management that can be used <em>together</em> with React.</p><p>In my <a href="https://medium.com/peerigon/web-components-bc961c13a0cc">blog article about Web Components</a>, I created a small website. Now I rewrote this small example website three times using:</p><ul><li>React with component state</li><li>React with MobX</li><li>React with Redux</li></ul><p>In the following I will present you the solutions and highlight differences and benefits of each method. The initial idea is when a button gets clicked, its status changes to isActive: true and size: 26. The status of the previous active button is reset to isActive: false and size: 20. Afterwards, only the components that changed should be re-rendered.</p><h3>Solution</h3><h4>React + local state management</h4><p>For me this was the easiest one to implement, because it is a straightforward way. You just define and change the state where you need it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2Fhz68trec%2F28%2F&amp;src=https%3A%2F%2Fjsfiddle.net%2Fhz68trec%2F28%2Fembedded%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/742b9fea41f68630df5911877eba2a48/href">https://medium.com/media/742b9fea41f68630df5911877eba2a48/href</a></iframe><ul><li>No further library needed</li><li>Mutable state</li><li>Easy to understand</li><li>this.setState() triggers a rerendering of the component tree</li><li>Handling of state changes is manual, so if you have to compare a new value with an old one, you do it by hand</li></ul><h4>React + MobX</h4><p>With a little help of <a href="https://hackernoon.com/how-to-build-your-first-app-with-mobx-and-react-aea54fbb3265">this tutorial</a>, MobX was quite nice to get along as it uses the Observer and Observable pattern, which I have been familiar with due to my Java lectures at university. Finally something of my lectures was useful!</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fjsfiddle.net%2F01fse4ha%2F6%2F&amp;src=https%3A%2F%2Fjsfiddle.net%2F01fse4ha%2F6%2Fembedded%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb16f03b18a114031f8416b0d609e90e/href">https://medium.com/media/fb16f03b18a114031f8416b0d609e90e/href</a></iframe><ul><li>npm install --save mobx mobx-react to enable using MobX with React</li><li>Mutable state</li><li>Object Orientated Programming</li><li>Oberserver and Observable Pattern: Observer gets notified about changes of the observable</li><li>Changes to the store should only be triggered by actions, which are functions to control and handle changes</li><li>Multiple stores for states possible</li></ul><h4>React + Redux</h4><p>This was the hardest one for me and I still do not feel really confident when thinking about using Redux. But I think you get used to it, if you work with it more frequently.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fjsfiddle.net%2Fhex72mkL%2F21%2F&amp;src=https%3A%2F%2Fjsfiddle.net%2Fhex72mkL%2F21%2Fembedded%2F&amp;type=text%2Fhtml&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;schema=jsfiddle" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5fdc7d84c220f2979fc4970ff4a1d63/href">https://medium.com/media/a5fdc7d84c220f2979fc4970ff4a1d63/href</a></iframe><ul><li>npm install --save redux react-redux redux-thunk to enable using Redux with React, where the last one enables <a href="https://medium.com/peerigon/week-5-async-programming-a190f41ca652">async programming</a> with Redux</li><li>Immutable state</li><li>One big store object with many properties (single source of truth!), which would be separate stores in a MobX setup for instance</li><li>Time travel through state history possible (for debugging!), cause there’s always a new state object created</li><li>A provider component listens to changes and triggers rerendering</li><li>Reducers for every state property which perform the change on the state according to actions</li><li>Really good debugging tool: <a href="https://chrome.google.com/webstore/detail/redux-devtools/lmhkpmbekcpmknklioeibfkpmmfibljd?hl=de">Redux DevTools</a></li></ul><h3>What I learned</h3><ul><li>Think about your choice of frameworks carefully. Do you really need a framework for state management?</li><li>If possible, work with that solution you feel comfortable with</li><li>Some helpful links:<br><a href="https://codeburst.io/mobx-vs-redux-with-react-a-noobs-comparison-and-questions-382ba340be09">MobX vs Redux with React: A noob’s comparison and questions</a> compares these two ways in a simple way.<br><a href="https://www.robinwieruch.de/redux-mobx-confusion/">Redux or MobX: An attempt to dissolve the Confusion</a> compares these two more detailed.<br><a href="https://hackernoon.com/introduction-to-redux-and-mobx-e6fa98b6479">Introduction to Redux and MobX</a> shows the most important facts and terms about Redux and MobX.<br><a href="https://www.leighhalliday.com/easy-mobx-redux-comparison">Easy MobX and Redux Comparison</a> compares Redux, MobX and local state management very vivid by setting up the same project three times.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=260a8f6c97bd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/week-7-react-redux-and-mobx-260a8f6c97bd">Week 7: React, Redux and MobX</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 6: Popular libraries and frameworks]]></title>
            <link>https://medium.com/peerigon/week-6-popular-libraries-and-frameworks-f4edb94aba0?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4edb94aba0</guid>
            <category><![CDATA[celestine-auburger]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[apprenticeship]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Wed, 28 Nov 2018 12:34:58 GMT</pubDate>
            <atom:updated>2018-11-28T12:34:58.407Z</atom:updated>
            <content:encoded><![CDATA[<h4>By Celestine Auburger</h4><p><em>Celestine is currently taking an apprenticeship at </em><a href="https://peerigon.com/"><em>Peerigon</em></a><em> to become a professional web developer. As part of her weekly routine, she publishes a blog post each week about what she has been doing and what she has learned.</em></p><h3>Problem to solve</h3><p>Writing every little function by hand, especially when you need it in numerous projects, is a waste of time. No wonder you’re thinking, there must be something else. Like, code you can always include in your projects and have these functions ready to use. There’s exactly something like that! They are called libraries and frameworks. But what’s the difference? It’s hard to tell and doesn’t matter so much, as they are solving the same problem in a similar way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xl13Cl72iuIrSjNx" /><figcaption>Photo by <a href="https://unsplash.com/@thepootphotographer?utm_source=medium&amp;utm_medium=referral">Janko Ferlič</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>But for those who are still curious:</p><ul><li>A library is a collection of functions. You call these functions and do something with them. So, you have the power! But there are some rules, e.g. the shape of parameters that are passed to the function.</li><li>A framework is usually a bigger collection of functions or even libraries and is calling your code and does stuff with it (this is also called the <a href="https://en.wikipedia.org/wiki/Inversion_of_control">inversion of control</a>). So, you don’t have the power and obviously have more rules.</li></ul><p>But which libraries and frameworks are out there? I’ll give you an overview and some examples sorted by functionality.</p><h3>Solution</h3><p><a href="https://medium.com/unicorn-supplies/angular-vs-react-vs-vue-a-2017-comparison-c5c52d620176"><strong>Building single page apps</strong></a><strong>:</strong></p><ul><li><a href="https://angular.io/">Angular</a>: good for large apps; offers a lot of structure; quite big in terms of download size</li><li><a href="https://reactjs.org/">React</a>: good for all sizes of apps; offers great flexibility</li><li><a href="https://vuejs.org/">Vue</a>: good for smaller apps; lightweight and easy to learn; a lot of updates because it’s quite new</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7zccGWE4o5LmxegijjK_xQ.png" /></figure><p><a href="https://www.robinwieruch.de/redux-mobx-confusion/"><strong>State Management</strong></a><strong>:</strong></p><ul><li><a href="https://redux.js.org/">Redux</a>: Usually one global store and immutable states</li><li><a href="https://github.com/mobxjs/mobx">MobX</a>: Multiple stores and mutable states</li></ul><p><a href="https://medium.com/welldone-software/an-overview-of-javascript-testing-in-2018-f68950900bc3"><strong>Testing</strong></a><strong>:</strong></p><ul><li><a href="https://jestjs.io/">Jest</a>: works out of the box because it comes with an assertion library and mocking support; supports snapshot testing; quite new</li><li><a href="https://mochajs.org/">Mocha</a>: very flexible by choosing individual helper libraries/frameworks; older and widespread;</li><li><a href="https://github.com/avajs/ava">Ava</a>: minimal testing library; runs tests parallel;</li><li>Assertion-Libraries:</li><li><a href="http://www.chaijs.com/">Chai</a>: BDD &amp; TDD</li><li><a href="https://github.com/Automattic/expect.js/">Expect.js</a>: BDD based on should.js</li></ul><p><strong>Bundler:</strong></p><ul><li><a href="https://webpack.js.org/">Webpack</a>: needs configuration, widespread</li><li><a href="http://browserify.org/">Browserify</a></li><li><a href="https://parceljs.org/">Parcel</a>: works out of the box, very fast</li></ul><p><strong>CSS preprocessor:</strong></p><p>Provides variables, loops, functions and mixins for CSS.</p><ul><li><a href="https://sass-lang.com/">Sass</a></li><li><a href="http://lesscss.org/">Less</a></li></ul><p><strong>CSS postprocessor:</strong></p><p>Extends your written CSS automatically by extending class selectors, or apply prefixes.</p><ul><li><a href="https://postcss.org/">PostCSS</a></li><li>Autoprefixer (part of PostCSS)</li></ul><p><strong>Write CSS in JS:</strong></p><ul><li><a href="https://www.styled-components.com/">Styled components</a></li></ul><p><strong>Server-side Web Frameworks:</strong></p><p>Creating servers, handle routing and render templates.</p><ul><li><a href="http://expressjs.com/">Express</a></li><li><a href="https://koajs.com/">Koa</a></li></ul><p><strong>Server-rendered JavaScript:</strong></p><ul><li><a href="https://nuxtjs.org/">Nuxt</a>: combines Vue, Webpack and Babel</li><li><a href="https://nextjs.org/">Next.js</a>: combines React, Webpack and Babel</li></ul><p><strong>Static typing:</strong></p><ul><li><a href="https://flow.org/">Flow</a>: Not a standalone language, often combined with Babel</li><li><a href="https://www.typescriptlang.org/">TypeScript</a>: Own language, generally a superset of JS</li></ul><p><strong>Transpiler:</strong></p><ul><li><a href="https://babeljs.io/">Babel</a>: compiler for JS to convert ES6+ code into backwards compatible JS</li></ul><p><strong>Linter:</strong></p><ul><li><a href="https://eslint.org/">ESLint</a>: Linter (a tool to find problematic patterns or code that does not follow certain style guidelines), which can be configured</li></ul><p><strong>DOM Utility:</strong></p><ul><li><a href="https://jquery.com/">jQuery</a>: makes DOM traversal and manipulation, event handling, animation, and Ajax much simpler</li></ul><h3>What I learned</h3><ul><li>It is useful to have an overview which libraries and frameworks do exist and what they are doing, so you can google for them when you think you could need them.</li><li>You don’t have to know what each framework does and how it works in detail, because when you worked with a few you’ll get used to a new one pretty easy.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4edb94aba0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/week-6-popular-libraries-and-frameworks-f4edb94aba0">Week 6: Popular libraries and frameworks</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 5: Async programming]]></title>
            <link>https://medium.com/peerigon/week-5-async-programming-a190f41ca652?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/a190f41ca652</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[celestine-aubuger]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[apprenticeship]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Wed, 28 Nov 2018 12:18:28 GMT</pubDate>
            <atom:updated>2018-11-28T12:18:28.667Z</atom:updated>
            <content:encoded><![CDATA[<h4>By Celestine Auburger</h4><p><em>Celestine is currently taking an apprenticeship at </em><a href="https://peerigon.com/"><em>Peerigon</em></a><em> to become a professional web developer. As part of her weekly routine, she publishes a blog post each week about what she has been doing and what she has learned.</em></p><h3>Problem to solve</h3><p>JavaScript can only do one task at once. Therefore, code would be blocked from being executed while e.g. waiting for a server to respond. There are different approaches to solve these problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gEFGhdBrDKu5QkMa" /><figcaption>Photo by <a href="https://unsplash.com/@bradneathery?utm_source=medium&amp;utm_medium=referral">Brad Neathery</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Solution</h3><p>There are four solutions I want to introduce: callbacks, promises, generators and async/await.</p><h4>Callbacks</h4><p>They are the easiest way to write async code, but lead to a so called <em>callback hell</em>. Which means the code is hard to read because the functions are nested inside each other. The callback function is usually executed later. It’s a way to communicate back to the caller that something has been finished. An example for a function with a callback and proper error handling is given below. Notice that by convention, the callback should always be the last argument.</p><pre>function fetchBlogPosts(url, (error, blogPost) =&gt; {<br>    if (error) {<br>        alert(&#39;Oh, no!&#39;);<br>        return;<br>    }<br>    render(blogPost);<br>});</pre><h4>Promises</h4><p>Promises are there to save you from <em>callback hell</em>. They turn something like this:</p><pre>someAsyncFunction((error, result) =&gt; {<br>    someAsyncFunction((error, result) =&gt; {<br>        someAsyncFunction((error, result) =&gt; {   <br>        });<br>    });<br>});</pre><p>into that:</p><pre>someAsyncFunction()<br>    .then(someAsyncFunction)<br>    .then(someAsyncFunction)<br>    .then(someAsyncFunction)</pre><p>Which is way more readable.</p><p>Promises are created with an executor function which accepts a resolve and a reject callback: const p1 = new Promise((resolve, reject) =&gt; {});. The executor is called synchronously.</p><p>Promises are settled in the end, which means they are either fulfilled (success case) or rejected (error case). To handle a settled promise, there are these functions:</p><ul><li>then(onFulfilled, onRejected): can have two listeners, where onRejected is optional.</li><li>catch(onRejected): just listens for the error case</li><li>finally(): is executed when the promise is settled, no matter if fulfilled or rejected.</li></ul><p>For further reading, please refer to <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promises</a>.</p><h4>Generators</h4><p>A <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator">generator</a> is a special iterator created with function* generateSomething(){}. This function does not actually execute when it&#39;s called, but returns a generator instance which provides the following methods:</p><ul><li>next(someValue): Passes someValue to the generator and executes the function till the next <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield">yield</a> or return. It then returns an object with two properties, done and value, where done marks if the generator is finished.</li><li>return(): immediately finishes the generator.</li><li>throw(): throws an exception to the generator.</li></ul><p>A generator can be used to create <em>pausable</em> functions. Everytime the generator hits a yield or return, it stops. Later, it can be resumed using the next() method. This makes them suited for asynchronous tasks that might take longer.</p><h4>Async/Await</h4><p>This is the new option to write asynchronous code in a synchronous way since ES7. The keyword async in front of a function declaration marks it as asynchronous. Inside this function you can wait for a returned promise by using await. Furthermore, it always returns a promise, even without using await. It works similar like a generator and under the hood, it uses the same foundation: a <em>pausable</em> function.</p><h3>What I learned</h3><ul><li>There are always multiple solutions for one problem, some are easier than others.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a190f41ca652" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/week-5-async-programming-a190f41ca652">Week 5: Async programming</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to avoid unnecessary repaints]]></title>
            <link>https://medium.com/peerigon/how-to-avoid-unnecessary-repaints-77a912923171?source=rss-8c7a6234fc38------2</link>
            <guid isPermaLink="false">https://medium.com/p/77a912923171</guid>
            <category><![CDATA[rendering]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[devtools]]></category>
            <category><![CDATA[css-animation]]></category>
            <dc:creator><![CDATA[Peerigon]]></dc:creator>
            <pubDate>Thu, 20 Sep 2018 15:35:03 GMT</pubDate>
            <atom:updated>2020-11-13T10:08:51.947Z</atom:updated>
            <content:encoded><![CDATA[<h4>By Martin Hofmann</h4><blockquote>»Hey, is this animation kind of janky?«<br>»Definitely, I’ve been ignoring it successfully for months!«<br>»What’s going on there? Can we make it smoother?«<br>»Um, no clue… Maybe?«</blockquote><blockquote>We shifted publishing content to our own website. With the new <a href="https://peerigon.com/blog">blog about software development,</a> we will continue to share insights from our team regarding web development, tools, and company culture. We look forward to seeing you there!<br>From now on, you will find the original article here: <a href="https://peerigon.com/en/blog/css-animation-how-to-avoid-unnecessary-repaints">“How to avoid unnecessary repaints”</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77a912923171" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peerigon/how-to-avoid-unnecessary-repaints-77a912923171">How to avoid unnecessary repaints</a> was originally published in <a href="https://medium.com/peerigon">Peerigon</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>