About Duffbert...

Duffbert's Random Musings is a blog where I talk about whatever happens to be running through my head at any given moment... I'm Thomas Duff, and you can find out more about me here...

Email Me!

Search This Site!

Custom Search

I'm published!

Co-author of the book IBM Lotus Sametime 8 Essentials: A User's Guide
SametimeBookCoverImage.jpg

Purchase on Amazon

Co-author of the book IBM Sametime 8.5.2 Administration Guide
SametimeAdminBookCoverImage.jpg

Purchase on Amazon

MiscLinks

Visitor Count...



View My Stats

« Book Review - Talk Is Cheap: Switching To Internet Telephones by James E. Gaskin | Main| "Lotus Notes At The Crossroads"... Try again, Microsoft! »

Book Review - Write Portable Code by Brian Hook

Category Book Reviews

If you're building commercial software (or even software for your own company), there's a reasonable chance you'll need to make sure it runs on more than one platform.  Brian Hook's new book Write Portable Code - An Introduction To Developing Software For Multiple Platforms (No Starch Press) should appeal to you.

Contents: The Art Of Portable Software Development; Portability Concepts; ANSI C and C++; Techniques For Portability; Editing And Source Control; Processor Differences; Floating Point; Preprocessor; Compilers; User Interaction; Networking; Operating Systems; Dynamic Libraries; Filesystems; Scalability; Portability And Data; Internationalization And Localization; Scripting Languages; Cross-Platform Libraries And Toolkits; POSH; The Rules For Portability; References; Index

Hook does a very nice job of writing a practical book that looks at software development techniques that aid the ability to port your code to multiple platforms.  While it's not possible to guarantee compatibility in all cases, you can take solid steps to reduce the chances of painting yourself into a corner early on in the game.  From a language perspective, Hook focuses on the C/C++ language, so that's the area where you'll see the most advantage as a coder.  But the other chapters are applicable to just about any environment.  For instance, using a number of compilers set at a very strict message level helps weed out any coding practices that may work in one environment but not another.  In another case, you should carefully choose supporting software libraries (like graphic packages) based on potential portability.  A platform specific library might be easier to use, but it locks you into that environment.  Porting code can then become a complete rewrite instead of a matter of tweaking.  Very important stuff to know and take to heart...

With the ongoing battle between Windows and open source environments, the ability to cater to both might be the difference between life and death in your business.  Write Portable Code might be a really good investment in your survival...

Comments

Gravatar Image1 - I haven't read the book yet - very likely to - but the review above is very true. I have faced it in projects. The hardest part is finding a GUI library that is available. WxWidgets does well (and can be commercially incorporated) and Qt provides commercial licensing (though it is expensive). Any one else have libraries that are well written, with good APIs, and platform independant?

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Want to support this blog or just say thanks?

When you shop Amazon, start your shopping experience here.

When you do that, all your purchases during that session earn me an affiliate commission via the Amazon Affiliate program. You don't have to buy the book I linked you to (although I wouldn't complain!). Simply use that as your starting point.

Thanks!

Thomas "Duffbert" Duff

Ads of Relevance...