Questions tagged [project-structure]
Structure of files, folders and repositories used to organize project artifacts
202 questions
0votes
0answers
82views
Structure of Projects and its components
Background So far I have worked with a repository for one project. (It does not matter what project) Lately I am working in a project that has several people working on it. The project also has one ...
4votes
5answers
2kviews
How to extract code into library allowing changes without workflow overhead
Imagine I have many (micro)services each in a separate git repository. Some business logic code is redundant in all of them. If I need to change the logic I would have to change every project, which ...
2votes
3answers
228views
How to decouple spagheti code for unit tests [duplicate]
A little background on the project: we as a company receive a spaghetti source code, and into that we add even more spaghetti code. So with that I want to say that complete restructuring and ...
-1votes
2answers
118views
How should I manage Git for a multi-phase project to facilitate future improvements and bug fixes? [closed]
I've just completed the first phase of a multi-phase assignment for a course, and it is working fine. However, I didn't use any version control tools like Git during its development. Now that I am ...
1vote
0answers
370views
How to structure your Python code with asynchronous and synchronous parts
I have a Python FastAPI server application which naturally guides you towards the asynchronous paradigm. For legacy reasons, I have to support two backends, one which is purely synchronous and one ...
0votes
0answers
60views
Package by feature for APIs that are exporting or / and importing data
We are generally following the package-by-feature approach, which is great. However, one specific case is constantly causing confusion and inconsistencies, and I'd like to know your approaches in this ...
1vote
1answer
587views
Designing Clean Architecture(Hexagonal) for a Spring Boot Application : Project Layout and Class Organization
I'm currently in the process of integrating Clean Architecture into my Spring Boot project and I'm seeking advice on the ideal project structure and the types of classes and projects that should be ...
1vote
2answers
491views
Where to put DLL specific settings?
I'm not sure how to manage configuration settings in a C#/.NET environment. For simplicity lets say I have 3 assemblies: My MainApplication is the project being started and containing the business ...
0votes
1answer
335views
Should you add the name of the package to the module/package name in Python? [closed]
I'm looking for some best practices for readability (and clean code in general) for naming modules/classes within more extensive projects. More specifically, is it reasonable to add the package's name ...
2votes
2answers
209views
How should I structure an update script that handles the output of another module?
I have a large (>1,000 LOC) Python ETL script - call it fetch_and_transform_data.py - that fetches data from a remote database, appends the raw data to a local table, does some transformations and ...
0votes
0answers
51views
Publish a trivial libraries separately or as a collection
As an individual developer, I often find need to write a trivial (let's say, under 100 SLOC + tests + docs + build system config) library that helps me to write code of some other (large) project in a ...
0votes
3answers
644views
What is the difference between these two MVC diagrams?
I want to understand what is the main difference in these two diagrams when it comes to the Model-View-Controller pattern. If there is a difference, how should I choose to construct my program? What ...
0votes
1answer
218views
Where should research and production code reside in git?
We have research code that consists of Jupyter notebooks and large data files. At the same time, we also have production code that consists of Python source and CloudFormation templates. There is ...
1vote
1answer
192views
Is it an acceptable pattern to put derived classes inside an abstract base class in Java?
Suppose I have some Java code such as the following (in this case, the use of the name "interaction" is referring to interacting with an object in a video game): public abstract class ...
0votes
0answers
407views
Git - nest an optional repository inside a repository
I have an existing repository (which is organised using the standard Golang project layout) cmd/ bigproject/ main.go internal/ ... pkg/ ... vendor/ ... What I would like to do ...