Mikael's blog

A developers sixth time trying to maintain a blog

Posts tagged with #architecture
Client-side JavaScript Initialization
Yesterday I started using the BundleController with my JavaScript files on the client-side. I also deployed my ViewManager so that all my views now uses the bundled and minified JavaScript file produced when I start (or restart) my Node.js server. T...
written on December 7, 2011 at 22:37 by Mikael Lofjärd
Architecture in JavaScript - Closures
Today is Tuesday, which for me means I've held another tutorial at work. Today it was less hands-on and more of me just talking and showing examples on the projector using the wonderful jsfiddle JavaScript quick-hack-tool. My talk today was mostly a...
written on December 6, 2011 at 22:53 by Mikael Lofjärd
Architecture in JavaScript - Inheritance
There's been a lot of debate over the years about whether JavaScript is an object-oriented language or not. Most of these discussions seem to pan out into arguments over inheritance. JavaScript, by design, lends itself well to inheritance through ex...
written on November 29, 2011 at 22:40 by Mikael Lofjärd
Node.js Development Server Strategy
When I started building this blog my server was the production environment and my laptop was the development environment. This all changed when I added the database and started doing more UNIX specific stuff such as path resolving and such. So from t...
written on November 24, 2011 at 18:28 by Mikael Lofjärd
Architecture in Javascript - Modules
About a week ago I wrote about turning client side JavaScript into CommonJS modules. The scoping of variables in CommonJS makes this easy, but what if we wanted to do it the other way around? In CommonJS, modules are scoped by file and all public me...
written on November 24, 2011 at 12:14 by Mikael Lofjärd
Overhaulin'
Tomorrow (actually today when I write this) my daughters day care is closed and I get to spend the day with her at home. That meant that I could stay up late tonight and do some work on the blog. The last few days I've felt that the file sizes were ...
written on November 24, 2011 at 02:08 by Mikael Lofjärd
Why node-static is a good idea
If you are using node.js as a web server (as I am) and you want to serve up static files there are a lot of ways you can go about doing that. I'm going to talk about 3 of them. It's really easy to do this for a proof of concept. Node.js has an eas...
written on November 22, 2011 at 22:40 by Mikael Lofjärd