Unit test in C++ with Google Test

I had the extreme need of building a C/C++ CGI this weekend and, why not, i wanted it fully covered by tests.

As always, for any need, Google has a solution and, in this case, for my testing needs, Google had Google Test (gtest), a pretty easy to use library that allows you to write test cases (made of assertions) and compile/run them to check the project’s integrity.

Continue reading “Unit test in C++ with Google Test”

Videogames behind the scenes: Maths in movement

In the videogame’s world, everything is math, maths are everywhere, shooting is feed with maths, reward systems are feed maths and movement -our main topic here- is feed math.

Welcome son to the world of mathematics.
Continue reading “Videogames behind the scenes: Maths in movement”

Javascript by reference: understanding javascript

When someone ask me to introduce him into the whole programming thing i always recommend to start with C, it’s not just because it’s the cleanest and straightest language to work with -it definitely is-, no, it’s because learning C will teach the developer how things really work and will turn on your “programmer” mind-set.

Understanding how C works makes you capable of understanding how other c-based languages (like JS, or python) works under the hood and hack or trick them with knowledge and ease.

Continue reading “Javascript by reference: understanding javascript”

Design a site like this with WordPress.com
Get started