Coding Guidelines: Unsung Hero of Your Software Project

As we’re on the way to finally creating coding guidelines for GNU Radio (see GREP1, also see the original mailing list announcement) I had to stop and think about how useful and underappreciated coding guidelines are. When I first started learning Python, one of the things that people would often comment on was the fact that the formatting was built into the language, unlike languages like C/C++ where whitespace is technically speaking optional. Some considered it an infringement on their coding freedom, but what has happened is that Python has become one of the most readable programming languages out there. Since code is famously read more often than it is written, this is a remarkable achievement.

More …

C++14 features: `std::index_sequence` and friends

Recently, I stumbled upon a C++14 feature which I hadn’t seen before. Baffled at first, I needed to run through a couple of examples before I fully understood what was going and why this new feature was so useful. As the title suggest, I’m talking about std::index_sequence and related objects. (Note: I ran across this while perusing rpclib source code, specifically, the file rpc/detail/call.h).

More …