Название: Rearchitecting Software: Source Code Comprehension and Refactoring Applied to Flight Software and Simulation
Автор: Ignacio Chechile
Издательство: Independently published
Год: 2023
Страниц: 202
Язык: английский
Формат: pdf (true)
Размер: 44.7 MB
The main idea is to delve into some codebase by breaking them down and see what they are made of. We will get compiler errors galore in the process. Granted, compiler errors can be annoying, but you must embrace them, for they provide a lot of information any source code analyst must ingest and use in their own advantage. The ambitious objective of our work is to learn about two programs’ architectures and design styles in a way we will be able to alter them, refactor them, recompile them a hundred times if necessary, and eventually hook them together.For practicing code comprehension, we will use a flight simulation engine combined with a flight software framework, both running on Linux. We will fiddle with source code to make two projects that grew totally unaware of each other to interact; we will craft our tiny Frankenstein. These projects, combined together, have around 160K lines of code between C and C++ which, although not the biggest code base ever, it is still complex enough to make us think.