Writing a raytracer in Go #1: Introduction

Two weeks ago I was at GopherCon Brasil 2019 at Florianópolis for the first time ever. There were a few interesting talks discussing Go’s compiler, linters, GoCV with Tensorflow and HuskyCI (which you should definitely check out).

However great the talks were, the event was especially important to remind me that I genuinely like what I do. Between work and university, it’s really easy to forget that I also like to program as a hobby.

Continue reading…

Static classes vs namespaces in C++

I was implementing a Logger feature in my project when I had to decide how it should work. So, I had three options in mind of how to do this: a singleton object, which would require lots of references to it in the other classes of the project, a regular object, which would require instantiating it everywhere it was needed or, a static class, which would only require including the Logger’s header in the file that was going to use it.

Continue reading…