Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Put this image inside images folder. All JavaScript files should go inside a folder called js. Put templates inside a folder called site-templates and for each template, have three folders called layouts, looks, and pages.

We're all familiar with these file-system structures in which we try to logically and efficiently categorize files and folders in an acceptable hierarchy inside our projects. On the other hand, because many times we do I/O operations on these files, changing the file-system structure forces us to update parts of our code, no matter how high-tech, and decoupled our code is.

My question is, based on the effect that a file-system structure has on an overall project, can we consider it as a part of the software architecture? Because, in many cases, choosing a correct file-system structure prevents us from duplicating a file, say jQuery, in many places.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Sure we can, we even must sometimes. I've seen several projects which subdivided their file storages into several folders solely for performance purposes — this is quite the architecture.

share|improve this answer
add comment

If the file system layout is known to all parts of the application then it is not decoupled enough, and you should reconsider how to centralize this knowledge.

share|improve this answer
    
Then what is the answer to the question? Is file-system structure an architecture? –  Saeed Neamati Jul 20 '11 at 7:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.