官术网_书友最值得收藏!

Source code organization

The code base should contain all the source code, third-party libraries, data, scripts, and automations needed to build the final image. It is a good idea to keep self-contained libraries in separate directories, so that they can be easily updated to newer versions by replacing the subdirectory itself. Makefiles and other scripts can be placed in the project's root directory. Application code should be short and synthetic, and access the modules abstracting the macro functionalities. Functional modules should describe a process while hiding the details of the underlying implementation, such as reading data from a sensor after it has been properly sampled and processed. Aiming for small, self-contained, and adequately abstracted modules also makes the components of the architecture easier to test. Keeping the majority of the logic for the application components separated from their hardware-specific implementation improves portability across different platforms, and allows us to change the peripherals and the interfaces used on the target even during the development phase. Abstracting too much, though, impacts costs, in terms of development effort and resources needed, so the right balance should be researched.

主站蜘蛛池模板: 景德镇市| 城固县| 安顺市| 铜山县| 海宁市| 前郭尔| 平远县| 南岸区| 寿阳县| 安乡县| 城口县| 龙里县| 白银市| 青岛市| 通道| 清镇市| 兴山县| 社旗县| 格尔木市| 繁峙县| 彭州市| 武乡县| 桃园县| 平遥县| 济南市| 黔东| 烟台市| 阳原县| 余干县| 武清区| 东明县| 内黄县| 台前县| 吉首市| 德阳市| 兴国县| 龙南县| 敦化市| 宜都市| 德安县| 盘锦市|