Posts Tagged "C/C++"

C++ or C#, In the End Does It Even Matter?

This debate rages on and on and really appears to have no end in sight. Everyone tackles this long winded discussion from a different angle and it even gets into verbal attacks between parties. Some quoting one source while another quoting another source when really people have lost the overall picture that programming is meant to solve... providing a solution to a problem. Some languages work better on certain problems ...

Caught in Pascal’s Triangle

Earth has the Bermuda Triangle, Space has black holes, and humanity has my crazy mind. All of these things are largely unexplained phenomena and so I figured, why not throw out one for the programming world? If Bermuda can have a triangle, dangit we are going to have one too! Introducing Pascal's triangle.... on this episode of the Programmer's Underground! Pascal's triangle has been studied around the world for hundreds 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 ...

Fines Double in Constructor / Destructor Zones

If your language is somewhat of a fully object oriented programming language then it probably has some form of constructors and destructors. But what good are they? How do you use them to your full advantage to keep your objects "valid"? What is this whole idea of a default constructor and why in the heck do I want to create my own constructor if the default constructor is there for ...

Variable Lifespan… It’s Born, Used and Dies

Variable lifespan is a very important topic. But what is it and how do we use it to our advantage? A variable's lifespan is the time between its initialization and the time it either goes out of scope or is purposely destroyed (yeah that is right, a programmer can be a hitman too!) Most programmers don't fully realize the implications of setting a variable at the top of a function ...