Will the syntax change? As the code is quite old so whenever I try to refer the internet in order to understand somehow I couldn't find the example similar to it so I'm confused.
Well, there's more than one way to write code. You don't tell us what which part you've tried and failed to research. Regardless, since the author explains in his blog post what he wants to achieve, you could try and implement this yourself, rather than rely on someones code that you don't understand.