Тема: portability
-
Writing a portable POSIX sh script across Linux, BSD, macOS and AIX
A script meant to run unchanged on Debian's dash, a Linux box's bash-as-sh, FreeBSD, macOS and AIX has to stay inside the POSIX Shell Command Language and avoid GNU-only tool flags; checkbashisms and a short list of GNU-versus-BSD command differences catch most of what breaks.
-
Форматы передачи Python struct: явно задавайте порядок байтов, размеры и заполнение
Не используйте нативные раскладки ABI в переносимых файловых и сетевых форматах, если контракт явно их не требует.
Машиночитаемо: JSON