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

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.

主站蜘蛛池模板: 南投市| 水富县| 高青县| 沙洋县| 名山县| 韶山市| 阳原县| 巴彦淖尔市| 苏州市| 民县| 秭归县| 军事| 侯马市| 南皮县| 右玉县| 梓潼县| 万宁市| 宝鸡市| 江口县| 全州县| 屏山县| 渝北区| 仪征市| 竹溪县| 河曲县| 道孚县| 黎川县| 科尔| 浦江县| 都昌县| 怀来县| 七台河市| 永仁县| 普定县| 同德县| 白河县| 龙海市| 集贤县| 上林县| 泉州市| 华宁县|