Clean code is one of the most important things in a programmer’s work life. Almost every time I have to reuse code that was developed in universities or more generally by non-professional developers, the code is difficult to read and to understand.
After reading this book, I tend to know why it is so and how I can change my ways of coding to produce cleaner code.

Read More

At last, I’m starting with my first post on my attempt on Interactive RayTracing. This first one will only be on the generic global implementation.

A matrix library must be used, the same basis class will be used for each element, point or color, but with a different size (if needed). I will use a typedef for defining each of them. This will help explaining what is going on. I will not explain the code of the library, althoug the optimization of the raytracer will surely have to be done in this part of the code as well.

So a vector will be named (for the moment) Vector3df, a point Point3df, a normal Normal3df and a color Color. All elements will live in the IRT namespace.

Read More