Posts Tagged 'explanation'

svndiff / deltav algorithm

Posted by:

(This post refers to svndiffs V0 compressed strings).

The article at explains how the svndiffalgorithm works. This post tries to give a more concrete idea of what happens, refering to the example that can be found at the end of the above linked article.

SVN delivers the text deltas base64 encoded, so you first have to decode the string to work with it. Next step ist to check the string for it’s first four bytes, which must represent ...

Continue Reading →

javascript, prototypes and object references

Posted by:

If you are using OOP, you are familiar with initializing class members in the head of the source:

 * Pseudocode
class Foo {
    int i = 0;
    Array bar = new Array();

However, if you are using Javascript’s prototypying, assigning objects to class (prototype) members will result in static instance variables.