I recently came across a file format that required usage of Run Length Encoding to handle. This involved writing methods for both decoding and encoding. Here are my results:
Any programmer worth their salt should have a few tricks up their sleeve. Among these should be regular expressions. The syntax for RegEx is unusual and hard to get used to, but only with a little practice (or even a cheat sheet) you can realize the full potential when it comes to text processing and string handling.
While working on Sprite Editor, I had to dig deep into the web in order to come up with a fast, lightweight method for the deserialization or parsing JSON files. The .NET 4Â Framework does have a few methods to enable this functionality, but they are not very customizable or powerful.