<?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 Frank P. Darveau on Medium]]></title>
        <description><![CDATA[Stories by Frank P. Darveau on Medium]]></description>
        <link>https://medium.com/@eff_it?source=rss-5db8ce334633------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cn2H1QjJ7NjNn8HmYePQXQ.jpeg</url>
            <title>Stories by Frank P. Darveau on Medium</title>
            <link>https://medium.com/@eff_it?source=rss-5db8ce334633------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 08:15:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eff_it/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[You SHOULD Learn Vanilla JavaScript Before JS Frameworks]]></title>
            <link>https://medium.com/hackernoon/you-should-learn-vanilla-javascript-before-js-frameworks-88fb727ab362?source=rss-5db8ce334633------2</link>
            <guid isPermaLink="false">https://medium.com/p/88fb727ab362</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[js-framework]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[vanilla-javascript]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Frank P. Darveau]]></dc:creator>
            <pubDate>Tue, 31 Jul 2018 13:29:25 GMT</pubDate>
            <atom:updated>2019-05-15T10:31:49.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9691sHpju8k8BtblhgCwQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/UJ-qMFZTs1s?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ilya Ilyukhin</a> on <a href="https://unsplash.com/search/photos/vanilla?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Rewind to 2013. ⏪</p><p>Our small dev team is about to ship one of its most impressive client projects to date. I’m at my stand-up desk, skimming through morning emails. My partner bursts through the office door:</p><p>“Something’s wrong with our Angular app, man. I’ve got a digest is already in progress error popping everywhere—can&#39;t figure out what&#39;s happening,&quot; he says, visibly nervous.</p><p>But I’m not nervous, nor stressed. I know exactly where to start looking, because I know my <a href="https://hackernoon.com/tagged/javascript">JavaScript</a>.</p><p>And I know all of this thanks to <strong>a robot</strong>.</p><p>Rewind to 2011. ⏪</p><p>I was still a dreamy-eyed software engineer student back then, unaffected by <a href="https://snipcart.com/blog/guide-choosing-tech-stack-client-work">the business imperatives of real-world coding</a>. I was passionate about back-end <a href="https://hackernoon.com/tagged/development">development</a> and had no desire whatsoever to learn vanilla JavaScript, or anything related.</p><p>But my friends and I had to build a soft real-time, task-oriented robot for one of our classes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*YJxReVLAW4B8Wory.jpg" /></figure><p>We named the robot Optimus Prime, and eventually sold it to Michael Bay.</p><p>We stumbled upon this new cool thing called Node.js (<a href="https://nodejs.org/docs/v0.4.9/">its docs back then</a>). No fancy dependencies, easy child processes spawning, async and event-driven… and many online were saying it was the sh*t. We had absolutely no clue of what JavaScript or V8 were, but it still seemed like a good call for our project.</p><p>Peers told me to find a decent library for my use cases, and pull off some copy/pasting art to get the socket communication job done. I could’ve done just that.</p><p>But I didn’t. Although I didn’t know it at the time, that was one of the best early career decisions I made.</p><p>I started reading avidly instead. About asynchronous programming, the history of JavaScript, its pros and cons, everything. Because I wanted to master the underlying principles of the language powering my project. And it took quite a lot of time, coffee, beer, and dummy code to do so.</p><p>In between managing my teammates’ impatience and creating a not-so-clean, functional robot codebase, <em>I learned a whole dmn lot</em>*.</p><p>So what’s the point here? <strong>I took enough time to understand the core principles of JavaScript before using shortcuts provided by JS frameworks and libraries</strong>. Why is that important? Well, this is what this post is about: <em>not just pretending.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*G4ijEJT9I8U-wGCn.jpg" /><figcaption>Source: the ever-hilarious <a href="https://twitter.com/iamdevloper">@iamdevloper</a>.</figcaption></figure><h3>What is “Vanilla JavaScript”?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/0*0powACiQtbdkrl2W.png" /></figure><p>Let me quote an answer from <a href="https://stackoverflow.com/questions/20435653/what-is-vanillajs">koenpeters on Stack Overflow</a>:</p><blockquote><em>“VanillaJS is a name to refer to using </em><strong><em>plain JavaScript without any additional libraries</em></strong><em> like jQuery. People use it as a joke to remind other developers that many things can be done nowadays without the need for additional JavaScript libraries.”</em></blockquote><p>Or, in our case, without new, fancy frameworks.</p><h4>The Vanilla JS “framework” joke</h4><p>Online forums are filled with questions like:</p><blockquote><em>What’s the meaning of Vanilla JavaScript? When was the term coined?</em></blockquote><p>The history of <a href="http://vanilla-js.com/">the Vanilla JS site</a>, which poses as a “JS framework” site, is short but funny. <a href="https://twitter.com/ericwastl">Eric Wastl</a> created it in 2012, using a bit of trolling and confusion to hammer home a point: <strong>you can often use plain JavaScript instead of additional JS frameworks or libraries.</strong></p><p>While Eric didn’t coin the term per se, his site definitely <a href="https://softwareengineering.stackexchange.com/questions/298220/history-of-vanillajs/298310">helped popularize it</a>.</p><h4>The state of modern, plain JavaScript</h4><p>Historically speaking, developers needed to bypass plain JavaScript for MANY tasks, be it to make their code behave consistently across browsers, or just to go beyond what Javascript offered at the time. We’re talking IE 6–7 days. Developers often defaulted to jQuery in the process. But this long-lasting reflex of relying on external libraries is now irrelevant, thanks to the evolution of the ECMAScript spec, and to modern browsers keeping up with it more closely.</p><p>Today, picking vanilla JS vs jQuery is more often than not the smartest choice, so your codebase doesn’t end up needlessly bloated with dependencies. An obvious example from the excellent <a href="http://youmightnotneedjquery.com/">You Might Not Need jQuery</a>:</p><p><strong>jQuery</strong></p><pre>$(&#39;.my #awesome selector&#39;);</pre><p><strong>vs vanilla JS:</strong></p><pre>document.querySelectorAll(&#39;.my #awesome selector&#39;);</pre><p>That site is full of useful vanilla JS examples — have a look!</p><p>Oh, and in case you need any more social proof:</p><h3>Mislav Marohnić on Twitter</h3><p>We&#39;re finally finished removing jQuery from https://t.co/r2QL2aHBfa frontend. What did we replace it with? No framework whatsoever: * querySelectorAll, * fetch for ajax, * delegated-events for event handling, * polyfills for standard DOM stuff, * CustomElements on the rise.</p><h3>A word on JS frameworks: pros and cons</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*j3fzn0aWcpJvdU2i.png" /></figure><h4>First, what do I mean by JS “frameworks” here?</h4><p>I put all of the <a href="https://snipcart.com/blog/angular-seo-universal-server-side-rendering">Angular</a>, <a href="https://snipcart.com/blog/vuejs-blog-demo">Vue</a>, <a href="https://snipcart.com/blog/reactjs-wordpress-rest-api-example">React</a>, Backbone, Ember, Knockout, Ext, jQuery, Meteor, Express, Koa, Total, Socket.io, and so on, in the same box. Yes, I know some are quite different. Yes, I know some are “not really a framework, but more of a library and BTW have you seen this thread on HN?”.</p><p>But please, for the sake of this article, let’s declare them equivalent in their primary purpose.</p><h4>Pros: Why I think JavaScript frameworks are awesome</h4><p>→ They help you out by abstracting hard &amp; complex code.</p><p>→ They help you ship code faster and increase development velocity.</p><p>→ They force you to focus on your app’s value rather than its implementation.</p><p>These reasons quickly come up whenever we discuss the popularity of JS frameworks. But to me, they are <em>marketing-ish reasons</em> more than anything else. I’m not ranting against frameworks here — I’ve actually used quite a few of them throughout my career.</p><p>I believe the greatest value there is to find in JS frameworks is <em>collaboration</em>. Their consistent interface and methods allow developers from, say, Canada, the US, and Brazil to understand one another and work together.</p><p>If you’re building an app with [insert your favorite framework], when the time comes, you’ll be able to find an experienced developer to hop in the project codebase with confidence. This person will be able to start tackling features without you needing to explain every part of your software architecture.</p><p>Another key reason to use frameworks is <em>practice</em>. They make you practice, over and over again. And that’s good! Practice always leads to mastery, whatever you’re trying to accomplish.</p><h4>Cons: Why I believe JS frameworks are not THAT awesome</h4><p>People who work on frameworks implementation are all talented — at least most of them. They do a tremendous job of simplifying complex endeavors. But all of these levels of abstraction can quickly become <em>evil</em>.</p><p>In every app development, there comes a day when something doesn’t work as expected, and you don’t know why. That’s when you have to start digging. When you begin searching through poorly documented, complex, generic, pure JavaScript code, <strong>you’ll need a deep understanding of JS</strong> to make it. Otherwise, I can guarantee you’re going to lose all the precious time you saved by using your fancy framework. You might just have to buy a new espresso machine to meet your deadlines.</p><p>Sure, frameworks are useful for small teams working on a single app. Yes, they’ll save you some time (unless you’re a <a href="https://snipcart.com/blog/tips-on-code-refactoring-from-a-former-addict">refactoring addict</a>). But what if you have more than one team working on more than one app? Do you think all team leaders will agree on a single framework for the whole suite of apps? And what if a new “cool kid” framework comes around in 2019?</p><p>Problem is: the moment you settle on a framework, you impact <em>every single upcoming engineering decision</em>. Plus, you chain your team to a technology that will probably soon be deprecated. This stuff blows my mind.</p><h3>Why should you learn vanilla JavaScript before frameworks?</h3><p><strong>If you master JavaScript fundamentals, your only challenge when learning new JS frameworks will be scoped to their specific syntax.</strong></p><p>JavaScript is now <a href="https://w3techs.com/technologies/details/cp-javascript/all/all"><em>the</em> programming language for the web</a>. Understanding its core engineering principles is paramount if you want to build yourself a decent web career. Especially if you’re aiming for the front of the pack.</p><p>In the past 5 years, more than 10 frontend JS frameworks made the news. Guess how many will do the same in the next 5–10 years? If you’re merely <em>pretending</em> to know JavaScript, the engine powering this web revolution, how will you keep up?</p><p>Just think about what “jQuery developers” are doing today: trying to catch up on Angular. Tomorrow, they’ll be trying to catch up on React/Vue. And the sad, depressing loop goes on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/0*WctdX-w72JcCyItt.png" /></figure><p>Knowing vanilla JavaScript will make you actually understand — or even contribute to — JS frameworks, and help you choose the right one <strong>when you need it.</strong></p><p>For me, it brought a lot of positive stuff:</p><ul><li>It helped me deliver a killer set of client features in a super short timeframe for an Ember app, without knowing jacksh*t about Ember.</li><li>It got me a job offer from one of the tech giants because of a very simple library I wrote in my spare time.</li><li>It made me identify bugs in libs implementation and suggest simple solutions super quickly.</li></ul><h3>Where and how can you learn vanilla JavaScript?</h3><p>I hope I convinced you to get your hands dirty with plain ol’ JavaScript. If you want to kick ass at web dev, here’s my high-level advice:</p><blockquote><em>Always be curious, always read the source material, and always try it yourself.</em></blockquote><p>And some more specific advice:</p><ul><li>Whenever a new JS lib or framework is trending on Echo JS, Hacker News or GitHub, go on and read the sources.</li><li>Every time you write a piece of code, try to think of a plain JS solution that could fit your needs instead of instantly seeking for a lib to integrate.</li><li>Go on Stack Overflow and challenge yourself to answer vanilla JS questions on your own.</li></ul><p>For beginners: I believe the learning flow outlined in <a href="https://medium.freecodecamp.org/a-beginners-javascript-study-plan-27f1d698ea5e">this post</a> by J.S. is a good starting place:</p><p>Now for the learning resources:</p><h3><a href="https://github.com/snipcart/learnvanillajs">Learn Vanilla JS — Open source list of resources on GitHub</a> 👈</h3><p>I worked with my friend <a href="https://twitter.com/the_fln">Franck from Snipcart</a> to compile <strong>a carefully curated list of vanilla JS tutorials, books, courses, documentation, news sources, and blogs</strong>.</p><p>🔔 We want to keep it as open and collaborative as possible. So don’t hesitate to add valuable stuff with a fork + PR! 🔔</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/0*CabjwC-RwF4u712y.png" /></figure><p>Some notable one-off articles not added to the list above:</p><p>I hope you find value in this small vanilla JavaScript wiki!</p><h3>Takeaways</h3><p>So here’s my TL;DR for you folks:</p><ul><li>If you don’t know the underlying principles of the web, you’ll eventually hit a wall thanks to the evolution of the language itself and the constant arrival of new frameworks.</li><li>Knowing pure JS will make you a key engineer who can solve complex problems (reason before frantic searching).</li><li>It’ll make you versatile and productive, both on the front-end and back-end.</li><li>It’ll give you the toolset to innovate, not just execute.</li><li>It’ll guide you on when to use a framework <a href="https://snugug.com/musings/you-probably-shouldnt-use-javascript-framework/">or not</a>.</li><li>It’ll give you a better general understanding of how browsers and computers work.</li></ul><p>Using a JS framework can surely bring you somewhere fast. But it won’t bring you far if you don’t understand the core concepts behind it. Just like learning to play Wonderwall on the guitar won’t teach you how to compose music, but it’ll give you a reason to practice.</p><p>I firmly believe that this “learn the basics/roots first” principle applies to pretty much everything in life. From learning a new programming language to starting a new sport. It requires a lot of practice, but once you master it, the only thing left to do is to get creative with it. And that’s where the real fun begins.</p><p><em>If you’ve enjoyed this post, please take a second to 👏 + </em><a href="https://twitter.com/home?status=You%20SHOULD%20Learn%20Vanilla%20%23JavaScript%20Before%20JS%20Frameworks%20https%3A//buff.ly/2bIkAll%20via%20%40snipcart%20%23webdev"><em>share it on Twitter</em></a><em>. Comments, questions? Hit the section below!</em></p><p><em>Originally published at </em><a href="https://snipcart.com/blog/learn-vanilla-javascript-before-using-js-frameworks"><em>snipcart.com</em></a><em>.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88fb727ab362" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/you-should-learn-vanilla-javascript-before-js-frameworks-88fb727ab362">You SHOULD Learn Vanilla JavaScript Before JS Frameworks</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your web client using a node task runner and run any backend language on heroku using…]]></title>
            <link>https://medium.com/@eff_it/build-your-web-client-using-a-node-task-runner-and-run-any-backend-language-on-heroku-using-e86659dd552?source=rss-5db8ce334633------2</link>
            <guid isPermaLink="false">https://medium.com/p/e86659dd552</guid>
            <dc:creator><![CDATA[Frank P. Darveau]]></dc:creator>
            <pubDate>Tue, 26 Aug 2014 13:13:37 GMT</pubDate>
            <atom:updated>2014-08-26T13:13:37.420Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build your web client using a node.js task runner and run any backend language on heroku using Buildpacks</h3><p>If you’re you’re a curious geek that is always exploring, you probably have (or soon you will) ask yourself what are the common deployment best practices if you have a modern javascript webapp with a slim server written in a different language.</p><blockquote>“Should I split my client and my backend into different repos ? Should I deploy my client using Nginx to serve my static files and deploy my api on a PAAS?” you ask.</blockquote><p>Feels much cleaner to do so, right! But you know, because you’re a cool guy exploring and trying new stuff, you might not want to spend your time optimizing those details at an early sage of your app. Whether because you’re a geekepreneur and you’re testing a market or because you want to have a single code base with a very simple deployment process that you don’t have to bother with, deploying everything on a single PAAS might be tempting. Let’s pretend you’ve been using <a href="http://heroku.com/">heroku</a> for a short while and that you like it because it’s simple and <strong>free to use.</strong></p><p>Cool! Now let’s get a little more into the details. You want to use a node.js task runner (I’ll be using <a href="http://gulpjs.com/">Gulp.js</a> in this example) to build your client assets like compiling you’re less files, concatenate, minify &amp; uglify your .js files and so on. We usually want to keep our git repo clean so it’ll be cool if your assets could be built straight on heroku. No problem, add a <em>postinstall</em> script that builds your assets in your <em>package.json</em> file. It could simply look like:</p><pre>{<br> “name”: “experiment”,<br> “description”: “cool stuff&quot; <br> “scripts”: {<br>   “postinstall”: “./node_modules/.bin/gulp build”<br> },<br> “dependencies”: {<br>   [...]<br>   “gulp”: “^3.8.6&quot;,<br>   [...]<br> }<br>}</pre><p>Heroku will detect a Node.js app and perform the task perfectly so you can keep your git repo &amp; mind clear by adding your built assets directory to your <em>.gitignore</em> file.</p><p>Now, time to add your awesome experimental API written in another language (I use Python with <a href="http://flask.pocoo.org/">Flask</a> here). Looks like :</p><pre>from flask import Flask</pre><pre>app = Flask(__name__, static_url_path=’’)</pre><pre>@app.route(‘/’)<br>def index():<br> return app.send_static_file(‘index.html’)</pre><pre>@app.route(‘/magic-route’)<br>def magic():<br> return ‘magic is happening’</pre><p>Cool! Now, as usual, you</p><pre>$ git commit -am ‘awesomeness’ &amp;&amp; git push heroku master.</pre><blockquote>Node.js app detected … Nothing else ? No Python magic …</blockquote><p>Fortunately, there is a very simple but hidden solution to solve this problem → <a href="https://github.com/ddollar/heroku-buildpack-multi"><em>buildpack-multi</em></a>, a <a href="https://devcenter.heroku.com/articles/buildpacks">heroku buildpack</a> that enables multiple environments on your instance. (If you don’t know what buildpacks are, I suggest you to take a look but no need to hurry, you’ll be fine.) To achieve this, you first need to add a heroku config that specifies the buildback.</p><pre>$ heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi</pre><p>Then you need to add a <em>.buildpacks</em> file that specifies your desired buildpacks (you could specify any fancy buildpacks you want, I prefer to keep it simple). So let’s go and add Node.js and Python:</p><pre>$ cat .buildpacks<br>https://github.com/heroku/heroku-buildpack-nodejs<br>https://github.com/heroku/heroku-buildpack-python</pre><p>Drop your web process in your Procfile (I use gunicorn as simple Python server) looks like</p><pre>web: gunicorn server.main:app —log-file=-</pre><p>Great!</p><pre>$ git commit -am ‘buildpack multi’ &amp;&amp; git push heroku master</pre><blockquote><em>“Node.js app detected”<br>… Wait for it … “Python app detected, preparing Python runtime”</em></blockquote><p>Booyah! As easy as pie.</p><pre>$ heroku ps:scale web=1</pre><p>You’re done, your web dyno is now running your web process and serving your assets. Keep in mind that when your app will need to scale, you’ll prefer to split your deployment so your web process will spend time on processing request more than serving static files.</p><p>I’ll provide a minimal Angular.js + Python flask so you can check it out.<br>Feel free to comment &amp; contact.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e86659dd552" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>