Questions tagged [project-organization]

Questions about optimal code organization in large scale software project.

Questions with this tag are about properly organizing a software project to make it manageable, reusable and easy to understand. The concern should be on the large scale organization, i.e., on patterns and best practices for organizing the packages, source files and folders, tests, build scripts, plugins and components.

232 questions
208
votes
6 answers

Django: "projects" vs "apps"

I have a fairly complex "product" I'm getting ready to build using Django. I'm going to avoid using the terms "project" and "application" in this context, because I'm not clear on their specific meaning in Django. Projects can have many apps. Apps…
Dolph
  • 44,962
  • 13
  • 58
  • 86
164
votes
11 answers

How to organize large R programs?

When I undertake an R project of any complexity, my scripts quickly get long and confusing. What are some practices I can adopt so that my code will always be a pleasure to work with? I'm thinking about things like Placement of functions in source…
Dan Goldstein
  • 21,713
  • 17
  • 34
  • 41
125
votes
11 answers

Including one C source file in another?

Is it OK (or even recommended/good practice) to #include a .c file in another .c file?
78
votes
8 answers

How to organize a Python Project?

I'm new to Python and I'm starting a mini Project, but I have some doubts on how to organize the folders in the "Python Way". I'm using PyDev in my Development Environment, and when I create a new project a folder is created called src + src Now,…
André
  • 21,421
  • 41
  • 110
  • 172
51
votes
8 answers

How do I add a resources folder to my Java project in Eclipse

I want to have a place to store my image files to use in my Java project (a really simple class that just loads an image onto a panel). I have looked everywhere and cannot find how to do this. How do I do this? I have tried adding a new folder to…
redeagle47
  • 1,235
  • 1
  • 14
  • 23
50
votes
2 answers

What are common conventions for using namespaces in Clojure?

I'm having trouble finding good advice and common practices for the use of namespaces in Clojure. I realize that namespaces are not the same as Java packages so I'm trying to tease out the conventions in Clojure, which seem surprisingly hard to…
Alex Miller
  • 65,227
  • 26
  • 112
  • 160
46
votes
4 answers

Organising my Python project

I'm starting a Python project and expect to have 20 or more classes in it. As is good practice I want to put them in a separate file each. However, the project directory quickly becomes swamped with files (or will when I do this). If I put a file to…
Teifion
  • 98,441
  • 75
  • 152
  • 192
43
votes
5 answers

The Pythonic way of organizing modules and packages

I come from a background where I normally create one file per class. I organize common classes under directories as well. This practice is intuitive to me and it has been proven to be effective in C++, PHP, JavaSript, etc. I am having trouble…
carl
  • 47,134
  • 17
  • 71
  • 81
40
votes
1 answer

Domain Driven Design - how the layers should be organized?

I'm very much new to software development. I think layered architecture is a great way to reduce the complexities that arise in the process of object oriented software development and, not to mention, to keep your code organized. I'm interested to…
30
votes
4 answers

Eclipse Java project folder organization

I am coming to Java and Eclipse from a C#/Visual Studio background. In the latter, I would normally organize a solution like so: \MyProjects\MyApp\MyAppsUtilities\LowerLevelStuff where MyApp would contain a project to build a .exe, MyAppsUtilities…
Buggieboy
  • 4,338
  • 4
  • 48
  • 77
28
votes
5 answers

How to organize packages (and prevent dependency cycles)?

I've been running some metrics on my Java project and apparently there are a lot of dependency cycles between packages. I didn't really know how to organize stuff into packages, so I just did what made sense to me, which is apparently wrong. My…
Jordi
  • 5,578
  • 9
  • 37
  • 39
28
votes
5 answers

Where do I put all these interfaces?

I'm trying to get my feet wet with unit testing. I'm currently not in the habit of writing interfaces for classes unless I foresee some reason I would need to swap in a different implementation. Well, now I foresee a reason: mocking. Given that I'm…
devuxer
  • 39,573
  • 46
  • 163
  • 281
25
votes
2 answers

Git submodule or sub-repository or remote?

I'm using GIT to manage a Content Management System (CMS) project. The CMS can have multiple plugin (module). So basically, I want to have 3 types of repositories: The core CMS development ( every new project is a checkout of that last stable &…
FMaz008
  • 10,389
  • 16
  • 61
  • 90
23
votes
5 answers

System for organizing multi-file Ruby programs?

Is there a standard or conventional system for organizing multi-file Ruby programs? I have embarked on my first large "project" in Ruby, a search program which is logically organized into multiple files and directories. I've outlined below my…
user243388
22
votes
4 answers

GitHub vs Google Code for a hobby project

Note: I have seen this and tried to take as much from it as possible; but I believe my context is different. I am working on a small-ish project. Call it Foobar. I'm wanting to get this done more organised..I've tried a few projects, mostly as an…
The Communist Duck
  • 5,649
  • 3
  • 33
  • 47
1
2 3
15 16