ponyfoo.com

  1. Mixing Generators Into Iterators

    As it turns out, iterators can be written using generators. This can lead to some interesting use cases.

    Read full article
    5 minute read
  2. Observables Proposal for ECMAScript!

    There’s an ECMAScript proposal for Observables in the works. In this article we explore the proposal, the API, and look at a few use cases.

    Observables in …

    Read full article
    6 minute read
  3. Variables declared using const are not immutable

    Using const only means that the variable will always have a reference to the same object or primitive value, because that reference can’t change.

    Read full article
    2 minute read
  4. Content-Security-Policy in Express apps

    The Content-Security-Policy header is a bit frightening — will I break my website if I suddenly start blocking requests for external resources? In this article we go over a gradual approach to adopting CSP. 🔐

    Read full article
    15 minute read
  5. Setting up an Angular 2 Development Environment

    Angular 2 is the rave of the moment. It is a modern JavaScript framework that is supercharged with awesome features. In fact, Angular 2 is now more than a framework, it …

    Read full article
    25 minute read
  6. The JavaScript Standard

    JavaScript has gone from being a marketing ploy to gain a tactical advantage, to becoming the core programming experience in the world’s most widely used application runtime platform. Where to, next?

    Read full article
    11 minute read
  7. Let’s use const! Here’s why.

    When reading a piece of code, others can take cues from these signals in order to better understand what we did. ES6 offers let and const as new flavors of variable declaration, are they better signals than var?

    Read full article
    10 minute read
  8. How Terrible Code Gets Written by Perfectly Sane People

    Help your team avoid some bad habits that can drive good teams to write terrible code.

    Read full article
    8 minute read
  9. Fourth Year in Review

    Another year, another review of how Pony Foo did in its latest twelve months online!

    Read full article
    6 minute read
  10. Thousands of Color-coded Visualizations in React

    For the past few days I’ve been working on a data visualization that displays Elasticsearch node distribution across different cloud instances and zones.

    Read full article
    19 minute read
  11. Making Time for Side Projects: A Daily Habit

    With so many other commitments to deal with, it can be hard to find time to work on side projects. In this article, I discuss the need for carving out a chunk of time to …

    Read full article
    2 minute read
  12. Announcing Practical ES6 📚
    — and the Modular JavaScript Book Series!

    Practical ES6 is the first book in a 📚 series I’m dubbing Modular JavaScript, which aims to be a comprehensive, freely available, and open set of books with the mission of improving our collective understanding of modular JavaScript.

    Read full article
    21 minute read
  13. Modular JavaScript launches in a week! 🚀

    Modular JavaScript is an open effort to improve our collective understanding of writing robust, well-tested & modular applications. It is launching very soon.

    Read full article
    7 minute read
  14. Fixing an XSS vulnerability in marked

    Earlier this year my team at Snyk added an interesting Cross-Site Scripting (XSS) vulnerability to our database, in the popular marked package. The vulnerability is …

    Read full article
    8 minute read
  15. JavaScript Asynchronous Iteration Proposal

    There’s a proposal in the works to simplify asynchronous iteration even further.

    The Asynchronous Iteration proposal is already in stage 2 and being heavily worked …

    Read full article
    4 minute read
  16. How I Got Into Programming

    Roughly half of this story first appeared on the preface to my first book, JavaScript Application Design, but I’ve always felt that the story also belonged on …

    Read full article
    11 minute read
  17. Template Literals are Strictly Better Strings

    This article explores how template literals are strictly better than strings, and how they too should become the new default of a post-ES6 era – over single and double quoted strings.

    Read full article
    14 minute read
  18. What Does a Sound Look Like? Web Audio Art!

    The Web Audio API is a very powerful feature available in modern browsers today, boasting a rich set of functionality. In this exploration, we’ll be looking at …

    Read full article
    15 minute read
  19. Binding Methods to Class Instance Objects

    There’s a number of different ways we can ensure class methods have access to this. After some controversy on Twitter last week, we quickly go over the most …

    Read full article
    6 minute read
  20. JSON Web Tokens vs. Session Cookies: In Practice

    Quite a few challenges have been found with using server-side sessions in modern-day applications. In this post, we’ll identify those challenges and explain how JWT and sessions work in practice.

    Read full article
    9 minute read
  21. Two-way Synchronization for a Web App and Git

    This article explains the challenges I went through and how I ended up implementing a two-way synchronization between the web application and a git repository for the articles.

    Read full article
    12 minute read
  22. The Art of a Pull Request

    Writing a great Pull Request takes time. It can be a scary proposition going in. Did I implement something relevant? Will they like my changes? Will the PR meet their expectations? How much scrutiny can I expect?

    Read full article
    13 minute read
  23. ServiceWorker: A Basic Guide to BackgroundSync

    A simple guide to getting up and running using Background Sync and Service Workers. Background Sync is a new web API that lets you defer actions until the user has stable connectivity. This makes it great for ensuring that whatever the user wants to send, is actually sent.

    Read full article
    10 minute read
  24. How Pony Foo is ridiculously over-engineered
    — and why that is awesome

    With almost 3000 commits on record, I’m pretty sure that Pony Foo is one of the most, if not the most, over-engineered blogs ever. This article goes over how it all began as a learning experience…

    Read full article
    34 minute read
  25. The Double-Edged Sword of the Web

    A couple of weeks ago I had some time in my hands and decided to fix cross-browser rendering issues for Pony Foo. The ensuing bug hunt was a good reminder of just how obnoxious web development can get.

    Read full article
    16 minute read
  26. An Elastic Stack Primer

    This article describes my adventures while getting initiated into the Elastic Stack. We’ll be building upon the elasticsearch index I’ve set up for search in an earlier post.

    Read full article
    25 minute read
  27. A Promise-Based Worldview

    Once the Node.js developer’s victim of choice, Promise now enjoys healthy adoption on both sides of the stack, with prominent open-source contributors like @sindresorhus visibly leveraging them.
    What’s changed?

    Read full article
    2 minute read
  28. Setting Up Elasticsearch for a Blog

    I’ve been experimenting with elasticsearch – and working at the company behind it for a while – so it only made sense to incorporate it as Pony Foo’s search provider.

    Read full article
    26 minute read
  29. Just Married! 🎉

    I got married last friday, and then we threw a party on saturday.

    I wanted to extend the celebration a little bit longer by sharing a few pictures on my blog.

    Read full article
    10 minute read
  30. NodeConf hits the ground running in Latin America

    NodeConf Argentina is one of the first international Node.js conferences taking place in Latin American territory, and a not-for-profit community effort to push Node.js …

    Read full article
    2 minute read
  31. GitHub for Human Beings 🕵

    GitHub – and GitHub users – can be kind of annoying sometimes. Here are a few tips to improve your day-to-day experience.

    Read full article
    3 minute read
  32. ECMAScript Proposal for JavaScript Decorators
    (and protocols)

    There’s a JavaScript decorators proposal in the works.
    We take a look at how it works and why it’s useful.

    Read full article
    12 minute read
  33. The npm Meltdown Uncovers Serious Security Risks

    Earlier this week, as almost everyone reading this article knows, npm experienced a brief service interruption where npm install would fail for heaps of popular packages …

    Read full article
    8 minute read
  34. JavaScript Proposal for weak references: WeakRef

    A proposal to implement weak references in JavaScript – which would expose weak references made possible by WeakMap and WeakSet is currently sitting at stage 0.

    Read full article
    6 minute read
  35. Making a Simple Site Work Offline with ServiceWorker

    I’ve been playing around with ServiceWorker a lot recently, so when Chris asked me to write an article about it I couldn’t have been more thrilled. …

    Read full article
    15 minute read
  36. All Aboard the ES6 JavaScript Train

    The sixth ECMAScript specification has been finalized last june, and there’s a flurry of JavaScript features coming our way.

    I’ll be covering the most exciting new features.

    Read full article
    12 minute read
  37. Proposal: “Statements as Expressions” using do

    A proposal for do statements has been classified as Stage 0 for a while, and it might be an interesting solution for some problems we can find in JavaScript.

    Read full article
    5 minute read
  38. Proposal Draft for .flatten and .flatMap

    Array prototype may be getting .flatten and .flatMap methods may be coming to ECMAScript in a distant future. This article describes what the proposal holds in store.

    Read full article
    8 minute read
  39. ECMAScript String Padding

    A first look into .padStart and .padEnd string methods drafted as proposals for implementation in ECMAScript.

    Read full article
    8 minute read
  40. Understanding JavaScript’s async await

    Earlier this week we took a look at new features coming in ES2016. Today we’ll learn about async / await.

    The async / await feature didn’t make the cut for …

    Read full article
    16 minute read