Node-m-r – A Simple CQRS Example using Node.js

Anyone learning about DDD, CQRS and/or event sourcing has probably read the source code of Greg Young’s simple CQRS example at some point or another. This is one of the simplest examples possible demonstrating the practical side of CQRS and event sourcing, originally developed using .NET. I made an attempt to rewrite the source code […]

Read More

Either.js

Category:UncategorizedTag: , :

Some time ago, I was watching this excellent video course by Neal Ford titled ?Functional Thinking ? Functional Programming using Java, Clojure and Scala?. In one of the modules on functional data structures, Neal talks about this container type in Scala named Either. The Either type in Scala represents one of two possible values, a […]

Read More

Detecting the End of a Rainbow Inside a Writable Stream

Category:UncategorizedTag: :

I was implementing a custom writable stream in Node.js the other day when I ran into this issue where I wanted to know whether more data was coming or that we were actually done writing stuff. When looking at the recently revised API for stream implementers, the only thing that gets mentioned in the docs […]

Read More

Taking Toddler Steps with Node.js – The Towering Inferno Revisited

Soon after I started using Node.js, I ran into the phenomenon of multiple nested callbacks that create some kind of horizontal tower effect. The solution I came up with in order to improve the readability of my code was using a library called step, as described in this blog post that I wrote at that […]

Read More

Introducing node-validation

Category:UncategorizedTag: :

Some time ago I was looking for a validation library/module for use in a small Express application that I was writing at the time. I couldn?t find anything that suited my taste so I decided to write one myself just for kicks. The goal was learning how to publish a module to npm and making […]

Read More

Taking Toddler Steps with Node.js – Passport

Recently I added Twitter authentication to TrackMyRun using a library called Passport. I was pretty impressed how smooth this all went as I completely neglected all security concerns from the get go, which is definitely not recommended by the way. For this post I?ll walk you through the process of setting up Passport for Express […]

Read More

Taking Toddler Steps with Node.js – Express Error Handling

In the previous post I wrote about my personal routing flavor for Express. For this post, I want to briefly discuss how to set up error handling using Express. In order to get up and going very quickly, we only need to add the errorHandler middleware provided by Connect. application.use(express.errorHandler({ showStack: true, dumpExceptions: true })); […]

Read More

Find me

RSS
Facebook
Twitter
LinkedIn

Disclaimer

The opinions and content expressed here are my own and not those of my employer.