<?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 Pule on Medium]]></title>
        <description><![CDATA[Stories by Danny Pule on Medium]]></description>
        <link>https://medium.com/@danny.pule?source=rss-36a1278299a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*QpRvpYg-80ELv1THKtBDaQ.jpeg</url>
            <title>Stories by Danny Pule on Medium</title>
            <link>https://medium.com/@danny.pule?source=rss-36a1278299a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 20:08:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@danny.pule/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[Export JSON to CSV file using Javascript (in the browser)]]></title>
            <link>https://medium.com/@danny.pule/export-json-to-csv-file-using-javascript-a0b7bc5b00d2?source=rss-36a1278299a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a0b7bc5b00d2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[browsers]]></category>
            <category><![CDATA[csv]]></category>
            <dc:creator><![CDATA[Danny Pule]]></dc:creator>
            <pubDate>Wed, 08 Feb 2017 18:57:17 GMT</pubDate>
            <atom:updated>2018-04-11T09:43:47.396Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Update 2017/10/25:</strong> A couple of readers have posted in the comments about the flexibility of this code in the following scenarios:</blockquote><blockquote>If a field contains the delimiter (e.g. ‘,’)</blockquote><blockquote>If a field contains the quote symbol (e.g. ‘“’)</blockquote><blockquote>If a field contains a new line symbol (e.g. ‘\n’)</blockquote><blockquote>If a field contains non-English characters such as Persian characters etc</blockquote><blockquote>I’m sure there are more cases but as this isn’t a fully fledged library I haven’t felt the need to make the code bullet-proof. My suggestion is to test the below code with your source data and if you are sure that it will always have that set of characters, then use the below code for your project.</blockquote><p>Recently I needed to create this functionality for a project at work. After searching Stack Overflow, various blogs and npm packages, I couldn’t find a reliable solution from one source that <em>just worked </em>in the browser and didn’t rely on server-side processing of any kind.</p><p>I put together my own working version by combining a couple of Stack Overflow answers modifying them slightly to fit most basic use cases. The example in the Gist and Codepen should be fairly easy to modify and add extended functionality if you wanted.</p><p><strong>[SOURCE 1]</strong> <a href="http://stackoverflow.com/questions/11257062/converting-json-object-to-csv-format-in-javascript">http://stackoverflow.com/questions/11257062/converting-json-object-to-csv-format-in-javascript</a></p><p><strong>[SOURCE 2]</strong> <a href="http://stackoverflow.com/questions/14964035/how-to-export-javascript-array-info-to-csv-on-client-side">http://stackoverflow.com/questions/14964035/how-to-export-javascript-array-info-to-csv-on-client-side</a></p><h3>Gist Code Example</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/192ade838e8b0321591cf8893c054088/href">https://medium.com/media/192ade838e8b0321591cf8893c054088/href</a></iframe><p>Using convertToCSV() and exportCSVFile() from the above Gist, you can easily convert a Javascript array of object to JSON and finally to CSV.</p><p>Call the“exportCSVFile(headers, itemsFormatted, fileTitle)” function and insert your own “headers”, “itemsFormatted” and “fileTitle” variables.</p><h3><strong>Codepen Live Demo</strong></h3><p>Live demo below or at <a href="http://codepen.io/danny_pule/pen/WRgqNx">http://codepen.io/danny_pule/pen/WRgqNx</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fdanny_pule%2Fembed%2Fpreview%2FWRgqNx%3Fheight%3D600%26amp%3Bslug-hash%3DWRgqNx%26amp%3Bdefault-tabs%3Djs%2Cresult%26amp%3Bhost%3Dhttp%253A%252F%252Fcodepen.io%26amp%3Bembed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fdanny_pule%2Fpen%2FWRgqNx%2F&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F156471.WRgqNx.small.0a297a2c-caa4-4620-b771-f1a9b9affc21.png&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/c8964cb6331b0a137d9aafcb9bc166b8/href">https://medium.com/media/c8964cb6331b0a137d9aafcb9bc166b8/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a0b7bc5b00d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5-Step Strategy For Learning New Web Technologies]]></title>
            <link>https://medium.com/@danny.pule/5-step-strategy-for-learning-new-web-technologies-e0de06868271?source=rss-36a1278299a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0de06868271</guid>
            <category><![CDATA[2017]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript-fatigue]]></category>
            <dc:creator><![CDATA[Danny Pule]]></dc:creator>
            <pubDate>Sun, 29 Jan 2017 21:20:12 GMT</pubDate>
            <atom:updated>2017-01-31T17:45:57.265Z</atom:updated>
            <content:encoded><![CDATA[<p>Staying up-to-date with modern development techniques can be difficult and it’s beyond the scope of any one person to know all the ins and outs. That’s why there is a need to learn new web technologies in a way which maximises your free time and ensures you become confident enough with them to use them in production-ready applications.</p><p>Below are the five steps I use to learn new web technologies.</p><h3>1. Learn the theory and core concepts behind a web technology.</h3><p>This is where it all starts and where you lay the groundwork for the journey that lies ahead. You’ll likely find concepts that you’ll struggle with at first but this is a good thing. When you’re struggling, you’re learning.</p><p>Ensure that you master as many of the basics as you can for this new web technology. For example, if you’re learning Node.js, learn about http requests, the V8 Javascript engine, requests/responses, modules, exports, require, asynchronous code, node package manager, semantic versioning — the list goes on but this is all fundamental stuff. Any worthwhile book or tutorial video series will teach you this stuff.</p><p>If you feel like you’re not quite getting a particular concept, my strategy has always been to seek out two or three additional resources and study those also. Learning a web technology using two or three different books or courses gives you a better perspective because you’re seeing the concepts taught from different angles and in different ways.</p><h3>2. Code along with project-style tutorials</h3><p>This is where you use the fundamental concepts you’ve learned to build small projects while following along with a book or video course. I recommend always doing this step second after learning the fundamentals because it prevents you from being lost in a sea of terminology and jargon that you’ll likely encounter. Step one would have exposed you to the new terminology in more clear and concise terms.</p><h3>3. Build a small prototype using the new concepts and ideas learned from steps 1 &amp; 2</h3><p>Now you’ve done one or two project-style tutorials, it’s time for you to venture out into the semi-wild and build a project from scratch. This will be a small project like a to-do list application or a user management system.</p><p>If you get stuck at any point, Google will now become you’re best friend. There are likely several people who have encountered the same problem you’re facing and who have asked or responded to questions on sites like Stack Overflow or in a blog post.</p><h3>4. Build a production-ready application for real world users using the knowledge you have gained</h3><p>It’s now time to venture into the wild and create an MVP (Minimum Viable Product) style application. This would be a production-ready application you create with the intention that actual users will use your app.</p><p>This step is when you’ll want to implement your project using the best practices for your particular web technology. For example, no more putting all your code into one file – use module loading and so on.</p><p>You’ll be building your application <em>as if</em> it were for an actual client or you were going to be maintaining this app several years to come. Because who knows, your application could gain traction and grow into a business venture for you. 🙌</p><h3>5. Review the fundamentals you learned in step 1 and go deeper</h3><p>Now that you’ve built some small projects and taken your skills to the next level by building a production-ready application, it’s time to revisit the concepts you learned in step 1. You’ll likely have some aha moments while doing so and get warm fuzzy feelings when you see how much progress you’ve made. Go deeper into the core concepts and learn advance techniques and best practices. This will solidify your learning and give you greater understanding.</p><h3>Outro</h3><p>Why don’t you share additional strategies for learning new technologies in the comments below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0de06868271" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conditionally hide “.js” and “.js.map” files in Visual Studio Code]]></title>
            <link>https://medium.com/@danny.pule/conditionally-hide-files-js-and-js-map-files-in-visual-studio-code-55b275ac0159?source=rss-36a1278299a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/55b275ac0159</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[angular2]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Danny Pule]]></dc:creator>
            <pubDate>Sat, 22 Oct 2016 19:17:16 GMT</pubDate>
            <atom:updated>2016-10-22T19:42:18.175Z</atom:updated>
            <content:encoded><![CDATA[<p>When developing applications using Typescript, the code you write will be transpiled to ES5 code — the version of ECMAScript that is most commonly supported by today’s browsers. When that happens your files with a .ts extension will be output to a file with the same name but a .js extension. There will also be a file with a .js.map extension. Here is what that looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*bkMi19a9F1-RzSCqU-UGsw.png" /></figure><p>Your three .ts files multiplied and became nine files. As you can imagine, this will make it somewhat harder for you to quickly locate your .ts files among .js and .js.map files.</p><p>An easy solution would be to hide all .js and .js.map files in Visual Studio code and I’ve seen people recommend this. <em>However, this creates another problem. </em>What if you actually wanted to add a .js file to your project at a later date. The file wouldn’t be visible in VS Code. Not so great.</p><h3>A solution that works well for everyone!</h3><p>An easy fix for the barrage of .js and .js.map files that will fill up your editor’s folder structure is to conditionally hide them only when there is an associated file with a .ts extension.</p><p>In VS Code go to <strong>Code</strong> (or <strong>File</strong> for Windows users) &gt; <strong>Preferences</strong> &gt; <strong>Workspace Settings</strong> and add this code snippet:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dcc2adf72d9f52d391df44b5031485d3/href">https://medium.com/media/dcc2adf72d9f52d391df44b5031485d3/href</a></iframe><p>Now your folder structure will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/1*hwBCT9oRYNaAaeFioEnu8w.png" /></figure><p>Makes for a more enjoyable coding experience!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55b275ac0159" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>