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 …
2012 – Mayans beware
As I’ve been doing before, here is some statistics from the year 2011 and some other random stuff!
How to troll a programming language related community
Here’s an easy guide you can use to troll any programming language community. IRC channels, forums, whatever. Your success may vary.
My latest project: Battlefield 3 Web Commander
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 …
The dreaded circle of blame
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.
Get 20% off for tickets to Velocityconf Europe 2011
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 …
Adventures in Haskell: Dynamic loading and compiling of modules
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 …
Doctrine 2 and the law of demeter
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 …
PHP typehinting gotcha in exceptions/methods
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
Why did nobody ever tell me about ssh_config?
As someone who uses SSH a lot, I need to remember a bunch of different usernames, identity files and even one non-standard SSH port. It can sometimes be a bit of a hassle, especially if I need to use a specific identity file or other such, and then need to subsequently remember the pathname to it and all that. But …