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
12
votes
1 answer

Xcode files and folders clean structure and organization

After four years in development with Xcode I started to ask myself (well, yes, I know, a little too late but when you are deep in coding you don't see other things) what kind of structure and organization of files and folders can be a good one to…
DigitalVanilla
  • 214
  • 2
  • 12
11
votes
1 answer

How to organize build, server, client and shared JavaScript code with NodeJS

One big benefit I've always perceived with using NodeJS on the server is the potential for sharing bits of code between the server and client side (ex. input validation). Now that I'm actually developing using NodeJS one difficulty that I've found…
jpierson
  • 13,736
  • 10
  • 94
  • 137
11
votes
1 answer

small code redundancy within while-loops (doesn't feel clean)

So, in Python (though I think it can be applied to many languages), I find myself with something like this quite often: the_input = raw_input("what to print?\n") while the_input != "quit": print the_input the_input = raw_input("what to…
Ponkadoodle
  • 5,453
  • 4
  • 31
  • 60
11
votes
5 answers

eclipse : how to differentiate/distinguish different open workspaces

I will need to use multiple workspaces for a recent project. Each workspace might consist of 10 or more projects. When I'm switching between various applications and different eclipse instances(for the multiple workspaces), I want to be able to…
anjanb
  • 11,266
  • 16
  • 69
  • 99
11
votes
2 answers

Writing Python packages with multiple C modules

I am writing a Python C extension which uses the pygame C API. So far so good. Now I wonder how I organize my source code so that I can have multiple submodules in the package. All the tutorials out there focus on one .c file extensions. I tried…
Anonnobody
  • 7,911
  • 2
  • 15
  • 6
11
votes
3 answers

How to logically organize source files in C++

My source file pane is quickly growing (in terms of the number of files in my project) and it is getting a bit cumbersome to quickly locate the specific source file I need to access at any given time. I'm using Embarcadero's C++Builder, but I have…
b1nary.atr0phy
  • 2,173
  • 3
  • 26
  • 34
10
votes
2 answers

When to tick "copy items into destination's group folder (if needed)"

Whenever I am adding some files to my project by dragging and dropping in Xcode, a popup message is shown "Copy items into destination's group folder (if needed)". I noticed that when we are using most of the third party library's we DON'T tick the…
user994299
10
votes
1 answer

Avoid Circular Model Imports in Django Apps

I have a django project with 2 apps like this: ## tags app, models.py class Tag(models.Model): title = models.CharField(max_length=50) ## items app, models.py from application.tags.models import Tag class Item(models.Model): title =…
jkeesh
  • 3,019
  • 3
  • 26
  • 40
10
votes
3 answers

Structuring python projects without path hacks

I have a shared python library that I use in multiple projects, so the structure looks like this: Project1 main.py <--- (One of the projects that uses the library) ... sharedlib __init__.py ps_lib.py another.py Now in each project's…
10
votes
3 answers

angular.js - best practice for defining a utility library

I'm giving my first steps with angular, and I need to define a utility helper library, with a couple of function methods, something like dataHelper.parse, dataHelper.sanitize, etc What would be the recommended way to organize it in angular?
opensas
  • 52,870
  • 69
  • 227
  • 340
9
votes
2 answers

Is there an official organization for discussing or releasing standard markdown syntax?

Recently, when I use github I met so many cases that I need to use markdown for my documents. Such as any wiki and GFM(github favored markdown), *.md files in github page base on jekyll, and just like writing here, etc. And I love writing documents…
mytharcher
  • 442
  • 3
  • 16
9
votes
5 answers

Efficient way of storing many thumbnails

So currently I am storing all thumbnails in a single directory with file name as the md5 hash of the full path to the full size image. But I've read here that this causes issues when directory reaches thousands of files. They will be located slower…
Alex
  • 60,472
  • 154
  • 401
  • 592
9
votes
4 answers

Organizing partials for a polymorphic resource

I'm looking for how others typically organize their partials for a polymorphic resource. Example: I have Image which is polymorphic and depending on what is imageable, I want to display things slightly different. I have a partial images/_image and…
theIV
  • 24,234
  • 5
  • 51
  • 56
9
votes
8 answers

What is the optimal way of organizing a C# project?

I was wondering here, how do you guys organize your projects, in terms of functionality, scope, etc. Do you have one project for unit tests, one project for class library code, one project for User Interface? Or do you just divide all these into…
George Silva
  • 3,266
  • 9
  • 34
  • 60
9
votes
5 answers

Elegant practices on "random utility functions"

How do you all organize your random functions to improve a language's functionality outside of OOP classes (global functions)? I've seen libraries, but I'm still not sold on this being a good solution, especially if you don't have enough functions.…
Matt
  • 19,783
  • 24
  • 71
  • 113