Questions tagged [project-layout]

22 questions
27
votes
1 answer

Import parent directory for brief tests

I have searched this site top to bottom yet have not found a single way to actually accomplish what I want in Python3x. This is a simple toy app so I figured I could write some simple test cases in asserts and call it a day. It does generate reports…
Rig
  • 1,276
  • 3
  • 22
  • 43
7
votes
1 answer

How to share a database, migrations, and models between Rails projects?

I know there are some questions to this effect already on StackOverflow, but they tend to be pretty outdated and don't adequately address how migrations are supposed to work in the following scenario, which should be fairly common: You have some…
Jake
  • 15,007
  • 22
  • 70
  • 86
5
votes
1 answer

Sharing proto files in docker?

I was wondering how people tend to share proto files between clients and servers in docker composites? I'm testing out gRPC for fun and created a project with the following layout: docker-compose.yml front/Dockerfile ... back/Dockerfile …
5
votes
4 answers

Practices for keeping JavaScript and CSS in sync?

I'm working on a large JavaScript-heavy app. Several pieces of JavaScript have some related CSS rules. Our current practice is for each JavaScript file to have an optional related CSS file, like so: MyComponent.js // Adds CSS class "my-comp" to…
Rene Saarsoo
  • 13,580
  • 8
  • 57
  • 85
5
votes
4 answers

Does it make sense to separate view controllers from views in iOS?

Coming from a web development background, doing mainly MVC-based applications, I am used to have the components of my code separated in three groups of files: the controllers, the models and the views. But in a iOS application, even also using the…
elitalon
  • 9,191
  • 10
  • 50
  • 86
4
votes
2 answers

Is there any API to generate package structure from Java source files

I have a source folder with Java source files. These Java files have different packages. Using javac command I can generate the package structure, but the packages will contain the class files not the source files. Is there any API which generates…
Saket
  • 431
  • 2
  • 6
  • 15
4
votes
2 answers

How to extend Yii framework classes and where to place the files

I want to extend some built-in framework classes, but I there are some points I 'm not clear about: I assume I should put my classes under my components folder, is this the right place? Should I name the classes like Subfolder_ClassName and the…
Itay Moav -Malimovka
  • 52,579
  • 61
  • 190
  • 278
3
votes
1 answer

Best way to package a general-purpose zend module

As our company starts using Zend Framework as the base framework for most of our projects, we want to share some common elements across all our projects. I talk about things like: An implementation of a model (based on doctrine2) RBAC for the…
Steffen
  • 2,235
  • 13
  • 19
3
votes
5 answers

Distribution of many small classes

I have a base class called EventArgs. Derived from this are many, many specializations that represent event arguments for a particular kind of event. Consumers of these events may need some, many, or very few of these argument classes. My question…
Moo-Juice
  • 38,257
  • 10
  • 78
  • 128
2
votes
2 answers

Clean code, clean architecture, and clean project layout/project structure

I am reading "Clean Code" and "Clean Architecture" by Robert C. Martin but I don't understand if I have clean code, do I have clean architecture too? If I have clean code and clean architecture, do I have good project structure? What is the…
dev-x
  • 897
  • 3
  • 15
  • 30
2
votes
1 answer

How can I structure an ASP.NET project for re-use

I am in the process of designing a web application which will have multiple installable modules that provide different functionality. There's a lot of common stuff going on here and I have 3 C# class libraries that I know will be easy to use on…
Moo-Juice
  • 38,257
  • 10
  • 78
  • 128
2
votes
1 answer

Is there a standard for storing generated files in a JavaScript project?

When creating a project JavaScript project my standard file layout looks like this: project-name/ |- bower_components/ |- node_modules/ |- src/ |- tests/ |- .csslintrc |- .jshintrc |- .htmlhintrc |- bower.json |- Gruntfile.js `-…
Remco Haszing
  • 7,178
  • 4
  • 40
  • 83
1
vote
1 answer

How do I organize the source code of a CUDA C project using subfolders?

I develop some parallel computing code using CUDA C. The system is running a Ubuntu based Linux, the IDE of choice is Eclipse Indigo. I set up the project using the template which is delivered with Cuda. I fail to setup subfolder containing portions…
Semok
  • 11
  • 1
1
vote
0 answers

CMake project structure for multiple libraries and an executable

I'm not sure about the best approach for larger cmake projects with submodules and an executable to use those modules. Solution 1: foo/ # project root directory - CMakeLists.txt - build/ - executable/ -- CMakeLists.txt # call to…
Symlink
  • 383
  • 2
  • 12
1
vote
0 answers

Conventions in separating test folders

Working on Java projects, it is widely accepted that you should use a standard project layout. That is the standard template you find on many open source projects, i.e.…
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
1
2