C++

One catch to rule them …

When writing code, we need to handle errors. What happens if you are trying to read a corrupt file? Or if the network goes down while receiving data? The programming language runtime will try to give you an error message that makes sense, but that doesn’t mean that this is what you want to …

mbed USB voltmeter

USB communication with mbed is easy. That's because USB is the default protocol used to transfer programs from a computer to an mbed.

In this prototype I measure the analog value of a pot, I convert it to voltage, and finally I use USB to print it on my computer's screen. That's a simplistic …

Beware of Q_ASSERT

I really like the concept of inline assertions. Assertions might be rude, since they kick you out of a program whenever they fail, but by using them you can make sure that your code gives you the expected results. You might argue that Unit Testing is a better approach. I won't say no, but I …