Express 4 routing

Express 4 offers a nice modular way to structure your routes. var express = require("express"), router = express.Router(), app = express(), port = 4000; // Here we declare our API which will be visible under prefix path router.get('/', function (req, res) { console.log("request to subspace hello"); res.send({ message: "Hi from subspace /api/v1/"}); }); // we…


Read More

GIT: splitting repo into two

Splitting the repository Below are the instructions of how to split an existing repository based on folder structure into two, or more. Let us assume the repository has dir1 and dir2 in the top level folder structure. The following instructions will make a new repo based on dir1.       # make a copy…


Read More

State of industry: seminar

Today we have two professional software developers visiting the school and telling us on state of the industry. This is of course quite limited perspective.   Distinction between skill and experience Skilled programmers often do the same task in a different way. The only thing that really matters is experience.   Coding Katas As a…


Read More

Behaviour attribution

Notes Attribution theory attempts to build models by which individuals explain the causes of behavior and events. In other words, how the social perceiver uses information to arrive at causal explanations for events.  It examines what information is gathered and how it is combined to form a causal judgment. See the Chapter 2 of the book Essential Social Psychology:…


Read More

Attitude change

Notes Attitude change and the study of persuasion are getting quite a lot of attention. Some estimate that there is an  excess of 1000 publications in this area each year. The landmark work has been done by McGuire in 1985 in “Attitudes and Attitude change”. Direct path (numbers, facts, stats) Peripheral path (emotions, feelings, e.g. fear, sense of…


Read More

Android Developers Lab day, Auckland

Notes from ADL2012, Auckland Wednesday, Feb 8, 2012 Outline Definite Android Design morning tea follows Market services for Developers ICS: communication, Connectivity & Camera after lunch – practical sessions and codelab http://bit.ly/adl2012 Starting at 9:20. Running slightly late. Conversations on Twitter: #adl2012 What’s the best way to contact the developers team: * Stackoverflow, android section…


Read More



MySQL, SUN and hackers culture.

From Five Questions …: “Choose the right license. Find a business model that allows you to work full time on your product. Understand that not all bussiness is made for getting venture capital and grow. Most bussiness are made by small, quite profitable service companies that creates a good living for their workers. Study other…


Read More

Dependency Injection

This Google Talk provides an overview of the concept of Dependency Injection. It presents an excellent overview of how to separate the application logic and the builders/factories when writing code, so that testing becomes much more natural, self-explanatory and easy for both: logic and instantiations/wiring. Check picocontainer and xunit testing framework. Also google GUICE, a…


Read More