Refers to layout of folders and components to help organize a project's files, whether code or resources
Questions tagged [project-structure]
482 questions
0
votes
2 answers
Own common libraries in own dart/flutter projects in VSCode?
I'm working on one project for some time now on flutter. Part of the source code has been designed so that it can be used again as is in other projects.
I'm working with Visual Studio Code.
Now I'm creating a second project. I'd like to organize…

Jacques
- 301
- 2
- 13
0
votes
0 answers
Can I change Android project structure and mix xml with source files?
I have application with many fragments, many layouts and many viewmodels. Moving around thru whole project tree when I'm working on FeatureFragment.kt feature_fragment_layout.xml and FeatureFragmentViewModel.kt is really annoying.
Can I change…

Kamil
- 13,363
- 24
- 88
- 183
0
votes
0 answers
How can I follow best practices for both project structure and logging, given that I want to run any module in any package as a standalone script?
Situation
There are many resources on the web about structuring a Python project and about logging, but after hours of reading various articles (including this one), I've been unable to find any that cover enough detail as to how they work together.…

dvp
- 19
- 7
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
0 answers
Server copy of script can't find a file that exists
I've got a local project structure that looks something like this:
local_root/
├─ reusable_code/
│ ├─ helpers.py
├─ main/
│ ├─ script.py
Inside of script.py, I have the statement from reusable_code import helpers. When I'm working from my local…

confused_nomad
- 15
- 5
0
votes
0 answers
How to organize files in resources folder
I am working on bigger project and I would like to ask how should I organize files used for unit tests in resources folder. I used to put it directly in resources folder, but how the project grows, it is getting messy. Is there some convention for…

Jakub Znamenáček
- 766
- 1
- 4
- 18
0
votes
1 answer
Recommended name for top level module in Python project?
I am developing a program that I plan to distribute to multiple users. This consists of a folder containing the following files:
convert_units.py
fit_parameters.py
plot_results.py
top_level_module.py
The purpose of "top_level_module.py" is to…

Appguy1
- 33
- 5
0
votes
1 answer
Android Studio how to delete folders under java module?
I want to have a java module name is features.And I want to delete folders inside that module which names are main and test.I can't delete that two modules from android studio.Even I try to delete them in the folder they are still inside the…

CSS
- 3
- 5
0
votes
2 answers
Enforcing project structure rules
I have a .Net project in which some classes (e.g. constants, enums, etc.) are generated by a tool developed in the company. Developers would not participate in changing them. In addition the team using this tool may make mistakes due to the large…

Reza Shafie
- 81
- 1
- 7
0
votes
0 answers
Where to keep python class method return types?
I have a python module for making HTTP requests and a different one for making database calls. I'm generating typing for the 3rd API JSON response and the MongoDB entities using dict-typer.
What is the best place to store tons of custom return data…

Lajos
- 2,549
- 6
- 31
- 38
0
votes
1 answer
How to create Scala SBT multi independent project
I am trying to create sbt multi independent project.
I want my project structure some thing like
My Scala and sbt version is 2.12.2 and 1.5.5 respectively.
sbt-multi-project-example/
common/
project
src/
main/
test/
…

dp808139
- 122
- 2
- 12
0
votes
1 answer
Clarification about modern CMake structure
I am not an expert C or C++ programmer, but I have to write a C and a C++ application for two course projects. To start off on the right foot, I was reading a guide about how to structure the code of a CMake project.
I would like to clarify the…

steddy
- 146
- 1
- 9
0
votes
1 answer
How to include library from sibling directory in CMakeLists.txt for compilation
I am working on a C project as of recently and want to learn how to use CMake properly.
The project consists of the following directory structure (as of now):
.
└── system
├── collections
│ ├── bin
│ ├── build
│ ├── includes
…

Anderson88
- 3
- 2
0
votes
0 answers
Should SQL queries be written as query-strings, or be stored as separate SQL-files in a separate folder
I've recently had an exam about a simple ERP system with CRUD functionality, and the SQL queries had to be in a separate folder only containing SQL files (exam requirement).
This was the first time I encountered this form of doing SQL calls, I…

Sp00kyRe4l1ty
- 13
- 5
0
votes
0 answers
What is the best way to have a specific css file for a specific html file?
I've strcutured my web project with sass 7-1 pattern, like this in the picture below:
My question is that which css file/files should I import in each individual html file, or to be precise, what css file should i have for each html file.
for…

Amir Nf
- 15
- 4