Questions tagged [project-structuring]
15 questions
10
votes
2 answers
Ideal size of shared module(s) in Angular
I have an Angular project with several feature modules but I'm not sure what's the best practice for structuring shared modules.
Is it considered best to have one large SharedModule imported in each feature module even if it contains components,…

Onsa
- 109
- 4
9
votes
1 answer
Where should the forms.py file be located?
I'm starting to write my first Django project right now and I need to make my forms.py file for an app. I've seen some tutorials store the file under the main folder for the project and some in the app directory.
Which layout is the best for me if…

Mathyou
- 651
- 2
- 10
- 28
8
votes
3 answers
Project directory structure with 3rd party components
I have to maintain old software written in Delphi. The source tree is a real mess. I'm trying to do 2 things: to make clean directory structure and to set up automated build process.
Right now i have produced following directory tree
\Project
…

Konstantin
- 24,271
- 5
- 48
- 65
5
votes
1 answer
How to properly structure flutter project with API & Local data storage?
So i have created some apps in flutter with laravel backend, which works online only. Now i need to make an app work offline as well for which i am thinking of using Hive. But now the problem is i cannot find a good resource on how to properly…

Ashok
- 369
- 5
- 16
5
votes
2 answers
Where to put DTOs, Result Objects etc?
I have a fairly clean ASP.NET MVC project structure. However, I'm struggling on how to organize the mass of classes which are DTOs (data transfer objects), e.g. just to encapsulate post data from forms (viewmodels) but don't represent full domain…

Alex
- 75,813
- 86
- 255
- 348
2
votes
2 answers
Structuring Coffeescript and using the @ keyword
This is probably very basic stuff but I'm stuck and a bit clueless.
I wrote a Snake game recently in CoffeeScript, but I'm not at all happy with the way I structured the code.
I'm trying to rewrite this using classes. I have a Game class, a Snake…

Joris Ooms
- 11,880
- 17
- 67
- 124
2
votes
2 answers
Python structuring - Do I really need a class?
I have a problem to which the solution seems to be creating a class. However, all the methods in this class would be static, and I would only instantiate the class once, so I wonder if using a class is the right way to go.
More specifically, I want…

tchuncly
- 29
- 5
2
votes
2 answers
Non-Data Classes Part of Model?
Are non-data classes (that are not representing anything in the database) still considered a part of an application's domain model or not? Would you put them together with your Linq2Sql domain model or somewhere else??
Edit: Info about classes: For…

Alex
- 75,813
- 86
- 255
- 348
1
vote
1 answer
importing python modules and packages in different sub-directories of the same project
I'd like to figure out the cleanest and preferably self contained way to use my packages in scripts that are in a different directory to the package itself.
The example problem is as follows:
The modules in lib need to both be imported, and run as a…

blearn
- 13
- 3
1
vote
1 answer
How to structure views/controllers/actions(/areas?) in asp.net mvc app in this context?
At top there is some most useful info about foo.
Between horizontal lines there is some immediate actions, if they are available, to perform on/with foo.
And below is thing that bothers me. There goes tabbed, detailed information about…

Arnis Lapsa
- 45,880
- 29
- 115
- 195
1
vote
1 answer
Visual Studio/ASP.NET MVC Project Organization & Structure Links, Examples and Personal Preferences
I'm looking for multiple inputs on great project organization/structure, preferably especially for complex ASP.NET MVC projects (which will definitely go beyond the couple of folders initially created by the project type).
Project organization also…

Alex
- 75,813
- 86
- 255
- 348
0
votes
1 answer
Defining global variables for a python package
Suppose I have coded a particular Python package. What is the proper way to structure global variables? Should I define all global variables in one file and simply import them everywhere else? Is there a proper way to define global variables for a…

FreeMind
- 213
- 3
- 20
0
votes
1 answer
CSS Project Structure
I'm a little bit lost with my CSS project structure.
My project is huge, so after researching, I decided to go with ITCSS Structure, it was all good until I reached ,,Components Layer''
What I did: I broke my components folder into sub-folders as…

Mohammad Shanaah
- 51
- 8
0
votes
1 answer
How to use different languages in one project
Recently I decided to write a program in Java and Python but I have no idea how to do this... Is there any way to make the classes communicate together in the project so that for example Python methods could be called by Java? Is there any framework…

BlackGenius
- 13
- 5
0
votes
2 answers
Java Servlet: structuring a legacy webapp. What framework or technology?
I'm developing a Web app (unfortunately a legacy one) in java (that runs on tomcat) with a very small, but not well organized (at least on this particular project), group and let me start by saying we have not much of experience in servlets…

tosdan
- 1