Angel \”Java\” Lopez on Blog

November 11, 2013

TDD Rocks! (2) OStore With JavaScript/Node.js

Filed under: Google, JavaScript, Test-Driven Development, Video — ajlopez @ 7:14 pm

Previous Post
Next Post
Next Post with JavaScript/Node.js

I recorded this Google Hangout on air. It was automatically published on my Youtube account:

http://www.youtube.com/watch?v=Uica74QlfxQ&feature=youtu.be

An in-memory object store. This time, the programming language is JavaScript, using Node.js. As usual, I’m speaking Anglish (Angel’s English).

I showed my usual workflow of development, starting with Node.js require(‘assert’). Even when the under-development software should run in browser, I wrote it from console, using Node.js and a minimal library. As an example, see the commits of https://github.com/ajlopez/PLangRe that I use from the browser at http://ajlopez.github.io/PLangRe/)

In this first code, I didn’t think on callbacks. Maybe, in future requirements, I will refactor/redesign the code to support them. In that case, I could use MongoDb as an store. But I prefer to start simple and do “baby steps” instead of designing a lot at beginning.

When we follow the TDD workflow, software development is like a video-game: we are going from one level to the next, solving puzzles (making a test running in green). And then, applying refactor to minimize technical debt. The  software grows organically, where each line of production code can be traced back to a test.

There is a second video.

Keep tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

3 Comments »

  1. […] Next Post […]

    Pingback by TDD Rocks! (1) Playing with Ruby | Angel "Java" Lopez on Blog — November 11, 2013 @ 7:15 pm

  2. […] Previous Post […]

    Pingback by TDD Rocks! (3) SharpBase in C# | Angel "Java" Lopez on Blog — November 27, 2013 @ 4:46 pm

  3. […] Previous Post Previous Post with JavaScript/Node.js […]

    Pingback by TDD Rocks! (7) OStore With JavaScript/Node.Js | Angel "Java" Lopez on Blog — December 21, 2013 @ 6:35 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: