Questions tagged [organization]

This tag pertains to the organization of source files and other assets in directory structures, organization of actual source code itself, logical organization of application data, and (occasionally) to organizing development projects.

782 questions
804
votes
8 answers

What is the best project structure for a Python application?

Imagine that you want to develop a non-trivial end-user desktop (not web) application in Python. What is the best way to structure the project's folder hierarchy? Desirable features are ease of maintenance, IDE-friendliness, suitability for source…
kbluck
  • 9,998
  • 4
  • 21
  • 24
689
votes
15 answers

Managing CSS Explosion

I have been heavily relying on CSS for a website that I am working on. Right now, all the CSS styles are being applied on a per tag basis, and so now I am trying to move it to more of an external styling to help with any future changes. But now the…
JasCav
  • 33,714
  • 19
  • 103
  • 163
217
votes
6 answers

Best practice for Django project working directory structure

I know there is actually no single right way. However I've found that it's hard to create a directory structure that works well and remain clean for every developer and administrator. There is some standard structure in most projects on github. But…
raacer
  • 4,489
  • 3
  • 23
  • 43
61
votes
4 answers

Large backbone.js web app organization

I'm currently working on a large web app built on backbone.js and have been having a lot of issues with organization, "zombies," etc. so I've decided to do a major refactor of code. I've already written a bunch of helper functions for dealing with…
user527480
  • 689
  • 1
  • 6
  • 7
60
votes
5 answers

Alphabetizing methods in Visual Studio

Is there any sort of plug-in or tool available for Visual Studio 2008 to alphabetize methods? Ideally I'd like a tool that will alphabetize a selection, or specified type (i.e. only methods, not member variables), either automatically or on-demand.
55
votes
6 answers

C++ class header files organization

What are the C++ coding and file organization guidelines you suggest for people who have to deal with lots of interdependent classes spread over several source and header files? I have this situation in my project and solving class definition…
Ashwin Nanjappa
  • 68,458
  • 72
  • 198
  • 283
42
votes
5 answers

guidelines for where to put classes in Rails apps that don't fit anywhere

I'm wondering if there are any best practices about where to put non-standard Ruby files in Rails apps, those that don't fit in any of the default directories (controllers/models etc.). I'm talking about classes that are used by controllers/models…
Kuba Suder
  • 7,126
  • 9
  • 34
  • 39
36
votes
1 answer

Renaming Objects in RStudio context sensitive within entire Project

I have an issue when developing an R project using RStudio. I create an object, and then realise later, that I want to give it another name. I then have to manually change the name, which in larger projects is annoying and often results in errors,…
David Go
  • 740
  • 1
  • 6
  • 13
34
votes
7 answers

How should I organize a general-purpose programming library's directory structure?

I've been writing my own general-purpose PHP library for a while and I'm thinking about how to organize the directory structure, but I wanted to get people's ideas before I formalized the directory structure for the library. Here is what I have so…
Homer6
  • 13,933
  • 10
  • 53
  • 77
33
votes
8 answers

How should I organize my Xcode project files?

I'm trying to wrap my head around Xcode's file organization - or lack there of. I can do all I want in project and it looks great with all the "fake" folders and structure. I go look at the file system and boom HUGE mess. I've tried importing files…
Justin808
  • 19,126
  • 41
  • 143
  • 241
32
votes
5 answers

How to Organise a Domain Driven Design Project?

I've started learning about DDD and wanted to know how others have organised their projects. I've started off by organising around my AggregateRoots: MyApp.Domain (namespace for domain model) MyApp.Domain.Product - Product - IProductService -…
Th3Fix3r
28
votes
1 answer

JavaFX Project Structure

JavaFX's MVC Model by using FXML sounds awesome and all but I'm having trouble find out how to organize my project packages. Every single tutorial i find about JavaFX is way too simple and unorganized: They simply create ONE package and create…
Xkynar
  • 877
  • 1
  • 10
  • 29
27
votes
2 answers

Organizing Strings.xml

I'm making an android app and since I've just started I want to try get the most organised code/resources. In my strings.xml file so far I have this:
nebkat
  • 7,907
  • 9
  • 36
  • 59
27
votes
3 answers

Install Bower components into two different directories?

When using CSS and JS components, is it possible, or even, does it make sense to install them to different directories? . |-- app |-- scripts |-- components # js components go here |-- backbone-amd |--…
Robb Schiller
  • 1,119
  • 2
  • 9
  • 17
26
votes
5 answers

How To Reduce Python Script Memory Usage

I have a very large python script, 200K, that I would like to use as little memory as possible. It looks something like: # a lot of data structures r = [34, 78, 43, 12, 99] # a lot of functions that I use all the time def func1(word): return…
Coo Jinx
  • 309
  • 1
  • 3
  • 3
1
2 3
52 53