|
|||||||||||||||||||||||||||||||||||
|
1 Review
|
Average Customer Review
Share your thoughts with other customers
Create your own review
|
|
Most Helpful First | Newest First
|
|
8 of 10 people found the following review helpful:
4.0 out of 5 stars
Programming Basic to Intermediate Applications,
By Leblanc (Fort Worth, TX USA) - See all my reviews
This review is from: Interfacing with C++: Programming Real-World Applications (Hardcover)
Pros:
Gives the essential to c++ object model as it would be used for hardware: Constructors and Destructors, Visibility - access modifiers, Overloading, Cloning, and class abstractions. Of course gives examples of inheritance, polymorphism, and encapsulation while using the parallel port for all examples. Each project has a concise and clear explanation of how the hardware works - no theoretical fluff. Then you dive right into the code. So its an easy read from start to finish. Coming from higher level language using collections and generics I liked how the author gave examples of accessing multidimensional array elements with pointers. Besides the programming aspects, here are the hardware main projects Parallel port projects: Parallel Port Basics and Interfacing Digital-to-Analog Conversion Driving Motors- DC and Stepper Parallel port projects but concepts can be applied for serial communication: Voltage and Temperature Measurement - perfect for transducer sensors/non thermistor sensors - Chapter also gives an example on how to program a home made oscilloscope Analog-to-Digital Conversion The PC Timer. Cons: A single section in the appendix for c++'s object model would have been nice. I don't like that the author places the member functions outside the class definition. This practice is not main stream with other languages like c#, java, php. [update August 30 2007 - ignore this comment see why in the comments below] The section called Program Development Techniques is essential for c or c++ programmers writing modular programs and need a solution to prevent multiple inclusions of header files. Since we are interfacing this with a PC there should be a section on serial communication through both serial and more common usb ports, however there is none. Also coverage of driver creation for windows and linux is not addressed. Would have fit nicely after the PC Timer chapter. Wish there was discussion on interrupts and finding memory addresses to hardware. update: if you want to learn win/linux device drivers see this sourceforge project: http://osrfx2.sourceforge.net/ also look at codeproject.com for usb fx. There is also no talk about tools and development environments, so how do you run the examples? I'm using codewarrior but what does the author use? What are his thoughts or insights on this subject? Other Book Suggestions: I would also recommend Higher-Order Perl by Mark Jason Dominus as that book improved my procedure programming and got me away from my oo background. Example: function pointers instead of delegates and dispatch table instead of factory pattern with polymorphism. The book has many other hidden gems. Conclusion: Would I buy the book again? Yes it's a great starting reference. |
|
Most Helpful First | Newest First
|
|
Interfacing with C++: Programming Real-World Applications by Jayantha Katupitiya (Hardcover - April 11, 2006)
Used & New from: $94.45
| ||