Category Archives: Coding

Bad Coding Style (I)

By | February 12, 2018

Look at the following PHP code snipped. It's a function which calculates the product of its two arguments and returns the result if both arguments are of type integer. Otherwise the function returns false. So far so good. The function does what it should do, and I have seen a lot of functions written this… Read More »