Archive for November, 2009

Dynamic precompiling of JavaScript functions for fun and profit

Friday, November 27th, 2009

Hey it's Friday so it's time to try a fun JavaScript hack - Let's go and precompile some functions! What does "precompiling" mean? In principle, it means we take a function which takes multiple parameters and pre-define some of them. All this is done dynamically, so your code can do it ...

Git tips for SVN users

Thursday, November 19th, 2009

SVN is the version control system I've used the most, but lately I've been using Git more and more. I've also been using Git with projects that have an svn repository thanks to git's built in svn support. While working with it, I've ran into several typical cases that I've often ...

A simple way to make your code better: Stop adding more parameters

Wednesday, November 11th, 2009

You need to add some new functionality to your function or class. Let's say you need to remove all objects stored, but optionally also call a method on them. It's pretty simple, isn't it? Let's just add a parameter to removeAllObjects! If you make it true, the additional method is called, ...

More blogs that I read

Thursday, November 5th, 2009

Continuing the trend from last November, when I posted some of my favorite blogs, I think it's time to highlight some other good blogs! So here's a bunch of more - be sure to check them out: The PHPDeveloper blog: Many PHP programmers probably know the PHPdeveloper website, which links to a ...