Software Engineering discussion
Code Complete
>
Unusual Data Types
date
newest »


I noticed there was one paragraph on the "sizeof" C++ feature. The size_t typedef and sizeof( ) were the two most common problems I found when porting legacy code from x32 to x64 recently.
I'm a little suprised they didn't discuss structure byte packing.
I think that the material on global data is well done, and it makes the important point that depending on our definition of "global", it is all around us (i.e. a database). While it should be avoided, but it isn't always evil and sometimes it is necessary.
I also discovered a new term (at least new to me) for something I have seen many times: "tramp data". It is defined as data passed to a routine or class merely so that it can be passed to another routine or class. I see this in functional programming-based code all the time, because global data is not allowed (hence no side effects).