Skip to content

Month: April 2018

Go’s new brand finally convinced me: let’s learn Golang

Go Logo. Copyright 2018 The Go Authors

Every single programmer that has worked with either C or C++ has learned to maintain a love-hate relationship with them. They are powerful, efficient and pretty much everywhere, from embedded devices to high-end servers. However, they are also a pain to work with. Taming those languages requires experience and a lot of hard work, even for the most basic tasks.
Despite all of their drawbacks, I still like working with them. But deep in my soul I was craving for a modern alternative, with their advantages but without having to sleep with a 1000+ pages long C++ reference by my side.

Getting started with CppUnit

“Puzzle” by Olga Berrios (CC BY 2.0)

Recently I had the oportunity to start implementing unit tests in a C++ project. The chosen testing framework was CppUnit, which is an port for C++ of Java’s JUnit. To be honest, CppUnit is not as popular as it used to be, specially compared with its more handsome and stilysh cousin JUnit (at least JUnit seems to have a website written after 2005).

The main issue is that documentation comes from fairly old articles, and it is not as accesible and up-to-date as with other projects. Taking into account that modern alternatives exists, such as googletest, one could be tempted to run away and never look back. However, let’s not be afraid and try to come up with a working example of CppUnit.

Practical reasons for encouraging digital privacy

“Privacy”, by Thomas Leuthard (CC BY 2.0)

Considering recent events, digital privacy is once again a popular topic, and not precisely for good reasons. Although data breaches and cyber-attacks are nothing new, it is always worth stopping for one second to think about their consequences, and the role that information technologies plays in our lives. The digital era has brought us unlimited amounts of information and connectivity, with an undeniable positive impact in our quality of life. However, it has also brought a state of nearly perfect surveillance.

Comparisons with George Orwell’s novel, 1984, are already a cliché, but only because it serves as a clear point of reference to analyze our current situation. And the truth is that we are much more observed that the characters in the novel. While their government had a camera on their living room, always spying, our governments have a camera pointing at our souls (so to speak).