Archives for 2013

Dotless dynamic server-side values

Using the dotless HttpHandler, we can easily start transforming our less files into rendered CSS. But if we want to manipulate variable values before it is processed, we have to do a bit of manual work. Let’s take a look at how this can be done. In this example, we have a list-element using 2 […]

MSBuild Task dll locked by Visual Studio

Through MSBuild we are able to control how we wish to process and build our software. A nice feature of this is the ability to create custom Tasks. A Task is a unit of executable code used by MSBuild to perform atomic build operations. MSDN Creating a custom Tasks allows us to hook into the […]

Do Git file renaming by itself

Often it would seem that you can throw anything at Git and it will automatically know exactly what you mean. Sometimes, though, Git simply does not have a fighting chance! Git recognizes file content and not names meaning it uses an algorithm to determine when two files with different names are in fact revisions of […]

JavaScript function memoization

I have previously written about JavaScript functions having properties. I provided a fairly simple example of how this works. Another way this can be utilized is when doing function memoization. Memoization optimizes speed of function execution by avoiding repeating calculations for previously passed inputs. This means that a memoized function remembers the computed result for […]

JavaScript function properties

One of my favorite parts of JavaScript is that functions are first-class objects. This might sound trivial but does, in fact, have some very useful implications in that a function is just a type of object with the same behavior as “regular” objects. As an example: a function can return a function, have properties and […]