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

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.

主站蜘蛛池模板: 遵义市| 新昌县| 安阳县| 锡林浩特市| 甘洛县| 仁寿县| 上犹县| 莲花县| 高邮市| 大同县| 洛浦县| 驻马店市| 台州市| 洛扎县| 公安县| 将乐县| 玛曲县| 邵阳市| 桑植县| 义马市| 安福县| 永仁县| 北票市| 呈贡县| 白城市| 郁南县| 土默特左旗| 昭平县| 古蔺县| 股票| 普兰店市| 唐河县| 防城港市| 肃宁县| 通河县| 含山县| 龙门县| 惠来县| 无为县| 梅河口市| 常宁市|