Tag:javascript
All the articles with the tag "javascript".
Promises are Almost Monads
Posted on:November 8, 2020It took me 2 years of rumination and good-ol’ procrastination to finally get my website back up on its feet. I think I might have more to say…
Deriving The Y Combinator
Posted on:October 23, 2020Runder is a rudimentary clone of CodePen that I wrote to see how much I could accomplish in a span of 24 hours. It leverages on Google Caja’s…
Type Safety with Code Generation for Third Party APIs
Posted on:May 26, 2020Link. When you get to this stage, most of the tutorials and online resources available to you are much less useful because they assume you’re…
Tracking Upload Progress in Browsers
Posted on:May 10, 2020When studying I find that writing notes help me to process that information better, even if I never go back to those notes. Since I’m such a…
Data Structures in TypeScript
Posted on:March 28, 2016In this post, I want to talk about some of the technical details behind this site and the workflow that I have for writing. This site is built…
Exposing React Performance Tools in the Browser Console
Posted on:March 25, 2016I needed to add a form to Active Admin so that a client could upload tsv files, which would be parsed and the data added to the database.…
Circular References in GraphQL Type Definitions
Posted on:March 19, 2016I was handed an EC2 instance running 12. 10 (Quantal Quetzal), which had reached EOL. Due to some reasons, upgrading wasn’t an option. When I…
Exporting ES6 Library Modules as Global Scripts with Webpack
Posted on:March 16, 2016(This post was originally posted on Cubicle Rebel’s engineering blog. Check it out! )Our clients rely on us to provide rock-solid long-term…
Agnostic HTTP Endpoint Testing with Jasmine and Chai
Posted on:February 27, 2016Aurora’s Github repoTLDR: I learned Erlang and wrote a JSON API server called Aurora for a school project. IntroductionI recently concluded a…
Pretty Form Validation with Redux Form
Posted on:January 26, 2016Single table inheritance (STI) in Rails allows you to store Ruby subclasses in the same database table. Let’s get started with a brand-new…
MVC Organisation with Express and Thinky
Posted on:January 17, 2016The first in a series of Nginx posts. The information here is heavily inspired from my reading of Clément Nedelcu’s excellent book Nginx HTTP…
Route Organisation with Express 4+
Posted on:November 27, 2015The second in a series of Nginx posts. Nginx runs two different types of processes: the master process and worker processes. Master ProcessThis…
Initial Form Values with redux-form
Posted on:November 26, 2015The third post in the Nginx series. Nginx configuration consists essentially of key-value pairs called directives, which can be organised and…
JavaScript Object Creation and Prototype Chains
Posted on:August 24, 2015The Core module controls essential Nginx features, some of which will have a direct impact on performance, such as the number of worker…
JavaScript Timers
Posted on:August 8, 2015Nginx’s HTTP module comes with its own set of directives and structure blocks. Structure BlockshttpThe http block acts as the overarching…
new-Agnostic JavaScript Constructors
Posted on:August 8, 2015Some notes I took while watching Rebuilding a Web Server, a brief walkthrough by Marc-André Cournoyer on writing a simple Rack-compliant web…
The Browser DOM
Posted on:August 5, 2015Today, we investigate Rails’ boot sequence by observing what happens when we run rails console. Part 2 will look at rails server. Github…
Topick - JavaScript NLP library to extract keywords from HTML documents
Posted on:July 28, 2015While going through Jasmine’s source code, I came across a weird idiom: function attemptAsync(queueableFn) { var clearTimeout = function ()…
Setting Up A Test-Driven React Project From Scratch - Part 1: webpack
Posted on:July 22, 2015You will learn how to scaffold a React project from scratch with Karma and webpack. I’ve tried to make it as unopinionated as possible.…
Apply, Apply
Posted on:July 19, 2015This post will explore some more niceties that using webpack provides. ESLintESLint functionality is provided by way of eslint-loader: npm…