Posts under alt-tekpub

Loading Data From The API – How Much Is Too Much?

Data Or Code? Here's the deal: the API i'm putting together for Alt.Tekpub is starting to "formalize" itself into an initial "burst" of data, with "auxiliary" stuff requested later on. At this point I need to reduce the chatter – so I'm handing down a structured JSON set from the get go: You'll notice the […]

Alt.Tekpub: Working More With The Hypermedia (style) API

In Progress I wanted to re-iterate, one more time, that this is a work in progress so some of the things you see me do won't make sense in a grander scheme. For instance – in production I probably wouldn't have the entire home page content load with $().ready() and a GET call to my […]

Alt.Tekpub: Consuming The API

Take Nothing for Granted As a programmer it's easy for me to think about ways that clients might consume my API. For instance – I'm imagining a few scenarios with Backbone, iOS, Android and WP7, for instance. But the truth is … I have no idea how this API might be used. But I can […]

My Week With The Hypermedia Cowboys

Hyperbole: Take a Break I received a lot of help over the past few weeks from good folks like Mike Amundsen, John Sheehan,Darrel Miller, and Steve Klabnik. Each offered a varying level of hands-on help and I very much want to honor their efforts with the least amount of snottiness possible. I do have some […]

Moving The Philosophy Into Machinery

An Invitation I admire people who stick their neck out and offer to help others. In my case, with this whole REST kerfuffle – that would be Glenn Block (aka "2Cs"). He has been patient and kind and I very much appreciate it. I'm also stubborn. Like you. I do see the merits in understanding […]

Alt.Tekpub: Conceiving a RESTful API

Use Cases Always start with the user/consumer in mind (in this post the user or consumer is someone using my API for whatever reason). If they don't like what you do, your app is pointless. This can mean a lot of things to a lot people:- To a UX designer it means getting your wireframes […]

Testing Your Model with Mocha, Mongo, and NodeJS

Choices and More Choices The good news when getting off the ground with NodeJS: if you like testing, there are many interesting and solid choices. The ones I looked at are: Vows. A very interesting asynchronous test framework with beautiful documentation Mocha. A lively, capable testing tool that I ended up choosing. I started off […]

NodeJS Callback Conventions and Your App

Did It Work Or Didn't It? I have a method on my Customer module where I add a customer to MongoDB: var customer = require('./lib/customers'); customer.register("","password","confirm", result, success); The last two arguments here are callbacks. If you're new to Javascript – keep in mind it's asynchronous which means that nothing really happens right now. If […]

Alt.Tekpub: Moving to MongoDB

Exploring NoSQL When we moved from .NET to Rails we started out with MongoDB using MongoMapper. I loved it a lot back then – incredibly easy to work with and quite fast. But Rails wasn't built with NoSQL in mind and frankly it seemed like I was trying to solve the wrong problem as ActiveRecord […]

Alt.Tekpub – Installing and Setting Up Node

Hello Node Installing NodeJS is pretty simple these days. Understanding what's going on takes just a bit more effort. My goal today is to get NodeJS installed and then lay in the Express framework on top of it (think Sinatra for Node). The first part is easy: head over to and download your installer […]