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

Popular posts from this blog

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

?????? ?????

?????, ?????, ????? ??? ???? ?????! ?? ????? ??????? ???, ??? ?? ???? ?? ?????? ??? ???? ?? ???? ??? ???? ?? ??? ???? ???? , ???? ???? ????? ???????, ????????, ???? ???????, ???? ? ???? ? ???? ????? ???? ????? ??????, ?????? ???? ?? ????? ?????? ???? ????? ??? ??????? ?? ????? ? ??? ?? ??????? ???????? ?? ???? ?? ????? ???? ????? ??? ?????? ? ???? ?????? ????? ? ???? ????? ?????? ???? ?????? ???? ???? ????? ? ???????? ???? ???????, ??? ?????? ????? ?? ??? ????? ?????? ??? ??????? ??? ??? ??????? ????? ???? ? ???? ????? ??? ???? ??? ???? ???? ??????, ?? ????? ??? ?????? ???????? ??? ?????? ?? ??? ???? ???? ?? ??, ???? ???? ??? ?? ????? ?????? ??????

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

أكد محققو وزارة العدل الأمريكية أنهم لم يجدوا حتى الآن أي دليل على أن أنصار دونالد ترامب الذين هاجموا مبنى الكونغرس الأسبوع الماضي خططوا لاحتجاز مسؤولين منتخبين وقتلهم. يأتي ذلك في الوقت الذي أُوقفت فيه الشرطة، الجمعة، رجلا مسلّحا في واشنطن خلال محاولته عبور إحدى نقاط التفتيش في محيط مبنى الكونغرس حيث ستقام الأربعاء مراسم تنصيب جو بايدن. في ذات الوقت أفادت شبكة NBC الأمريكية، بأن مكتب التحقيقات الفيدرالي يحقق في إمكانية تمويل حكومات أو جماعات اقتحام مبنى الكونغرس. وقالت مصادر للشبكة: "المكتب يحقق في مدفوعات "بيتكوين" بقيمة 500 ألف دولار، يبدو أنه تم تحويلها من قبل مواطن فرنسي، لشخصيات ومجموعات رئيسية يمينية قبل اندلاع أعمال الشغب". وفي جلسة استماع في محكمة أريزونا بشأن اعتقال أحد مثيري الشغب جاكوب تشانسلي الذي يؤمن بنظرية المؤامرة ومن أتباع الحركة اليمينية المتطرفة "كيو-آنون"، تراجع المدعون الفيدراليون عن اتهامات سابقة بأن أنصار ترامب كانوا يخططون "لاحتجاز مسؤولين منتخبين وقتلهم" في هجوم السادس من كانون الثاني/ يناير في واشنطن. ع