Programming Theory

Best practices, structuring of code, dissecting algorithms and talking about the “Why?”

PHP Wants To Be Your Web Language Of The Future – Part 4 – Foreach Non-Scalar Keys and Using with List()

This is part 4 of a 6 part series looking at the some of the wonderful features of PHP 5.5 and why it might remain a dominate web language for the future. This series was originally written for the Software Developer's Journal. In part 4 we are covering some of the new features related to foreach in the PHP 5.5 branch. While I myself have never really used these ideas much ...

PHP Wants To Be Your Web Language Of The Future – Part 3 – Constant Array/String Dereferencing and Empty for Expressions

This is part 3 of a 6 part series looking at the some of the wonderful features of PHP 5.5 and why it might remain a dominate web language for the future. This series was originally written for the Software Developer's Journal. In part 3 we are covering a couple of my favorite features introduced in the PHP 5.5 branch. The first one, constant array and string dereferencing, have been a ...

PHP Wants To Be Your Web Language Of The Future – Part 2 – “Finally” and Password Hashing

This is part 2 of a 6 part series looking at the some of the wonderful features of PHP 5.5 and why it might remain a dominate web language for the future. This series was originally written for the Software Developer's Journal. Continuing on with our 6 part series, the next two items that make PHP the language of the future is the finally keyword (which is used in conjunction with ...

PHP Wants To Be Your Web Language Of The Future – Part 1 – Generators

This is part 1 of a 6 part series looking at the some of the wonderful features of PHP 5.5 and why it might remain a dominate web language for the future. This series was originally written for the Software Developer's Journal. Back in the early days of PHP the language was very different than it is today. While classes were available, PHP itself was very fragmented and felt more like ...

Serializing and Deserializing XML Through a URL Endpoint in C#

Recently, at the company I work for, I had to merge two very different web sites together. While both use C#, that is where they pretty much stopped in similarity. We were exploring ways to have them talk to one another very plainly and transmit only minimal amounts of data. One website was a store which was built around the idea of digital products and it had to talk ...

Some Coupling Needed in Software Systems

The name of the game in software development is to write code that is easily readable and maintainable. To do this programmers have been practicing the art of loose coupling and high cohesion. For those not familiar with those concepts, coupling is the degree by which one piece of code relies on another piece of code to function. For instance, a car relies heavily on an engine to function. This ...