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

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.

主站蜘蛛池模板: 朔州市| 凤凰县| 宜阳县| 洪泽县| 云林县| 靖江市| 米泉市| 随州市| 兴海县| 鄂托克前旗| 弋阳县| 柳州市| 昌邑市| 甘洛县| 苍溪县| 宁海县| 新源县| 微山县| 简阳市| 微山县| 桐柏县| 曲靖市| 井冈山市| 平舆县| 江源县| 绥宁县| 莱芜市| 吴桥县| 威海市| 商水县| 岗巴县| 南皮县| 仪征市| 读书| 科技| 济宁市| 西乡县| 安图县| 黄骅市| 陈巴尔虎旗| 罗源县|