Beyond Compare – Compare Files and Folders

Beyond Compare is a legendary piece of software that I have been using for at least ten years. It compares files and folders with an easy-to-use interface and plenty of advanced features. I have used it to manually check code/version changes, organise photos, efficiently transfer files, and much more. For old-school web development, the FTP…

How to use PHP Type Declarations

PHP has developed into a more strictly typed language in recent years. Type Declarations help with that and are a fairly new addition to PHP, with recent releases improving them further. They give you more precise, concise code, clarity, validation, type-hinting and more. But first… what are Type Declarations? Take a look at this example:…

Anonymous functions

JavaScript allows the use of anonymous functions with full closures. Functions are objects, and you can pass them as arguments like any other object. The scope of a function includes all the names in the scope where it was declared. As you declare functions at run time and local variables can remain after the function…

Type Conversion in Javascript

JavaScript has member functions for all objects, such as “valueOf” and “toString”. When you use literal numbers, Booleans, strings, undefined and null are different from the counterparts that you use for objects. This example shows this: There are ways that you can implicitly convert an object into a literal number, boolean or string. You can…