Archive: 2017

How I Made My Own Static-Site Generator

I had a fun time making my own static-site generator for a blog, and I thought this could serve as a practical introduction to Functional Reactive Programming (FRP).Getting startedThe idea I had when

Creating a REST API in node.js

Getting started with making web APIs can be confusing, even overwhelming at first. I’d like to share my process for creating APIs in Node.js.The serverFirst let’s create a package.json and add a depen

Why Use React?

Introductions are hard, so I’m just gonna jump right into this.Here’s an example from the Vue.js getting started guide:var app4 = new Vue({ el: '#app-4', data: { todos: [ { te

Parsing Bash Config Files

Many times a script is written that needs extra/persistent configuration from the user. In most languages this is no big deal, you just import your json/yaml/toml parser and you’re good to go. The com

Why GitLab

Occasionally people ask me why I use GitLab instead of GitHub.Free Private ReposThe only reason I’ve found to pay for GitHub’s premium service is for private repos. But why pay for that when you can g

Bash Scripting

Bash is perhaps one of the hardest languages to learn how to script with, simply for the fact there’s so much bad information out there.I’d like to share some tips and tricks I’ve learned in my few ye

Learning Vim

A brief (and somewhat complete) history: In the beginning, the UNIX standard editor was ed, created by Ken Thompson in 1969. ed is a very powerful, very terse, command line interface for editing text,

Functional Programming: a small introduction

It seems there’s some confusion on why you might use functional programming methods like map/reduce/filter, and so I thought I’d write this to try and explain why they’re useful.ReduceImagine you have