Type Check Your Polyglot Dictionary with TypeScript

I recently started using Airbnb’s Polyglot package to provide some basic I18n for my project. I only needed it to manage translations and do string interpolation for pluralization. I soon found (after a few misspelled translation keys), that I needed to type check my translations for it. Read more on Type Check Your Polyglot Dictionary with TypeScript…

How to Console Yourself through JavaScript Debugging

Debugging JavaScript can be frustrating sometimes, or at least time-consuming. To reduce the amount of suffering invovled, I’m going to share some of the processes that I take to debug JavaScript in the browser. I’ll focus on the debugging tools offered by the unexplored Console api. There’s a lot of good functionality beyond the tried-and-true console.log.
Read more on How to Console Yourself through JavaScript Debugging…

Phoenix Framework Support and Why Ruby on Rails Still Works

Functional programming has been successful through React and its derivatives on the front end. Why can’t we embrace it for the full stack? The solution for traditional model-template-view applications can be functional, too. A good incumbent is the Elixir language with Phoenix framework.
Read more on Phoenix Framework Support and Why Ruby on Rails Still Works…

Mocking in JavaScript Unit Tests Using Sinon.JS

Lately, I’ve been using Sinon.JS for mocking in my unit tests. By using mocks for dependencies inside functions, I can write unit tests that are resilient to a changing codebase. Functions with mocks can also be developed without worrying about the chain of dependencies that could affect the logic inside the functions. Read more on Mocking in JavaScript Unit Tests Using Sinon.JS…

Experimenting with MongoDB

For a recent prototype, we wanted to bring in a database instead of relying on something like Google Sheets. I’d heard about MongoDB as part of the MERN (MongoDB, Express, React, and Node.js) or MEAN (MongoDB, Express, AngularJS, and Node.js) stacks and felt it was worth a try. In the end, I was very happy with my experience using it for a small prototype application.
Read more on Experimenting with MongoDB…