Why does everything need to be integrated into a framework?

January 21, 2012 – 8:21 pm

There is occasionally people asking about things such as “Is there an integration for X in framework Y”

Then they are disappointed when it isn’t, acting as if it’s a really bad thing.

But why do things need to be integrated to begin with?

Read the rest of this entry »

Thoughts on CoffeeScript

January 9, 2012 – 5:35 pm Tags:

I initially dismissed CoffeeScript as just another silly attempt at making JavaScript not be JavaScript. It probably also compiled the code into some sort of totally wonky JavaScript, too.

However, after thinking about it for a while, I decided to actually try CoffeeScript and see for myself. Now, after using it quite extensively on some projects, I feel I’m qualified to give my completely unbiased, 100% accurate and correct opinion on it.

Read the rest of this entry »

2012 – Mayans beware

January 3, 2012 – 6:36 pm

As I’ve been doing before, here is some statistics from the year 2011 and some other random stuff!

Read the rest of this entry »

How to troll a programming language related community

December 26, 2011 – 9:04 pm

Here’s an easy guide you can use to troll any programming language community. IRC channels, forums, whatever. Your success may vary.

Read the rest of this entry »

My latest project: Battlefield 3 Web Commander

December 5, 2011 – 9:10 pm

Some of you have been wondering why I haven’t been updating.

Well, it’s because I’m lazy I’ve been working on something else:

Behold, Battlefield 3 Web Commander!

It’s essentially a Battlefield 3 server live tracking / admin tool service. It’s powered by nodejs and MongoDB, using libraries Express, Socket.io, Mongoose, Knockout, and a few others.

Do check it out, let me know what you think, and if you own a Battlefield 3 server, be sure to sign up for the beta :)

The dreaded circle of blame

October 31, 2011 – 6:23 pm

One time I was having some issues with my shell of choice, zsh, while using it with tmux.

Now, I decided to pop in on zsh’s IRC channel to maybe get some help.

Then I ran into the circle of blame.

Read the rest of this entry »

Get 20% off for tickets to Velocityconf Europe 2011

October 18, 2011 – 4:27 pm Tags: ,

Codeutopia.net readers can now get 20% off tickets to Velocityconf Europe 2011, in Berlin on 8 and 9 November.

Here’s what you can expect:

Velocity, O’Reilly Media’s successful Web Performance and Operations conference is coming to Europe for the first time! On 8 and 9 November, an international crowd of site reliability experts will converge at the Maritim proArte hotel in Berlin to share their knowledge about making websites scalable, reliable and fast.

Attendees can look forward to two exciting conference days packed with excellent keynote speakers and intensive tutorials. Program chairs Steve Souders (Google) and John Allspaw (etsy.com) have invited experts like Theo Schlossnagle (OmniTI), Jon Jankins (Amazon.com) and Jeff Veen (Typekit) to present their success stories and answer your toughest questions on Ajax, CSS, JavaScript, mobile performance and more.

Code after the jump.

Read the rest of this entry »

Adventures in Haskell: Dynamic loading and compiling of modules

August 20, 2011 – 1:41 pm Tags:

In my latest attempt at using Haskell, I was working on creating a kind of a plugin architecture for my application. I wanted to be able to load haskell code dynamically, without having to restart the main application.

This is doable using the GHC compiler API’s. However, the documentation for it is quite lacking in examples, and while I was able to find an article talking about it to get started, it wasn’t entirely smooth sailing even after that…

Read the rest of this entry »

Doctrine 2 and the law of demeter

August 2, 2011 – 6:06 pm Tags: ,

Doctrine 2 makes it very convenient to access related objects in your code: Just do a $entity->getRelatedSomething()->getThingValue();

However, this kind of pattern makes for easy errors when getRelatedSomething returns null – and as a side effect of this, you can end up with a lot of code which checks if the value exists before accessing it.

This in turn can make your code more convoluted because of all the conditionals used. The thing is, this is easy to avoid if you stop violating the law of demeter!

Read the rest of this entry »

PHP typehinting gotcha in exceptions/methods

July 13, 2011 – 5:23 pm Tags: ,

A small gotcha I recently ran into: If you use typehinting, PHP never checks that the class your typehint specifies actually exists!

Read more for some examples

Read the rest of this entry »