Writing a Node Module

This example assumes that you have a Github account. If you don't have one, you can get one at (suprise!) Github. It also assumes that you have installed Node and npm. It will also simplify your life to have the github gem installed Create the basic structure # Create a directory $ mkdir sleep-sort # [...]

Tags: , ,

Braceless Programming

During the Software Passion Summit in Gothenburg, I had the privilege to talk to Douglas Crockford, the grandfather of Javascript and the creator of JSON and JSLint While I think that JSLint is an awesome tool, I also think that it is too opinionated and therefore I use JSHint, an alternative that allows me to [...]

Tags: ,

Finding with Git

Git is an amazing version control system that never loses anything, but sometimes it can be hard to find out where things are. Most of the time it is going to be git log that is our friend, but not all the time. Where is my file? Sometimes you know that you have a file [...]

Tags:

7 Reasons to go to Øredev 2011

I’m am looking forward to Øredev 2011 more than I have looked forward to any of the previous ones. The reason for this is that Øredev has finally become a leading conference for dynamic programming. Øredev has always been good in the enterprise sphere led by Java, .Net and mobile tracks, but it has been [...]

Tags: , ,

jQuery Changes From 1.4.2 to 1.6

jQuery is a powerful library and it is possible to get by without using any of the new features. That’s why many of us just upgrade to a new version assuming that it is mostly bug and performance fixes. This is not the case. jQuery 1.4.2 was released in February 2010 and it’s been one [...]

Tags: , ,

Tips from Rails Anti-Patterns

Another good Ruby book is out, Rails Anti-Patterns. The book is loaded with good tips on everything from following the Law of Demeter to cleaning up your views with the use of helper methods. Here are some things I picked up from the book. delegate can take a :prefix argument The delegate method from active_support [...]

Tags: , ,

Ruby, an Exceptional Language

Based on the book Exceptional Ruby by Avdi Grimm, I have developed a strategy for how I should deal with exceptions in Ruby. Being a very dynamic language, Ruby allows very flexible coding techniques. Exceptions are not an exception . When I am developing a library in Ruby I typically create one Error module and [...]

Tags: , ,

A Not Very Short Introduction To Node.js

Node.js is a set of asynchronous libraries, built on top of the Google V8 Javascript engine. Node is used for server side development in Javascript. Do you feel the rush of the 90′s coming through your head. It is not the revival of LiveWire, Node is a different beast. Node is a single threaded process, [...]

Tags: , ,

Mastery

Mastery Here is a wonderful story, told by Ken Robinson in his book The Element, about an 8 year old girl, Gillian Lynne, who everyone sees as a problem child. Gillian and her mother went to a psychiatrist and the mother describes her daughter’s difficulties with concentrating, sitting, and doing her homework. The doctor listened [...]

What Is New in EcmaScript 5?

More and more browsers have implemented EcmaScript 5. That means that it is time to get up to speed on what it means for us as developers Here is a summary of Douglas Crockfords talk on Ecmascript 5 at Scandev New Syntax It is now possible to use reserved words as property names and in [...]

High Performance Javascript

Here are some tips on high perfomance Javascript I have picked up. Most of it comes from the books High Performance Javascript by Nicholas C. Zakas and High Performance Web Sites by Steve Souders. Loading Load files at the end of the HTML page Load the Javascript files right before the end body tag, this [...]

Host Specific Routing Via the iPhone on OSX

If you are working as a consultant, it is sometimes not easy to get proper network access when you are using your customer’s network. The easiest way to solve this problem is to connect via your mobile phone. But, the 3G network is not always the fastest and it would be nice to use the [...]

Tags: , ,

Continuous Delivery

I just finished the book, Continuous Delivery by Jez Humble and David Farley. It’s a great book, but it is a bit wordy (512 pages), so here is the gist of it. Continuous delivery builds on a simple foundation, continuous integration, automation, and version control. But in order to get it to work you must [...]

Tags: ,

Dynamic For The Win

Everything passes, everything. — Anthony de Mello, Awareness Take a look at what is happening around you. Relational databases are replaced by NoSQL databases. SOAP is replaced by REST, Javascript is dominating web development. The only place where dynamic is not winning is in the world of programming languages. But even if you take a [...]

Review of Crafting Rails Applications, by José Valim

José Valim is one of the newest members of the Rails core team. Apart from this he has also developed some good gems, Devise, Responders, and SimpleForm, that I use for almost every project. And now he has written a book, a really good book, about advanced Rails programming techniques, called Crafting Rails Applications. The [...]

Tags: , ,