MODBUS ASCII LRC Computation in C++

In C++, IoT by timfanelli

I’m currently working on a project interfacing a BeagleBone Black to a drive control unit, which communicates using MODBUS ASCII over RS-232. The biggest challenge with the communication protocol is …

Monty Hall Problem

In C++, Programming by timfanelli

I read a very interesting article on the NY Times today, linked from this /. article, about the Monty Hall Problem. The problem has apparently caused much embarrassment among mathematicians, …

C++ const Correctness

In C++, Programming by timfanelli

Here’s a very thorough article that supplements my recent const rant very nicely. I received a number of emails back arguing against my point that const is important and influential. …

C++ const Keyword Usage

In C++, Programming by timfanelli

Just as a follow up to my last post, here’s a quick overview of the const keyword 1. const int x = 5; 2. const int * px; 3. int …

C++ const Keyword

In C++, Programming by timfanelli

const is, in my opinion, the most influential and least frequeuently used keyword in the C++ programming language. This may seem like a very bold statement, but having recently started …

Data Structures in C++: A How Not To

In C++, Programming by timfanelli

It never ceases to amaze me the drastic impact our choice of datastructures has on application performance, and how little thought many developers seem to give it. I was charged …

C++ Expression Evaluation

In C++, Programming by timfanelli

I recently posted a link to Bjorne Stroustrup’s C++ FAQ, in which he points out that the value of: is undefined. I decided to throw together a couple little sample …

Bjarne Stroustrup’s C++ FAQ

In C++, Programming by timfanelli

That’s right, a C++ FAQ by Bjarne Stroustrup himself. I ran across this faq this morning while googling for the forgotten name of the famed designer of C++. This is …