Skip to main content

Write Portable Code

How many times do programmers have to port software written to run on one particular architecture into another (or more than one) architecture? Does it always go smoothly? If you answered ?yes?, you might not need this book. But if your answer was ?no?, then this book is for you.

Brian Hook is a professional software developer, and has worked primarily in the gaming and entertainment industry. He collected his experiences in this book in order to advise us on how to write portable software.

Despite its physical dimensions (due to the use of recycled paper), ?Write Portable Code? is a concise book: it?s only 250 pages, but it?s crammed with examples. This might sound like an exaggeration, but I think of it as a sort of new Kernighan and Ritchie: Hook was clever enough and so well focused, that he wrote precisely the right amount to cover everything he needed to, without rambling.

Hook takes into account all of the aspects of writing portable code that a programmer might face: editing, porting, scalability, internationalization, processors and networking. And he doesn?t forget to explain how portability can be affected by operating systems, floating point management, filesystems, data formats and dynamic libraries. Since he?s chosen C/C++ as the reference programming languages, Hook has devoted some chapters to the compilers and the preprocessor.

Even though Hook has chosen the C/C++ languages, he still advises using other, higher level (scripting) languages, to improve portability. One chapter summarizes some of them.


via FreeSoftwareMagazine
[tags] freesoftware, magazine, book, review [/tags]

Comments

  1. Well,
    In my opinion it is better to use managed code framework like Java or .NET for your portable applications (for business development). It is faster in development since you don't get stuck wth memory allocation #558400 in your project.

    However I am still interested in low level languages since they bring great knowledge of the systems you are using and how actually the managed code frameworks work.

    ReplyDelete

Post a Comment

Popular posts from this blog

اهم التطورات العلمية في العام ٢٠١٩

القضاء: لا دليل على أن مقتحمي الكونغرس خططوا لقتل مشرعين

أكد محققو وزارة العدل الأمريكية أنهم لم يجدوا حتى الآن أي دليل على أن أنصار دونالد ترامب الذين هاجموا مبنى الكونغرس الأسبوع الماضي خططوا لاحتجاز مسؤولين منتخبين وقتلهم. يأتي ذلك في الوقت الذي أُوقفت فيه الشرطة، الجمعة، رجلا مسلّحا في واشنطن خلال محاولته عبور إحدى نقاط التفتيش في محيط مبنى الكونغرس حيث ستقام الأربعاء مراسم تنصيب جو بايدن. في ذات الوقت أفادت شبكة NBC الأمريكية، بأن مكتب التحقيقات الفيدرالي يحقق في إمكانية تمويل حكومات أو جماعات اقتحام مبنى الكونغرس. وقالت مصادر للشبكة: "المكتب يحقق في مدفوعات "بيتكوين" بقيمة 500 ألف دولار، يبدو أنه تم تحويلها من قبل مواطن فرنسي، لشخصيات ومجموعات رئيسية يمينية قبل اندلاع أعمال الشغب". وفي جلسة استماع في محكمة أريزونا بشأن اعتقال أحد مثيري الشغب جاكوب تشانسلي الذي يؤمن بنظرية المؤامرة ومن أتباع الحركة اليمينية المتطرفة "كيو-آنون"، تراجع المدعون الفيدراليون عن اتهامات سابقة بأن أنصار ترامب كانوا يخططون "لاحتجاز مسؤولين منتخبين وقتلهم" في هجوم السادس من كانون الثاني/ يناير في واشنطن. ع
Dear Microsoft : It's over. Our relationship just hasn't been working for a while, and now, this is it. I'm leaving you for another Operating system. I know this isn't a good time--you're down with yet another virus. I do hope you feel better soon--really, I do--but I, too, have to move on with my life. Fact is, in the entire time I've known you, you seem to always have a virus or an occasional worm. You should really see a doctor. That said, I just can't continue with this relationship any longer. I know you say you'll fix things, that next time it'll go better--but that's what you said the last time--and the time before that. Each time I believed you. Well, not any longer. You cheater! The truth is there's nothing more you can say to make things better. I know about your secret marriage to patent. You say you two are not seeing each other anymore, but I just don't believe it. You say you can live without patent, and I've heard that