<?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 Tobias Vetter on Medium]]></title>
        <description><![CDATA[Stories by Tobias Vetter on Medium]]></description>
        <link>https://medium.com/@tobias.vetter?source=rss-64d1a1e64f68------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*MVMyez0sQsMkv9DEatKR7A.jpeg</url>
            <title>Stories by Tobias Vetter on Medium</title>
            <link>https://medium.com/@tobias.vetter?source=rss-64d1a1e64f68------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:18:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tobias.vetter/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[Debug JavaScript with console.log()]]></title>
            <link>https://medium.com/@tobias.vetter/debug-javascript-with-console-log-9da119bec600?source=rss-64d1a1e64f68------2</link>
            <guid isPermaLink="false">https://medium.com/p/9da119bec600</guid>
            <category><![CDATA[console-log]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Tobias Vetter]]></dc:creator>
            <pubDate>Sun, 27 Jan 2019 19:21:52 GMT</pubDate>
            <atom:updated>2019-01-27T19:21:52.349Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*80Mn0HKZwsk17cIUHKG5YA.jpeg" /><figcaption><strong>The First “Computer Bug”</strong></figcaption></figure><p>You can debug your JavaScript code with console.log(). Seriously, you can!</p><p>The most serious problem a developer has when debugging with JavaScript is, that one can not see <em>which</em> variable is logged. This especially becomes a problem if you debug with multiple variables.</p><p>For example this code produces the following on the browser’s console:</p><pre>const name = &quot;John&quot;;<br>console.log(name);</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tMa5c1dFUXfdkZzbnm4NaQ.png" /></figure><p>However, with ES6/2015s feature <em>Computed Property Names</em> (<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer">see more at MDN</a>) you can improve this to:</p><pre>const name = &quot;John&quot;;<br>console.log({ name })</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ajX6VjuiGAyC2Fh8qxaLBw.png" /></figure><p>As you can see the name of the variable (or rather constant in this case) now gets printed alongside its value to the console.</p><p>This becomes even more useful if you have several different variables and or more complex data structures you want to print to the console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U4UlZOQ6BFWbWs6WStVjHw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9da119bec600" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Synopsis of JavaScript: The Good Parts by Douglas Crockford]]></title>
            <link>https://medium.com/series/synopsis-of-javascript-the-good-parts-by-douglas-crockford-7b67d1b13fa7?source=rss-64d1a1e64f68------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b67d1b13fa7</guid>
            <dc:creator><![CDATA[Tobias Vetter]]></dc:creator>
            <pubDate>Tue, 26 Dec 2017 17:35:54 GMT</pubDate>
            <atom:updated>2017-12-26T17:35:54.463Z</atom:updated>
            <content:encoded><![CDATA[<p>This series is a synopsis of the book <em>JavaScript: The Good Parts</em> by Douglas Crockford (<strong>DC</strong>).</p><p><strong>Preface</strong></p><p><em>JavaScript: The Good Parts</em> is written by DC for programmers (neither “beginners” nor “dummies”) who had little or no contact before with JavaScript. It is not for programming beginners.</p><p>DC thinks of JavaScript as a “surprisingly powerful ” and “small” programming language which can be “easily mastered”, even if its “unconventionality presents some challenges”.</p><p>I would argue that one can even see here how this book became the classic about JavaScript programming. Most programmers thought of JavaScript as a (rather broken) toy before 2008, but DC showed a way how to use it as a powerful language in an efficient way, if one only keeps to a subset of the language: the good parts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b67d1b13fa7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lessons learned from the first position in a company as a web developer]]></title>
            <link>https://medium.com/@tobias.vetter/lessons-learned-from-the-first-job-as-a-web-developer-48d00c192d94?source=rss-64d1a1e64f68------2</link>
            <guid isPermaLink="false">https://medium.com/p/48d00c192d94</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Tobias Vetter]]></dc:creator>
            <pubDate>Thu, 13 Oct 2016 10:33:51 GMT</pubDate>
            <atom:updated>2016-10-13T17:43:30.479Z</atom:updated>
            <content:encoded><![CDATA[<p>Some weeks ago I got my first position in an IT startup company. I work as a web developer, mainly in front end. This article will present you some of the lessens I learned in the first eight weeks or so. <em>The hard way.</em></p><ol><li><strong>Keep to conventions and best practices. </strong><em>Little</em> regards concerning any conventions and best practices will make a lot of things a mess. Bugs will be hard to find, changes will be hard to do and things will be very complicated to understand. In our case we needed to nearly stop the development a week and to clean up and restructure the whole project and still weeks after that we needed fix follow up problems. This could have been easily avoided for the most part by keeping to a standard from the beginning.</li><li><strong>Comment your code and write a manual</strong>. Code is hard to understand. One should comment the code as well as writing a documentation were necessary. This might seem unnecessary if you are working alone of in a small team, but actually you can never know for sure what will happen to the code in the future and how good your memory will be about some details. Without proper commenting and documentation neither your future self nor other coders will have an easy time working on the project.</li><li><strong>Have some kind of plan and architecture</strong>. At the beginning of a project it might be tempting to <em>just start doing stuff</em>. At first this might work well and gives you quite the head start and a good feeling that work is progressing fast. However, soon you will loose the overview and you will start making errors, you will diverting from best practices and conventions, and you will miss to comment and document the stuff you are doing. This will soon lead to problems, even if you will not realize them yourself at first. But development will become slower and slower als well as more and more visible chaotic. At some point you might even reach some dead ends were you just can not go on without reorganizing and cleaning up the whole project. This will not only be frustrating, but also very time consuming.</li><li><strong>Know how to communicate with non-technical persons about your technical stuff</strong>. This is not just because you want to tell something about jour job in IT in your private life, but is is actually essential for your job in a lot of cases. Most of the time you will need to talk to non-coders about coding. <em>Not</em> because they are so interested in technical details, but rather because they want to know about the status of the project, development time and costs or what is possible under certain circumstances or not. If you do not know how to communicate your technical stuff to non-technical persons you will have a hard time working with them as well as a lot of frustrating talks.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48d00c192d94" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>