Introduction to the Singleton Pattern in PHP

Ok, what the hell is with all this talk about design patterns? The bookstore has books dedicated to the subject, experts in all the different computer language fields are talking about them, and how the hell does it make my programming life easier? The answers may be "They are gossips", "Authors have nothing else to write about", and "Yes they will make things a bit easier for you in the ...

Apply Formulas to Your Programming

There has been a lot of instances where we receive a question about a mathematical formula not working correctly in a program or script they are writing. How does one go about solving such a problem? Well, I will provide some great tips to get you started here on this entry of the Programmer's Underground! Mathematical formulas are all around us for all sorts of things we do in life. From ...

Test and Test Some More

At the heart of programming is the test. Without a good test, nothing will work right. How often should you test and what should you test? We will cover a few topics in the world of testing and how you can make tests that tell you the most about what is going on with your programming... on this entry of the Programming Underground! Every day we get people on the boards ...

Google Presentations…Office or Bust!

So recently I tried the new Google Presentations, their version of Office's Powerpoint and I must say, I think it is pretty slick for being an online application. We will talk a bit about the new presentations application, what it might mean to programmers and what it means to the rest of the computing industry... in this entry of the Programming Underground! People, including experts, had been saying that out of ...

Let’s Get Loopy… But Sensibly

Looping is to programming like walking is to running from the cops... you don't want to exactly be slow or you might get busted! But how exactly do we improve our loops to increase performance? There are a few tips I can share on how to make that loop super charged so you can jump over the fence and laugh at the cop on the other side as he tries ...

Best Practice: Naming Conventions

i = 0, j = k + t % rr ok? Do we even know what the heck that is saying? This is the kind of stuff programmers have to deal with when editing someone else's code. What do these things mean? As programmers we should strive to make code better than we found it. A keyword here is "Naming convention". We will explore what it means to have one ...