Tutorials Page 54
Giveaway: OSCON Austin, May 8-11!
O'Reilly's amazing OSCON is coming to Austin, Texas from May 8-11th, 2017. OSCON celebrates open source, the community, and the driving forces for open source software on the web. We've all used open source software and many of us have contributed to those open source...
Allow HTTP Push with Mercurial Server
I have always loved git but my present work at Mozilla requires me to use mercurial. If you weren't already aware, Firefox code is managed through mercurial! I was recently tasked with standing up a mercurial server within a docker container and ran into an issue: mercurial rejected pushes...
Create Short Preview from Video
Displaying a preview image before loading a video is common practice with web media these days; oftentimes that image preview is the video's first frame or an important frame from the video. If you've visited an adult site recently (ahem), you will have noticed that not only do you get a preview image...
Functional Programming (FP) By Any Other Name…
Don't worry, this is not YAMA (yet another monad article)! Instead, I want to talk about a library I've recently released that offers a helpful twist on typical functional programming ("FP") operations (like
map(..)
,compose(..)
, etc). Before we jump in: if you're like me and have tried...JavaScript Deep Merge
I recently shared how you can merge object properties with the spread operator but this method has one big limitation: the spread operator merge isn't a "deep" merge, meaning merges are recursive. Moreover nested object properties aren't merged -- the last value specified in the merge replaces the last, even when there are...
Custom Neutrino Linting
Last week my friend Eli Perelman shared Modern JavaScript Apps with Neutrino, an awesome new Node.js tool for creating amazing apps with minimal fuss. No need to learn webpack, scour babel plugins, or search for what exactly is required to get a React.js app up and running -- just install...
Normalize a Directory of mp3s
Back in the early days of Napster, Kazaa, eMule, and other file sharing networks, I would download as many apps, movies, game, and movies as possible. My illegal downloading was out of control; I would get DMCA notices from my ISP for apps and games I had...
Convert String to DOM Nodes
It wasn't too long ago that browsers were mostly stagnant when it came to implementing new APIs and features, leading to the rise of MooTools (FTW), jQuery, Dojo Toolkit, Prototype, and likewise JavaScript toolkits. Then we started doing more client side rendering and were forced...
Unique Array Values
When you look at any programming language, you see missing features that you find puzzling because the use case seems so common. One such case is retrieving unique values from an array with JavaScript. Years ago I mentioned an easy way of unique value management using objects instead...
Cloudinary React Components
I've been experimenting a lot with both React and Cloudinary over the past six months and it's been a blast -- I'm learning a ton while also recovering the ambition and thirst I had as a young developer. React has been a revelation: an advanced JavaScript...