Function composition is the process of applying a function to the output of another function. In algebra, given two functions, f and g, (f β g)(x) = f(g(x)). The circle is the composition operator. It’s commonly pronounced “composed with” or “after”. You can say that out-loud as “f composed with g equals f of g of x”, or “f after g equals f of g of x”. We say f after g because g is evaluated first, then its output is passed as an argument to f.
A collection of .gitignore templates
github, github.com
This is GitHub’s collection of .gitignore file templates. We use this list to populate the .gitignore template choosers available in the GitHub.com interface when creating new repositories and …
If I only would’ve known about this earlier. A time-saver, for sure.
The *shiznit* of jolly ole _.`gitignore`_ files. Almost good enough to whittle away the wee hours of a Sunday morning over… Okay, sure, *at least that good*—good enough that *The Donald* could shakes a tail-feather.

4 Line Node.js HTTP Test Server
I don’t usually use libraries in my blog posts, but with just 4 lines of code it is possible to create a simple server HTTP server:
var connect = require('connect'), serveStatic = require('serve-static'); connect().use(serveStatic(__dirname)).listen(process.argv[2]); console.log('Now listening on port', process.argv[2]);Which is run like:
node server.js 8080With
8080being the port number. This will create an HTTP server that can server all the static assets in the directory that server.js is placed. Which is really useful for quickly testing pages in any location on your hard drive when you don’t want to setup a server. Keep in mind that, just opening up the file in the browser can lead to a bunch of issues when accessing external resources on the page.connect.js is a framework to build servers. While serve-static.js just creates middleware that servers static files at a given location.
__dirnameis a Node.js constant which gives the current location that a file is in. And finally,process.argvis just the array of all arguments passed to the file (includingnode).The libraries can be installed with npm which comes with modern Node.js versions:
npm install connect serve-staticGithub Location: https://github.com/Jacob-Friesen/obscurejs/blob/master/2015/server.js
Introducing RumbleX!
NKO Team here to pass along some exciting news. We’re partnering up with Rails Rumble to form a brand new organization called RumbleX!
Both Node Knockout and Rails Rumble will continue to run as yearly competitions (stay tuned for dates!). In addition, we’ll be launching some new competitions in 2016. Sooner than you might think too 😀
We also have one more person joining us at RumbleX. Nick Plante, aka zapnap, the co-creator of the 48 hour virtual competition structure, and the co-founder of Rails Rumble way back in 2007. Damn, that’s so long ago millennials consider it “back in the day”.
Keep your eyes peeled because we got some great stuff brewing.
Follow @RumbleX on Twitter.
This is not a style guide in the usual sense; Iβm assuming you already have your opinions on JavaScript indentation and all the other religious standpoints, so Iβm going to focus on some Node specifics I find essential.
This is an apples to oranges comparison. PHP is an older language, running behind the Apache web server in a request/response fashion. Node.js is a non-blocking event-loop framework running JavaScript within the V8 engine, with an optional web server built in. Then again, is it really an apples to oranges comparison? Both technologies are commonly used to serve webpages to browsers.
Test Driven Node.JS Development
TDD your node.js
Node.JS is a terrible platform. Itβs terribleness stems from a very simple aspect of it, and this aspect happens to be central to how it works: callback-based I/O
Why Node.JS is absolutely terrible
I don’t necessarily agree with the post (mainly because most of the things this guy hates about Node is what I like), but it is an interesting viewpoint.
(via nodeninja)
