Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide when is appropriate for a module to have an includes directory #558

Open
jenlampton opened this issue Jan 7, 2015 · 0 comments
Open

Comments

@jenlampton
Copy link
Member

Follow-up to #486

Most modules in core do not have an includes directory, but now that we have directories to neatly organize many other types of files in a module, some have expressed interest in adding an includes directory too.

I personally dislike this idea, because I want to know from looking inside only the module's root directory exactly what that module is up to. However, if we look at views as an example, if all it's PHP files were in the root, the sheer number of files would be overwhelming, so some order is required.

We should decide on a good rule-of-thumb for when modules should further organize their files into an includes directory (perhaps a certain number of files?) and make sure core abides by this rule of thumb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants