mr_ped Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
I would say the "upp spirit" is:
- freedom, do whatever you think is appropriate
- keeping things as simple as possible, without additional cruft
- refactoring whenever you feel you can do that old thing lot more better this time
- using platform dependent code only where it really pays off, otherwise strictly evading platform API and keeping it portable.
In this sense I think little "driver" class with fopen/fwrite/fclose to handle that device is very good fit.