17 votes
Accepted

In-Source Build vs. Out-Of-Source Build

After asking the community here and continuing my search online, I have not been able to find significant engineering justification for using in-source builds. (There are many examples of reasons to ...
DiB's user avatar
  • 467
7 votes

Should I ensure my libfoo library's include file can be included as foo/foo.h?

Picking out some reasonably well known C libraries: Expat uses #include <expat.h> Glib uses #include <glib.h> Jansson uses #include <jansson.h> SQLite uses #include <sqlite3.h>...
Philip Kendall's user avatar
7 votes
Accepted

What should be placed in the "core" folder in a software project?

The short answer Whatever you want. Possibly even nothing at all. For reference, here are three major open source projects that don't appear to have a "core" directory at all: Git npm Vim ...
8bittree's user avatar
  • 5,656
6 votes
Accepted

Is it a bad idea to model dependencies using a project's directory structure?

This approach is not as good as good as it might appear. Directory structures are not as flexible as programming languages expressivity. Let's look at some problems you have to think of in your ...
Christophe's user avatar
  • 77.3k
5 votes
Accepted

Best way to structure NoDB (flat-file) website with multiple categories and subcategories for performance and maintainability

Don't use folders as tags. Don't cram it into a tree structure if it isn't a tree. A dress shouldn't need to live in two folders because it can be worn at different kinds of parties. Each dress ...
candied_orange's user avatar
5 votes

What is the difference between the "lib" and "vendor" folders?

From the Rails Asset Pipeline guide: app/assets is for assets that are owned by the application, such as custom images, JavaScript files or stylesheets. lib/assets is for your own libraries' code ...
Chico Carvalho's user avatar
5 votes

Folder structure to store image/file uploads

This is really a question of: What are your requirements? It's quite likely that content your team creates comes from a source control system and is assembled as part of a build process, so you ...
DavidT's user avatar
  • 3,338
4 votes

Should I ensure my libfoo library's include file can be included as foo/foo.h?

There are two reasons for using an additional subdirectory for include files: Avoiding potential naming collisions You want to be prepared for the case when the lib may offer more than one include ...
Doc Brown's user avatar
  • 208k
3 votes

Should I ensure my libfoo library's include file can be included as foo/foo.h?

Given your recent comment: But I suspect that in my specific case it's because glibc has a non-standard header file with the same name as mine (printf.h). I'd think including your header as #include ...
Andrew Henle's user avatar
3 votes

What are the correct storage locations (folders) for an application within a Windows-based (Windows 7 - 10) environment?

The answers you have identified so far are wrong. The directories might be localized. Call SHGetKnownFolderPath. You'll need the appropriate KNOWNFOLDERID constants, but they're documented well. ...
MSalters's user avatar
  • 8,812
3 votes

Understanding the worker layer in software architecture

I can't speak to the source code organization in your project. This is not some kind of official standard that I am aware of, but you have a lot of clues based on the folder naming. My guess here is ...
maple_shaft's user avatar
  • 26.5k
2 votes

Grouping types in a single project

There isn't necessarily a clearly superior solution here. Either approach may be perfectly fine. A general piece of advice is that things that change together should be close together: If you expect ...
amon's user avatar
  • 134k
2 votes

Is it a bad idea to model dependencies using a project's directory structure?

First it's best to use the correct terminology for Java and explain how it is differs from what you have described. Java has a concept of 'packages' that are implemented using directories but are not ...
JimmyJames's user avatar
  • 27.3k
2 votes
Accepted

PHP: What code should be removed to its own helper class and where should such classes be located in the filesystem?

Where to store Helper classes and what naming conventions to use is largely a matter of taste. There is no consensus; some developers consider Helper classes an anti-pattern and don't use them at all....
Robert Harvey's user avatar
1 vote

Where should I put the .scss files in the scaffold?

I have limited vue.js experience. I will ask a question and answer it for you. Q: why not using "Single File Components"? A: Some components would require very large files and including styles, will ...
Homam's user avatar
  • 111
1 vote

Where should I put the .scss files in the scaffold?

I personally prefer the first one. but if page and layout are components, it can be nested inside the component folder. style folder in the asset will look like this: global bootstrap material ...
hamidreza kazemi's user avatar
1 vote
Accepted

Golang: Directory structure for Multiple Applications

I'll try to answer this with a simple scenario. Let's imagine you and I work together for a shipping company and we want to implement a SOA. We identified 2 separate bounded context in our domain, ...
Gabs's user avatar
  • 48
1 vote

Domain services structuring

I wrote an article last Christmas called "Happy Packaging" (suitable for this holiday season also:). In that I detail 3 simple rules to keep packages organized, to be able to find things, and to keep ...
Robert Bräutigam's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible