Ç - 启动一个大项目。文件/目录结构和名称。需要很好的例子 [英] C - Starting a big project. File/Directory structure and names. Good example required

查看:140
本文介绍了Ç - 启动一个大项目。文件/目录结构和名称。需要很好的例子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开始一个新的大C多的项目,有什么规则应该人跟着以避免以后的困难?例如,当一个新的开发者,我可以有困难的导航自己周围的Linux内核源码code - 这是高度进化型,但难以一步的软件结构incosistent的目录结构的一个很好的例子(如:声音的目录和的在同一个目录级别)。

Starting a new big C multiplatform project, what rules should one follow to avoid difficulties later? For example, as a new developer, I can have difficulties to navigate myself around Linux Kernel source code - which is a good example of highly evolvable but hard-to-step-in software structure with incosistent directory structure (e.g. sound directory and arch in the same directory level).

,我应该怎么办为了避免后面的陷阱?当然,我需要对C lexems和文件非常直观和自我一致的命名约定。但什么是好的风格,什么是不?我应该有一个唯一的目录或几十人?我应该把所有的头文件在一个公共的包括的目录?

As a project-architect, what should I do to avoid later traps? Of course, I need very intuitive and self-consistent naming convention for C lexems and files. But what is the good style and what is not? Should I have one-only directory or tens of them? Should I place all header files in a common include directory?

能否请您给我一个很好的例子的参考? (任何开源的C项目)

Can you please give me a reference to a very good example? (any open source C project)

推荐答案

您或许可以参考 OpenSSL的。他们的文件组织和功能的分布在整个文件是非常好的。所以,是他们的文件命名约定清晰地显示的功能。但是,因为它是基于SSL code,这可能需要一些时间来了解。祝你好运!为您的项目! :)

You can probably refer to OpenSSL. Their file organization and distribution of functionalities across files is very good. So is their file naming convention which clearly indicates the functionalities. But, since it is based on SSL code, it might take some time to understand. Good Luck to you for your project! : )

这篇关于Ç - 启动一个大项目。文件/目录结构和名称。需要很好的例子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆