programming

1.#INF, 1.#IND and #QNAN floating point numbers and errors

Floating point conditions

When programming, there are certain error condition that might arise from your code. If the compiler catches any compilation errors, it will stop compilation and tell you what and where the error is. The compiler also may issue a warning for certain constructs, which may or may not give you problems during runtime.

How to create Redux sections in a loop

We were creating a WordPress theme, SF Parent and had stumbled upon a a problem where we needed to create 5 or more sections. In these sections, users could choose any pages from their website and assign background color for each section. The sections would then show up on a front page of the website.

Ways to program your drone to do awesome stuff

Drones, quadcopters, RS helicopters and other remote controlled crafts are hot topic these days. We programmers are more interested in how to program them to do something cool. Indeed, it’s become more and more easy.

Sphere vs AABB collision detection test

As the sphere is being the simplest primitive there is, the test for Sphere and AABB intersection is easy. This solution works also for Sphere Cube intersection tests.

Clean code

The book by Robert C. Martin “Clean Code” is a really very useful material for all programmers. You can disagree with him sometimes (as I do), but it still provides some useful notes that helped me to place my programmer experience and knowledge where they belong. Here I’ll provide some key notes that I did while reading the book and that I’d like to memorize.