Living with Gentoo

By Matt | Filed in Technology

About a year ago I switched from Ubuntu to Gentoo. It was a bit of an experimental switch, but I must confess I am now a convert – I’ve got it running on my development machine at work, at home, and on my laptop.

I really like the way that its package management works – using emerge and portage. In my /etc/make.conf file I have the following:

ACCEPT_KEYWORDS="amd64 ~amd64"

which essentially means I’m allowing the use of the AMD64 testing branch. To be honest though, I’ve never really had any problems. If there is a particular package that causes problems, you can very easily mask it out anyway. Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

Message Queues in Node.js

By Matt | Filed in Technology

Message queues are becoming increasingly common in web applications, since they provide a nice way to process data offline – i.e. outside of the synchronous HTTP flow.

In a very simplified manner, the idea is that when a message (some arbitrary data) arrives, it is placed on a queue and that process has finished its job – i.e. the client can be told that the message has been accepted. Another process (or multiple processes) can then consume messages from that queue for processing.

As marriages go, the joining of message queues and node.js is pretty perfect! When done in a language such as PHP, the process must poll the queue constantly for messages. Node flips this round, and rather than polling for messages, the process registers an event handler that’s fired when a new message is available. Read the remainder of this entry »

1 Comment. Join the Conversation
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

I’m a huge fan of Service-Oriented Architecture (SOA) since I think it offers a very flexible way to work. By defining interfaces between services, it lets you integrate with existing legacy systems. It also recognises that one day, someone will probably consider your new system to be legacy, and you are helping them by having created a standalone service that they can rewrite/refactor/replace/remove.

So how does node.js fit into all of this?

Well, node.js is the new, cool kid on the block. It proposes a fairly radical new way of working compared to traditional web application technologies – e.g. PHP.

The key thing about node is that it’s all event-driven, and it’s very efficient in the way it does it. Although it’s possible to create a pseudo-evented PHP application, it’s really not playing to PHP’s strengths. With node, you just register a whole host of event handlers, and then set the ball rolling. Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

New & Improved

By Matt | Filed in Technology

I’ve always wondered how something can be “new” and “improved”. To be improved suggests that there was something there previously, and hence it can’t be new.

However, I think I’ve now found how something can fulfill both these criteria, and this blog is my prime example of this.

There was a blog here. I use the past tense because I didn’t really maintain it much – or at all in fact! That blog was based on Habari which I chose over WordPress at the time. I’ve now changed to WordPress. Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

Windows vs Mac vs Linux

By Matt | Filed in Technology

Well, I might as well kick off this debate. It”s not exactly a new one, but I like to think it is a changing one.

I”ve used Windows since Windows 3.1, and have used pretty much every version up to Windows 7 at some point since then. It was never that I had any particular love of Windows, it was always just the default choice.

Years ago I had an old machine running FreeBSD, and then in about 2004 I moved to Linux more seriously. Since then, I”ve tried a whole host of different Linux flavours – Mandrake/Mandriva, Fedora Core, Debian and Ubuntu being the most notable. I”ve also used some of the mini-distributions such as Knoppix and Puppy Linux in emergencies! Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

Framework Structure

By Matt | Filed in Technology

When building a framework, it”s critical to get the structure correct from the outset, else it”ll just make things far more complicated in future. As I”m familiar with the Zend Framework, and it seems to have a fairly logical structure, I based the JS framework structure around this. Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

MooTools 1.2

By Matt | Filed in Technology

In the past, I”ve used jQuery. I like the way it works with plugins, and its syntax seemed fairly sensible. But I started working with MooTools last year, and I really like it.

The task that I was commissioned with was to build a front-end application framework that would allow a user to interact with RESTful services. It was to be written entirely in JavaScript, and had to be incredibly flexible. We narrowed down the choice of JavaScript framework to MooTools, jQuery and Dojo. For a variety of reasons, MooTools was our final choice.

It was pretty evident, however, that we were going to have to dramatically extend MooTools with our own code library, in order to turn it into what would effectively become an object-oriented, MVC framework.

In this blog, I hope to share some of the lessons we learnt along the way. We found bugs (or at least, what we considered to be poor behaviour) in MooTools and Firefox, as well as obvious problems in IE 6, 7 and 8. Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP

Welcome

By Matt | Filed in Miscellaneous

Welcome to my new blog. I’ve tried starting a blog in the past, but never actually bothered to regularly update it. But what the heck, let’s try it again. I’ve used WordPress in the past, both for my previous blog attempts and for client sites, however this time I’ve gone for something different.

I don’t like the way WordPress works behind the scenes, and was looking for a nice, standards-compliant blog platform. I came across Habari and it looked like the type of thing I was after, so this is what I’m using now.

I’m not entirely convinced that it’s perfect, but we’ll just have to see how things go. I fully intend to contribute back in any way if I can in future. Read the remainder of this entry »

Be the first to comment
del.icio.us this! Digg this! Share on Facebook! Share on LinkedIn! Stumble Upon this! Tweet this! Share on Reddit! RSS 2.0 TOP