Today's lesson: don't do phone interviews when suffering from insomnia
-
I'll disagree with a number of the posts on this topic. One of the first projects where I did any OO design was done in C for real time control of a robotic palletizing system. It went into production in 1992 on 2 386sx16s with 1MB of memory for each cell, and a 386dx33 with 4MB for the overall controller. It is still in use today on the same hardware, with the software still only using a fraction of the memory and processing power available to it. We developed standard interfaces for the PLC communication, digital I/O, etc so that we could build additional iterations of the system and plug different hardware into the same control logic as needed. We also wrote a custom object request broker to glue everything together. It included the ability to tell an object to persist its state to the filesystem and then restart, enabling hot patching of the system.
*grin* I was making a joke, but you plainly can only *simulate* OO in C.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog