johncoder
  • Home

John Nelson

Jamestown, NY •
24 posts •

Next Big Adventure

This has been a busy year! My last job gave me a crash course in management, which was a huge opportunity to learn about working with people and how to help grow developer

  • John Nelson
< 1 min read

New Challenges Await

Friday marks my last day working at nbcnews.com. I've gotten do a lot of great things, from throwing down with RavenDB to hopping on some serious Node.js bandwagons. I've even migrated

  • John Nelson
< 1 min read
lambda calculus

Practicing Functional Programming: Logic

Most of what I want to write about today can be found in Chapter 3 of An Introduction to Functional Programming Through Lambda Calculus, by Greg Michaelson. However, I'll be working through it

  • John Nelson
6 min read
lambda calculus

Practicing Functional Programming: Vectors

I've been on a bit of a functional programming kick lately, and it's all starting to click. I came across some vector math for character movement in games, and it seemed like a

  • John Nelson
3 min read
bash

Finding Missing Handlebars Views

Just a quick post about a solution I thought up to finding missing handlebars views in my project. grep -oEr "{{> [-a-zA-Z0-9\/_]+" ./app/server/views | grep -oE "[-a-zA-Z0-9\/_]+$" | sort

  • John Nelson
< 1 min read
emacs

Colorful Comment Markers in Emacs

Earlier this year I switched to a (mostly) monochromatic theme for coding in emacs. It has been a great experiment so far. I even tried switching back to a colorful theme the other

  • John Nelson
1 min read
Node.js

A Toy Leveled Cache in Node.js

I wanted to try an experiment around improving caching performance in Node.js while using redis. One of the ideas I came up with was to build a leveled cache that can work

  • John Nelson
1 min read
Programming

On Empowerment Through Declarative Programming

Lately I've been pairing with my good friend, Caleb Gossler, on some atypical Node.js at work. To be honest it's not the most interesting work to talk about. Rather than go into

  • John Nelson
4 min read
emacs

On Running Node.js Applications in Emacs

Each day I find myself integrating more and more of my workflow into emacs. This time I realized that it would be nice to be able to run my applications without having to

  • John Nelson
3 min read
emacs

Movement for Reading in Emacs

I use the usual emacs keybindings for moving the cursor around in the buffer. Usually this is more about positioning the cursor for making edits, but more and more I find myself using

  • John Nelson
< 1 min read
emacs

Old Habits Die Hard

Next up on my little emacsian adventure: changing windows. Guh! C-x o just doesn't work for me. I'm too young to have this deeply ingrained in my head. I cut my teeth on

  • John Nelson
< 1 min read
emacs

On Emacs and Node.js Testing Workflow

Making it easy to lint your JavaScript is a good step, but it's pretty helpful to be able to execute your tests from within your editor. I'm on a certifiable emacs kick lately,

  • John Nelson
2 min read
Node.js

On Emacs and Node.js Workflow

One of the things I miss most about my time in Microsoft's kool-aid pitcher is the tooling. It had this great way of making you feel nice and cozy within the bounds of

  • John Nelson
3 min read
Meta

Silly Mistakes

Have you ever been in the middle of writing a function, and a bright idea hit you like a piano out of mid air, or suddenly interrupted by a flash mob? Me, too.

  • John Nelson
< 1 min read
Go

Go: Range is by Value

TL;DR: The value for each item in a range loop is not by reference. Instead, use the index index := range foos.Bars and index to the item &foos.Bars[index]. I

  • John Nelson
< 1 min read
GitHub

Whimsy

As it turns out, I'm really bad at following through with plans. I recently intended to dig through algorithms in Go, but here I find myself doing whimsical things with my time instead.

  • John Nelson
< 1 min read

Monkey Patching in Node.js

Disclaimer: I am confident enough to make my own mistakes. My advice in this post is based on my own experiences. All code in this post is for demonstrative purposes only, and should

  • John Nelson
3 min read
Sort

Go Algorithms: Sorts

I started with Go's sort package for some inspiration on how to build the API for my implementations. It is nice to be able to look at other approaches, especially when I'm more

  • John Nelson
2 min read
Studies

Algorithms in Go

Lately I have been learning a lot about Go. I decided a great independent study subject would be to review Algorithms, Fourth Edition in the context of Go. However, this presents a few

  • John Nelson
1 min read

New Game Plus

Time for a blog reboot. This time, I'll forgo the usual compulsion to build my own blogging platform. As it turns out, this is mostly a solved problem in 2014, which frees me

  • John Nelson
< 1 min read
RavenDB

RavenDB 2.0: Replication Stats

The Replication bundle now includes a responder for reporting its stats. To access it, make a request to this Url on your raven server: /databases/<database>/replication/info. The response will

  • John Nelson
< 1 min read
RavenDB

RavenDB 2.0: Replication Configuration

Raven Studio got some love in RavenDB 2.0. You can download an unstable build from Raven's site to check it out (which I strongly encourage). Among the many changes to the studio

  • John Nelson
3 min read
RavenDB

RavenDB: Learn to Use the HTTP API

If you haven't spent some time with RavenDB's HTTP API, it would definitely be worth your while. Learning to query Raven directly from a URL will open a lot of doors to figuring

  • John Nelson
2 min read
MapReduce

Write Your Own Map/Reduce

MapReduce first came to my attention while exploring RavenDB. It's a great product, and I really enjoy the way it makes you think about writing your applications. The hard thing to get used

  • John Nelson
6 min read
johncoder © 2018
Latest Posts Twitter Ghost