State Machines

When I learned about Finite State Machines as part of my college degree, I glanced past the formal definition and thought, this is a very simple set of rules. There is probably some more advanced version out there that is employed in the industries. At that time, I had a very rosy picture of businesses… Continue reading State Machines

Let Me Tell you about a C function called asprintf()

Before I begin, thanks to Suraj Pal, for his comments that improved this post. Now onto the scenario.Suppose you are working with a C/C++ function, passing around a string. This time you want to pass the variable by reference. This can be because: The string is big and you are working in a resource constrained… Continue reading Let Me Tell you about a C function called asprintf()

What Are Regular Expressions And How To Use Them

Regex or Regular Expression is a super powerful way for searching in text when you don’t know exactly what you want to find, but have partial information. To understand why this is useful, lets take an example. You are running a business of selling subscriptions to Microsoft Office 365 Enterprise to other Businesses. You have… Continue reading What Are Regular Expressions And How To Use Them