<?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 Danny de Vries on Medium]]></title>
        <description><![CDATA[Stories by Danny de Vries on Medium]]></description>
        <link>https://medium.com/@dandevri?source=rss-ba53e16b3113------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*tOpCuqIN_tDeTQIzUoktOw.jpeg</url>
            <title>Stories by Danny de Vries on Medium</title>
            <link>https://medium.com/@dandevri?source=rss-ba53e16b3113------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 22:37:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dandevri/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[100 Days of Code Takeaways]]></title>
            <link>https://medium.com/@dandevri/100-days-of-code-takeaways-1cc47de4f481?source=rss-ba53e16b3113------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cc47de4f481</guid>
            <category><![CDATA[100daysofcode]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[100daychallenge]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Danny de Vries]]></dc:creator>
            <pubDate>Mon, 01 Oct 2018 17:35:26 GMT</pubDate>
            <atom:updated>2018-10-01T17:37:58.940Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*kEEkoZziWrxSVHhQyRjZwQ.png" /></figure><blockquote><em>About a year ago I made a promise to myself: spend an hour every day learning new stuff. In the weekends I would watch a course or read some articles but the time devoted on ‘learning’ was really inconsistent. That’s when a couple of months later I started my 100 days of code challenge.</em></blockquote><h3>What is 100 Days of Code?</h3><p>You’ve probably seen this hashtag a couple of times but here’s a quick primer.</p><blockquote><em>Code for at least an hour every day for the next 100 days. Make this a public commitment and track your progress.</em></blockquote><p>Some personal extra rules:</p><ul><li>Aside from the code I will create a log and update it each day.</li><li>The code examples and log are pushed <a href="https://github.com/dandevri/cod.es">to GitHub</a>.</li><li>I code at work but that time doesn’t count towards this challenge.</li></ul><h3>Goals</h3><p>The 100 days were focused on improving my <strong>core JavaScript</strong> knowledge. My first thought was: <em>I don’t have the discipline to keep it up for a 100 days</em> and <em>why should I even bother?</em> After finishing the <a href="https://everythingweb.org/">Minor web Development</a> at AUAS I started noticing that I was still struggling with even basic JS concepts. From not knowing enough to not knowing at all.</p><p>It was this moment that I realized that these 100 days might be useful to force me to actually learn these concepts and start taking action.</p><p>That coding for an hour evolved around three main pillars:</p><ul><li>Refresh my basic JavaScript knowledge (e.g <a href="https://www.freecodecamp.org/">FreeCodeCamp</a>)</li><li>Learning new syntax (e.g <a href="https://es6.io/">ES6 for Everyone</a>)</li><li>Solving real world problems (e.g <a href="https://javascript30.com/">JavaScript 30</a>)</li></ul><h3>Takeaways</h3><p>After coding for about 100+ hours I wanted to share some takeaways and the upsides this challenge can have.</p><h3>You form a habit</h3><p>This one is a bit obvious but I really felt it. You just have this solid goal at the end of each day that you have to complete this. I used Trello for daily tasks and just made a reminder task everyday.</p><h3>You can do more than you think</h3><p>When I first started I put some resources in the readme and thought that those kept me busy for at least 100 days. In the end I worked my way trough far more resources than originally thought. After almost 30 days I did all the resources I wanted to do when I started.</p><h3>The form of the resourcedoes matter</h3><p>I couldn’t just read for a whole hour in a book I had to switch from time to time. Use different types of resources: read a book one week and watch a video course the other week. Switch it up.</p><h3>Split up time</h3><p>The first week or two I just sat down for an hour straight but after I started noticing that I was more focussed by splitting up the time throughout the day. Maybe two sessions of 30 minutes or even three of 20 minutes. Mornings were pretty good for reading while the evening was more suited for video’s.</p><h3>Track your time</h3><p>Look at your tracked time to get a grasp of how you’re progressing. Maybe the mornings you finish more resources than in the afternoon. It also gives you credibility, you can make the logged time public if you want to.</p><h3>Repetition isn’t bad</h3><p>Covering the same topic or same concept multiple times isn’t bad. It’s a nice refresher and most of the time the person handling the topic has a different way of explaining so you get multiple views on one specific topic.</p><p>It was worth it. You feel more confident while writing JavaScript, you become better at explaining concepts to other people and the code you write becomes more explicit because you make thoughtful decisions based on the knowledge you gained.</p><blockquote><em>Thanks for reading! You can follow me on @dandevri and feel free to reach out to me if you have something to say!</em></blockquote><p><em>Originally published at </em><a href="https://dev.to/dandevri/100-days-of-code-takeaways-4b5k"><em>dev.to</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cc47de4f481" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The definition of APIs]]></title>
            <link>https://medium.com/@dandevri/the-definition-of-apis-bd96f3395b48?source=rss-ba53e16b3113------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd96f3395b48</guid>
            <category><![CDATA[interfaces]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[websocket]]></category>
            <category><![CDATA[code]]></category>
            <dc:creator><![CDATA[Danny de Vries]]></dc:creator>
            <pubDate>Fri, 30 Jun 2017 17:44:41 GMT</pubDate>
            <atom:updated>2018-05-01T12:05:15.050Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>You can’t have a conversation with a developer without him mentioning the word <strong>API</strong> atleast 50 times. In this post I want to explore what the definition of a API is and what types of APIs there are.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zn5MtJLVrTkf23fHJoe6tg.jpeg" /><figcaption>Really working hard on something here. Not sure what it was. 👨🏼‍💻</figcaption></figure><h4>The definition</h4><p>Connectivity is an amazing thing. How do different applications and devices connect to each other? It’s the Application Programming Interface.</p><blockquote>APIs create connectivity between applications and devices.</blockquote><p>Most computer programs provide data for humans in the form of a <strong>User Interface, </strong>to make the consumption of the data as enjoyable as possible. Operating Systems all provide GUI’s (graphical user interace) to interact with the system. The user doesn’t really care about the technical stuff. Similarly an API provides a simpler way for developers to interact with other kinds of software. The data needs to be consumed by another program instead of a ‘user’.</p><blockquote><a href="https://www.programmableweb.com/news/apis-are-user-interfaces-just-different-users-mind/analysis/2015/12/03">As with a UI tailored to humans, software needs an interface that makes it easy to consume data and/or functionality.</a></blockquote><p><strong>The API is the messenger </strong>that takes requests and tells the system what to do and returns the response. You can for example access the database of another company. The API has an interface and can ask for information about other systems. You can say that the API is the <strong>middleman </strong>to communicate between different programs.</p><p>The API layer help <strong>standardise the coding process.</strong> On the web that might be a <strong>JavaScript </strong>based API, it’s an abstraction of the underlying process.</p><h4>The Wall Socket Analogy</h4><p>The programmable web published a great series; <a href="https://www.programmableweb.com/api-university/what-are-apis-and-how-do-they-work"><em>what are APIs and How Do They Work?</em></a><em> </em>They have a great little analogy that I want to refer to;</p><blockquote>You can think of an API in the context of a wall socket. The electricity is the service and the device is the consumer of that service. The consumer in this case is outsourcing its power requirement to the provider of a service. Electrical sockets have predictable patterns. The plug is standard and the power it delivers (volt) is consistent and mostly the same value. Likewise, an API specifies how software components should interact with each other.</blockquote><p>Imagine how you would get power without such a standard.</p><h4>The Benefits</h4><p>APIs can not only help developers to write better pograms, it can help the community around the program aas a whole because of the API infrastructure;</p><ul><li>If the API is public everybody can plug into it and start working on projects.</li><li>Other programs can easily be moved, the data remains the same.</li><li>It adds a layer of abstraction to the underlying service.</li><li>APIs make developers more productive (they don’t have to start from scratch)</li></ul><p>On the web this means you can outsource functionality to the browser and add data from other services. Browsers offer a standard way for web applications to access, cameras, audio &amp; bluetooth for example. This is the same for services / apps such as Slack or Twitter. You can use the <a href="https://api.slack.com/">Real Time slack API</a> to send messages without the Slack interface with just a few lines of code.</p><h4>Types of APIs</h4><p>You can ask for specific information by calling endpoints with specific parameters. You basically ask for subsets of the large database from the service. There are no rules of how developers should connect their own applications to an API but several standards have arised.</p><p>The first distinction to make is if the API is <strong>public </strong>or<strong> private.</strong></p><ul><li>If the API is <em>fully public</em> you can request data without any additional information.</li><li>If the API is <em>public </em>you can request data with a public keyprovided by the service. By adding the key when you make the request you are allowed to make API calls. Be aware that with a public key most APIs will have limitations.</li><li>If the API is <em>private </em>you will need a key as stated above but the key <em>isn’t publicly available.</em> The service will personally need to provide you with a key.</li></ul><p><strong>Authentication:</strong><br>If you want to manipulate data from a specific user (the user has to sign in) most APIs use the OAuth open protocol.</p><blockquote>An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications</blockquote><p>It allows you to interact with protected data from a specific data of a user. For example; add playlists to a specific Spotify account without using a Spotify interface.</p><p><strong>Rest API:<br></strong>Most interfaces on the web make connections using the HTTP protocol. You can ask for data using the API endpoint addressable over the web with the HTTP protocol. (GET, PUT, POST &amp; DELETE) You can make a request to a specific endpoint and because an HTTP request is always a round trip you get back the response for use in your own application. On the web most of the time this response is in .json format.</p><p><strong>RTM API:<br></strong>Some services take a slightly different approach and instead of using the HTTP protocol they use a WebSocket-based API which allows you to receive events in real time. Instead of <em>asking </em>for information the API can <em>push</em> information to you.</p><p>You can achieve a kind of similar result with a Res API by <strong>Polling</strong>. (Simply calling the endpoint very frequently) Polling is kind off the same as a refresh button. It works but it isn’t the best solution.</p><h4>WEB APIs</h4><p>To be clear; most of this post cover APIs from other services to request data. There are also specific Web APIs. They are used for manipulating the DOM and can be accessed using JavaScript with object types. The Web APIs extend the functionality of a web browser and thus are browser specific.</p><ul><li>Standard JavaScript APIs. These are the same core JavaScript and DOM APIs that you can use in standard web apps.</li><li>HTML features and other emerging APIs which are browser specific.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9fecMqxHY30miR9hSt2XZw.png" /><figcaption>Mozilla keeps a nice list of all the cool Web APIs 😎</figcaption></figure><blockquote>Hope this post clarifies some of the concepts around APIs, why should you use them and why they are awesome⚡️ in general!</blockquote><blockquote>Thanks for reading! Feel free to reach out to me if you have something to say!</blockquote><ul><li><a href="http://dandevri.es/">Website</a></li><li><a href="https://twitter.com/dandevri">Twitter</a></li><li><a href="https://www.instagram.com/dandevri/">Instagram</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd96f3395b48" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building conversational UI demystified (using wit.ai)]]></title>
            <link>https://medium.com/dandevri/building-conversational-ui-with-wit-ai-demystified-77edfe749ca2?source=rss-ba53e16b3113------2</link>
            <guid isPermaLink="false">https://medium.com/p/77edfe749ca2</guid>
            <category><![CDATA[conversations]]></category>
            <category><![CDATA[bots]]></category>
            <category><![CDATA[artifical]]></category>
            <category><![CDATA[natural-language]]></category>
            <dc:creator><![CDATA[Danny de Vries]]></dc:creator>
            <pubDate>Tue, 27 Jun 2017 21:23:50 GMT</pubDate>
            <atom:updated>2017-06-27T21:25:01.854Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>The last couple of weeks I’ve been really into conversational UI. (bots) When I started off the whole <em>‘bot world’</em> seemed full of buzzwords. As I spend time building a bot the terminology made more sense and here I am; demystifying some common jargon used in conversational UI.</blockquote><p>The examples are in <strong>dutch</strong> because the bot was born in the Netherlands. 🇳🇱 Maybe you won&#39;t get specific sentences but you will understand the general flow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZX00scoZ6HMG3ZUC2k_l1Q.jpeg" /></figure><p>Let’s start off with some buzzwords and the general flow of how it’s build.</p><h4>Natural language processing</h4><p>The most important thing a bot needs to do is to understand sentences the user sends. Kinda off obvious but there is a general flow for this. In <strong>wit.ai </strong>the underlying structure that parses text is called <a href="https://github.com/facebookincubator/duckling"><strong>duckling</strong></a><strong>. </strong>It parses <strong>natural language </strong>(the way we humans talk) into <strong>structured data.</strong></p><p><em>Example from the GitHub repo:</em></p><pre>&quot;the first Tuesday of October&quot;<br>=&gt; {&quot;value&quot;:&quot;2017-10-03T00:00:00.000-07:00&quot;,&quot;grain&quot;:&quot;day&quot;}</pre><p>It’s really fancy and I don’t want to go down the rabbit hole with <strong>natural language processing</strong>. I don’t even know half of it and it would be a whole book by itself. Let’s have a look at a simple implementation within wit.ai.</p><h3>Wit.ai flow</h3><h4>Entities</h4><p>When the users sends a sentence you want to detect what are called entities.</p><blockquote>An entity is a piece of information you would want to detect from a user input.</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPbBQ3EdoSID8Yg%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2F3oKIPbBQ3EdoSID8Yg&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oKIPbBQ3EdoSID8Yg%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="175" frameborder="0" scrolling="no"><a href="https://medium.com/media/d0d6261b2e7d9caa0a41de7e421fc9ec/href">https://medium.com/media/d0d6261b2e7d9caa0a41de7e421fc9ec/href</a></iframe><p>Above you can see how wit extracts all the important entities from a user sentence. This is the most important step, getting the entities right. If the parser gets the right entities you can hit <strong>validatie.</strong></p><p>It will query the app and adds it to the processing. It makes the parser ‘smarter’ and it can extract the entities even better. Even with more complex sentences. Another useful feature is that you can make <strong>synonyms. </strong>For example <em>romance </em>and <em>romantic</em> can both be the entity <strong>love.</strong></p><h4>Query</h4><p>Now that you have validated some entities you can query you’re app and see what the response,mstructured data, is.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fl0IyjGHrkhQfDpZIs%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0IyjGHrkhQfDpZIs%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Fl0IyjGHrkhQfDpZIs%2F200.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="132" frameborder="0" scrolling="no"><a href="https://medium.com/media/835c0bb1ae7a0d7aea5447149946229c/href">https://medium.com/media/835c0bb1ae7a0d7aea5447149946229c/href</a></iframe><p>Below is a structured version:</p><pre>{<br>  &quot;msg_id&quot;: &quot;0C5MyEdgPv3wBkgR3&quot;,<br>  &quot;_text&quot;: &quot;Ik zoek een Nederlands boek van Saskia Noort&quot;,<br>  &quot;entities&quot;: {<br>    &quot;language&quot;: [<br>      {<br>        &quot;confidence&quot;: 0.72945154848646,<br>        &quot;value&quot;: &quot;dut&quot;,<br>        &quot;type&quot;: &quot;value&quot;<br>      }<br>    ],<br>    &quot;type&quot;: [<br>      {<br>        &quot;confidence&quot;: 0.78767754925405,<br>        &quot;value&quot;: &quot;book&quot;,<br>        &quot;type&quot;: &quot;value&quot;<br>      }<br>    ],<br>    &quot;contact&quot;: [<br>      {<br>        &quot;suggested&quot;: true,<br>        &quot;confidence&quot;: 0.99960075112416,<br>        &quot;value&quot;: &quot;Saskia Noort&quot;,<br>        &quot;type&quot;: &quot;value&quot;<br>      }<br>    ],<br>    &quot;intent&quot;: [<br>      {<br>        &quot;confidence&quot;: 0.99998293857858,<br>        &quot;value&quot;: &quot;search&quot;<br>      }<br>    ]<br>  }<br>}</pre><p>You can see it detects the right entities. The confidence is a decimal number that wit.ai sends to show how well a word matches an entity.</p><h4>Stories</h4><p>Now that the API gets the right entities you need to make sure you’re bot sends something back or even makes calls to external API’s. Within wit.ai these are called <strong>stories. </strong>Each story is basically a conversation you have with the bot. Let’s take a simple greeting for example:</p><pre>User: Hello, I am Danny.<br>Bot: Hi Danny! My name is bot.</pre><p>The user sentence in this case has an intent: greeting. Based on the structure of the sentence and the possible entities wit.ai detects that this is a greeting. To make it respond a little bit more personal you detect the name entity (in this case <strong>Danny</strong>) and store it in a variable. The bot now responds with a basic message to the user.</p><p>But what if you want to make more complex stories? What if you need more information or the user doesn’t provide enough information in the first place?</p><pre>User: I am searching for a dutch book.<br>Bot: From what author?<br>User: Saskia Noort<br>Bot: &#39;Huidpijn&#39; is the newest boek from Saskia Noort.</pre><p><em>In the above example the user doesn’t provide the name of the author.</em></p><p>This type of conversation is called <strong>slot-based. </strong>The bot needs (more) information from the user. You use context branches for this. When entities are missing you can ask a follow up question.</p><h4>Actions</h4><p>Based on the user’s sentence you might want to make API calls. These moments in the conversation are called actions. Let’s bring back the previous example:</p><pre>User: I am searching for a dutch book.<br>Bot: From what author?<br>User: Saskia Noort <br><strong>apiCall(findBook)</strong><br>Bot: &#39;Huidpijn&#39; is the newest boek from Saskia Noort.</pre><p>Between these basics message you can send actions. These are just keyword and names of methods. If you get these responses in you’re own tech stack you can then make API call’s and even store those in variables.</p><p>The response has a property called type which can have the following values:</p><ol><li>msg: Message from the bot as a string</li><li>action: Name of the action you need to perform</li><li>stop: When the conversation is over</li></ol><p>The stop command indicates when the story (conversation) is over and the user can then start any other story.</p><h3>Personality</h3><p>Every bot still needs an interface. At its core, interfaces are always about communication.</p><blockquote>Conversational interfaces are so fascinating because it is a form of communication that everyone uses and understands.</blockquote><p>When a bot doesn’t give the right response they always blame the interface and the knowledge of the system. We type natural language so we expect the bot to respond in the same natural way. <a href="https://uxdesign.cc/skeuomorphism-in-conversational-design-6ff9aea98829">This post</a> from Adrian and this <a href="https://blog.intercom.com/principles-bot-design/">post from Intercom</a> really helped to shape the bot do this right.</p><h4><strong>Timing</strong></h4><p>A bot can respond way faster than a human. You can build in a delay to make it look like it’s thinking. For example when it’s making external API calls.</p><h4>Voice</h4><p>Voice is part of the branding. It shapes the identity of the bot. Once the user associates a voice with something, it becomes part of the identity.</p><h4>Emotion</h4><p>A golden rule is:</p><blockquote><em>Don’t pretend to be human.</em></blockquote><p>You need to have empathy for the bot if it doesn’t give the right answer but don’t use the metaphor of making it human. Always emphasise the fact that it’s a system. Take error messages for example:</p><pre>❌ No results are found.</pre><pre>✅ I couldn&#39;t find anything for you! Try searching again with different keywords.</pre><p>Research shows that people prefer computers who are friendly and similar to them. Respond human-like but not human.</p><blockquote>These are just basic concepts of building conversational UI. Some of these terms are specific to wit.ai but most of them are generally accepted and good practices. Go out and try to build your first build 🤖. It’s a struggle in the beginning but once you get the hang of it, it’s not that bad after all. It feels really magical! ✨</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLiYlLsqzaiKHdLRBk3YIg.jpeg" /><figcaption>Or don’t care at all and have a nice beer in the sun. ☀️</figcaption></figure><blockquote>Thanks for reading! Feel free to reach out to me if you have something to say!</blockquote><ul><li><a href="http://dandevri.es/">Website</a></li><li><a href="https://twitter.com/dandevri">Twitter</a></li><li><a href="https://www.instagram.com/dandevri/">Instagram</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77edfe749ca2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dandevri/building-conversational-ui-with-wit-ai-demystified-77edfe749ca2">Building conversational UI demystified (using wit.ai)</a> was originally published in <a href="https://medium.com/dandevri">dandevri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using GitHub as a team.]]></title>
            <link>https://medium.com/@dandevri/using-github-as-a-team-61f189eaa8ff?source=rss-ba53e16b3113------2</link>
            <guid isPermaLink="false">https://medium.com/p/61f189eaa8ff</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Danny de Vries]]></dc:creator>
            <pubDate>Mon, 26 Jun 2017 20:51:22 GMT</pubDate>
            <atom:updated>2017-06-26T20:52:39.035Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Using GitHub for the first time has a steep learning curve. To use GitHub with a team is a whole different ball game. Here are some best practices I’ve come to know during my team projects.</blockquote><p>Throughout the various OSS projects that I contributed to one thing always takes up more time than I expect. <strong>Setting a Git(Hub) standard </strong>for working on a repository. (or<em> repo</em> as the cool kids say it) Below are some best practices that really helped me along the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*wCLDaW9kJFbdOtsU1AolBg.jpeg" /><figcaption><a href="https://twitter.com/thepracticaldev?lang=en">https://twitter.com/thepracticaldev</a></figcaption></figure><h4>Project your branches.</h4><p>The first thing that prevents headaches in the future is to protect the master branch and make a develop one right away. It disables <strong>force pushing </strong>and prevents branches from being <strong>deleted</strong>. A great way to protect you’re project and make sure that you don’t have to 🚑 hotfix anything if you use <em>continuous integration </em>for example.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3oKIPi0nYdqMHvdpTy%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oKIPi0nYdqMHvdpTy%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3oKIPi0nYdqMHvdpTy%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="241" frameborder="0" scrolling="no"><a href="https://medium.com/media/de7dfb3a6f64ad617de7a43f2caa45bc/href">https://medium.com/media/de7dfb3a6f64ad617de7a43f2caa45bc/href</a></iframe><h4>Consistent branch naming.</h4><p>With the master branch protected contributors can’t push straight into master. They have to use branches and make pull requests. Coming up with a <strong>naming convention </strong>for the branches is very helpful. One of the things is to use <strong>prefixes:</strong></p><ul><li>fix/...</li><li>feature/...</li><li>enhancement/...</li><li>And so on…</li></ul><p>In a quick overview you can see what each branch is for and they have consistent naming.</p><h4>Pull requests.</h4><p>Make sure PR’s can’t be merged without a required review. If you protect a branch you can also enable Require pull request reviews before merging. Every PR that comes in has to be reviewed by another contributor.</p><p>So, merging is blocked by default. A contributor has to manually navigate to the PR and hit review changes. You then can either:</p><ul><li>Make <strong>comments</strong> for general feedback. (No explicit approval)</li><li><strong>Approve </strong>the changes and the PR can be merged</li><li><strong>Request changes, </strong>things that have to be fixed before merging.</li></ul><p>A great way to get a quick quality check before the code get merged.</p><ul><li>It keeps the overall quality of the code on point.</li><li>More eyes 👀 are better. Somebody else can spot a mistake you might have missed.</li><li>And personally, I think it’s a good way to learn by looking at somebody else’s code.</li></ul><h4>Commit messages.</h4><p>Oh god, commit messages. Always a painful topic to talk about. Everyone has a personal / preferred way to do it. <strong>Chris Beam</strong> has written a great post about this in 2014. It are some general rules but most people find them acceptable.</p><blockquote>You should definitely read the <a href="https://chris.beams.io/posts/git-commit/">full post</a>.</blockquote><p>Here are his seven golden rules:</p><ol><li><a href="https://chris.beams.io/posts/git-commit/#separate">Separate subject from body with a blank line</a></li><li><a href="https://chris.beams.io/posts/git-commit/#limit-50">Limit the subject line to 50 characters</a></li><li><a href="https://chris.beams.io/posts/git-commit/#capitalize">Capitalize the subject line</a></li><li><a href="https://chris.beams.io/posts/git-commit/#end">Do not end the subject line with a period</a></li><li><a href="https://chris.beams.io/posts/git-commit/#imperative">Use the imperative mood in the subject line</a></li><li><a href="https://chris.beams.io/posts/git-commit/#wrap-72">Wrap the body at 72 characters</a></li><li><a href="https://chris.beams.io/posts/git-commit/#why-not-how">Use the body to explain <em>what</em> and <em>why</em> vs. <em>how</em></a></li></ol><p>Ideally your commit title would look like this:</p><pre>Add styling for navigation bar</pre><p>Usually these rules are outlined in the contributing.md and examples are given.</p><h4>Plan your commits.</h4><p>Guilty as charge of commiting a large blob of code. But, planning your commits is also a good strategy to keep yourself in check. Before you go straight into building that feature try to break the feature down into small steps. Each step then represents a commit. <a href="https://dev.to/rpalo/plan-your-commits">Here</a> is a quick little post on <strong>dev.to </strong>about this.</p><h4>Gitmoji.</h4><p>Last but not least the holy grail of commit messages. <strong>GITMOJI 🎉🦄🔥. </strong>Made by<a href="https://carloscuesta.me/"> Carlos Cuesta</a> Gitmoji has to be one of my favorite CLI tools.</p><blockquote><a href="https://gitmoji.carloscuesta.me/">Gitmoji</a> is an initiative to standardize and explain the use of emojis on GitHub commit messages.</blockquote><p>It’s great cause it forces you to categorize your commits and even better, in the history you can easily spot the core of each commit and recognize it by it’s emoji.</p><p>You can use Gitmoji from the command line by installing it globally.</p><pre>npm i -g gitmoji-cli</pre><p>in the project you want to use Gitmoji type:</p><pre>gitmoji -i</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*u04Qy98Dnc3hL2wwtNaAcg.png" /><figcaption>Gitmoji dialog in HyperTerm.</figcaption></figure><p>From now on every git commit (or gc for the oh my zsh users out there) pops up the gitmoji dialog and before you can write you’re title you have to pick a gitmoji.</p><blockquote>Coming up with a consistent GitHub standard and flow may take some time but it’s worth it in the long run. It makes the repo far more maintainable and has saved me from these kind of situations:</blockquote><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FHUkOv6BNWc1HO%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fmrw-show-remote-HUkOv6BNWc1HO&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FHUkOv6BNWc1HO%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="328" frameborder="0" scrolling="no"><a href="https://medium.com/media/7cd45216b3a47b0e025d1c0862395220/href">https://medium.com/media/7cd45216b3a47b0e025d1c0862395220/href</a></iframe><blockquote>Thanks for reading! Feel free to reach out to me if you have something to say!</blockquote><ul><li><a href="http://dandevri.es/">Website</a></li><li><a href="https://twitter.com/dandevri">Twitter</a></li><li><a href="https://www.instagram.com/dandevri/">Instagram</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61f189eaa8ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to JS basics.]]></title>
            <link>https://medium.com/dandevri/back-to-js-basics-22746226cbec?source=rss-ba53e16b3113------2</link>
            <guid isPermaLink="false">https://medium.com/p/22746226cbec</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[concept]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Danny de Vries]]></dc:creator>
            <pubDate>Sun, 25 Jun 2017 18:40:59 GMT</pubDate>
            <atom:updated>2017-06-26T16:58:22.681Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>JS is </em><a href="https://en.wikipedia.org/wiki/Back_to_Basics_(Christina_Aguilera_album)">here to stay</a>, without you I got trouble<em>. To </em>understand <em>you here is a quick refresher on the </em>intro <em>of JavaScript.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ct_7IYxpWRCZdEygYsioQ.jpeg" /><figcaption>This macbook has a JS sticker on it. I don’t normally have this sticker on. Just to make it look pretty for the picture 🌈</figcaption></figure><p>We all read <a href="https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f">this article</a> from last year. (NO!? you’ve been living under a rock or something?) It’s easy to get caught up in a JavaScript library and never get out. I’ve seen people know more about React and jQuery than pure vanilla JS.</p><p>When I started the <a href="http://www.hva.nl/opleiding/communication-and-multimedia-design/communication-and-multimedia-design.html">Minor Web Development</a> at the University of Applied Sciences Amsterdam I had (what buddhist call) a <strong>beginner’s mind.</strong></p><blockquote>It refers to having an attitude of openness, eagerness, and lack of preconceptions when studying a subject, even when studying at an advanced level, just as a beginner in that subject would.</blockquote><p>People around me would sit behind their keyboard and start writing line after line of complex JS code. I would come in, and curious as I was, would ask ‘simple’ questions like;</p><blockquote>Where does this function gets invoked?</blockquote><blockquote>What are the initial arguments of this function?</blockquote><blockquote>Where do you declare this variable?</blockquote><p>And what bothered me is that some people couldn’t give me straight up answers so I could learn from them. I had to ask twice or they didn’t really know the terminology.</p><p>Don’t get me wrong, most people are really great at handling complex JS stuff (and libraries) but to me it feels like they get caught up and lose sight of general JavaScript (programming) concepts.</p><p>So with this in mind I wanted to write a quick (yeah, you can call it a cheat sheet) refresher on basic JS concepts. Mostly for myself but also for all the other folks out there.</p><h4>Programming vs Scripting.</h4><p><a href="https://www.quora.com/Is-JavaScript-a-scripting-or-a-programming-language">People argue</a> <em>programming </em>or <em>programming language </em>isn’t really the correct term to describe JS. JavaScript doesn’t stand by itself, it needs to use a <strong>interpreter</strong>. In most cases this is the browser or a standalone JS engine. It isn’t native machine code (binary 01010) but it needs to be <strong>compiled </strong>and that’s where the browser comes into play.</p><p>To play it safe I would call JavaScript a <strong>scripting language</strong> which falls under the larger category <strong>programming language.</strong></p><h4>Variables.</h4><p>Variables store data and manipulate it. They do this by using a <strong>label </strong>to point to the data. In JavaScript data can be one of the following 7 <a href="https://developer.mozilla.org/nl/docs/Web/JavaScript/Data_structures">data types</a>:</p><ul><li>undefined</li><li>null</li><li>boolean</li><li>string</li><li>symbol</li><li>number</li><li>object</li></ul><p>They can store different values at different times.</p><ul><li>To <strong>declare</strong> a variable: var <em>keyword</em> with myVar<em>name</em> of the variable.</li><li><strong>Store </strong>value in a variable with the <strong>assignment operator: </strong><strong>=</strong></li><li><strong>Initialize </strong>the variable with a data type: 19 (in this case a number)</li></ul><pre>var myVar = 19;</pre><p>A variable that is only declared but has no initial value has the valueundefined.</p><pre>var a; // value is undefined</pre><h4>Functions.</h4><p>You can divide up your code in reusable parts by using <strong>functions.</strong></p><pre>function myFunction() {</pre><pre>// do stuff</pre><pre>}</pre><p>You can call or invoke the function by using the function name and place <strong>parentheses behind them.</strong></p><pre>myFunction()</pre><p>parameters are basically variables that act as placeholders for the values that are to be input to a function when it’s called. You pass a value as input to the function. Many people use the term parameter and argument interchangeably but there is a slight difference.</p><pre>function myFunction(param1, param2) { // These are parameters<br>   console.log(param1 + param2);<br>}</pre><pre>myFunction(1, 2); // These are arguments</pre><p>Values that are passed into a function when it is called are arguments. The placeholders are parameters.</p><h4>Arrays.</h4><p>With arrays you can store multiple data types in one variable. You declare it the same way as a variable but you put [] around the values and seperate each one with a comma. Every value in an array is called a entry.</p><p>You can access data inside array using indexes. Arrays use zero-based indexing. So the first item in the array starts with a 0.</p><h4>Objects.</h4><p>Objects are similar to arrays, except that instead of using indexes you access the data in objects through what are called properties. Every property is made up of a key and a value.</p><pre>var dog = {<br>  &quot;name&quot;: &quot;Peter&quot;,<br>  &quot;legs&quot;: &quot;4&quot;<br>}</pre><blockquote>The stuff above is a basic outline of some of the core JavaScript terminology. Some of the stuff that I need to remind myself of on the daily. Stuff that people, IMHO, need to refresh more often. Hope this helps and next time you want to sound cool; try to use the right terminology. 👌</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5YQZApDdoHpaz3iwrujyNw.gif" /><figcaption>Look 👀 it’s <a href="https://medium.com/u/fac246e784d0">Luuk Hafkamp</a> when he finally got a complex function working 🎉</figcaption></figure><blockquote>Thanks for reading! Feel free to reach out to me if you have something to say!</blockquote><ul><li><a href="http://dandevri.es/">Website</a></li><li><a href="https://twitter.com/dandevri">Twitter</a></li><li><a href="https://www.instagram.com/dandevri/">Instagram</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22746226cbec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dandevri/back-to-js-basics-22746226cbec">Back to JS basics.</a> was originally published in <a href="https://medium.com/dandevri">dandevri</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My write up of CSS Day Conference ‘17.]]></title>
            <link>https://medium.com/@dandevri/my-write-up-of-css-day-conference-17-eb6db74b5268?source=rss-ba53e16b3113------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb6db74b5268</guid>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[amsterdam]]></category>
            <dc:creator><![CDATA[Danny de Vries]]></dc:creator>
            <pubDate>Sat, 24 Jun 2017 15:01:28 GMT</pubDate>
            <atom:updated>2017-06-24T22:58:30.734Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>So, a little over a week ago I attended <a href="https://cssday.nl/2017">CSS Day</a> (hosted by <a href="https://krijnhoetmer.nl/">Krijn Hoetmer</a><em> </em>and <a href="https://medium.com/u/45da1abc4209">Peter-Paul Koch</a>) in the <a href="https://cssday.nl/2017/venue">Compagnietheater</a> Amsterdam. Here are some of my impressions.</blockquote><p>Since I started calling myself a designer i’ve attended some conferences and meetups. Ranging from big trendy hipster tech conferences (TNW for example) to small meetup’s hosted basically in living rooms. All of them had something in common; they were mainly focused on <em>visual design</em>.</p><p>CSS Day was something else. It was my first ever conference that focuses on <em>development</em> and the vibe was incredible. 🎉</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CBHtwy8XG1T0i9hoMR1tUA.jpeg" /></figure><h3>The Venue.</h3><p>Around 8:30 me and my good friend <a href="https://medium.com/u/194a4a284dc6">Rijk van Zanten</a> walked towards the Compagnietheater. It was a hot day but despite that we were looking forward to all the interesting talks.</p><blockquote>After greeting Krijn, picking up our badge, and drinking the first cup of coffee for the day we headed to the main hall and took a seat in the front row.</blockquote><h3>The People.</h3><p>What stood out to me was the diversity of all the people sitting in the hall. From senior developers that have worked on the web for ages, to students (myself included) who have not even written <em>3000 rules of css. </em>There were <em>3</em><a href="https://cssday.nl/2017/attendees">54 attendees</a> in total and to throw even more numbers at you, <a href="https://www.quirksmode.org/blog/archives/2017/06/women_speakers.html">here</a> are some more statistics by <em>PPK</em> which shows the ratio of the crowd.</p><h3>The Talks.</h3><p>With my Moleskine sketchbook on my lap I was ready to endure the 7 hours filled with talks and amazing content. Would have loved to cover them all but since I have to cook dinner in a minute, here are the ones that <a href="https://giphy.com/search/Mind-Blown">blew my mind.</a></p><h4>Ruth John — The Web Audio API</h4><p>I found out the hard way that the <a href="https://cssday.nl/2017/programme#ruth-john">Web Audio API</a> isn’t just to play and pause audio. In Ruth her talk we took a deep dive into the API and I still think we just saw the tip of the iceberg. The examples showed incredible audio manipulations that I didn’t think were possible. You can see all of her examples and slides in <a href="https://github.com/Rumyra/Talk-Web-Audio">this github repo.</a></p><h4>Ada Rose Edwards — WebVR</h4><p>VR is all the hype. When the word <em>VR</em> drops most people think of expensive hardware that <em>needs </em>to be used in order to get a VR experience. The opposite is true. It may surprise you but you can actually create a<a href="https://cssday.nl/2017/programme#ada-rose-edwards">mazing VR experiences on the everyday web.</a></p><p>Before the talk we all got a ~google~mozilla cardboard to put our phones in and Ada Rose showed us this <a href="https://metaverz.herokuapp.com/">demo.</a> Do I need to say more?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bSQNg775y1mZy9iuCkTNw.png" /><figcaption>Real-Time VR lighting shader buzzword buzzword another buzzword thingy.</figcaption></figure><h4>Patrick Kettner — Progressive Web Apps</h4><blockquote>Are progressive web apps really that <a href="https://cssday.nl/2017/programme#patrick-kettner"><em>progressive</em></a><em>?</em></blockquote><p>During the last couple weeks I optimised some node projects to make them meet the PWA key principles. Since I know some fundamentals of PWA’s Patrick his talk was really inspiring.</p><p>One of the biggest key principles is <strong>progressive </strong>(duh, it’s in the name) but if you follow the PWA key principles it doesn’t necessary mean that your app is truly progressive.</p><p>Service workers for example, they don’t work on every browser. Sometimes you need to use other alternatives. To make your PWA truly progressive, you can’t always rely on the hot new and shiny techniques. You sometimes have to use API’s that are as old as the web itself.</p><h3>Kind Regards.</h3><p>A huge thanks to <a href="https://krijnhoetmer.nl/"><em>Krijn Hoetmer</em></a><em> </em>for providing the tickets to the <strong>Browser API special day</strong>. To close this off, here is a picture of us sitting on a bench. Because sitting on a bench on CSS Day made us look cool. 🦄</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*koMirQ2wQJM3cAUq2TAjAA.jpeg" /><figcaption>🦄</figcaption></figure><blockquote>Thanks for reading! Feel free to reach out to me if you have something to say!</blockquote><ul><li><a href="http://dandevri.es/">Website</a></li><li><a href="https://twitter.com/dandevri">Twitter</a></li><li><a href="https://www.instagram.com/dandevri/">Instagram</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb6db74b5268" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>