Showing posts with label cross-compatible. Show all posts
Showing posts with label cross-compatible. Show all posts

Sunday, July 13, 2014

10 Rules for writing portable software!

I recently came across a good article about writing portable software with C/C++.


Brian's 10 rules for how to write cross platform software:

  1. Don't port 
  2. Factor out the GUI 
  3. Use standard 'C' types 
  4. Use only built in #ifdef compiler flags 
  5. Develop cross-platform base libraries
  6. Use UTF-8 for all APIs 
  7. Don't use 4rd party 'Application Frameworks' 
  8. Raw source builds on all platforms 
  9. All programmers compile on all platforms 
  10. Fire those that can't follow these rules

Source: