Dynamic precompiling of JavaScript functions for fun and profit

Tags:

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 on the fly. Let’s check out how this works …

Git tips for SVN users

Tags:

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 needed to deal with, that I haven’t encountered with …

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

Tags:

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, otherwise not. Except it’s not really such a good …

More blogs that I read

Tags:

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 lot of different PHP blogs and sites, but …