Skip to main content

Questions tagged [project-structure]

Structure of files, folders and repositories used to organize project artifacts

Filter by
Sorted by
Tagged with
0 votes
0 answers
79 views

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 ...
KansaiRobot's user avatar
4 votes
5 answers
2k views

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 ...
Florian K.'s user avatar
2 votes
3 answers
211 views

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 ...
Tomáš Viks Pilný's user avatar
-1 votes
2 answers
115 views

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 ...
mahdiahmadi's user avatar
1 vote
0 answers
258 views

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 ...
user3058865's user avatar
0 votes
0 answers
55 views

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 ...
Marian Klühspies's user avatar
1 vote
1 answer
551 views

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 ...
shiningStar's user avatar
1 vote
2 answers
399 views

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 ...
NoConnection's user avatar
0 votes
1 answer
285 views

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 ...
Thomas Vanhelden's user avatar
2 votes
2 answers
201 views

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 ...
Josh Friedlander's user avatar
0 votes
0 answers
50 views

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 ...
jiwopene's user avatar
  • 191
0 votes
3 answers
531 views

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 ...
codertryer's user avatar
0 votes
1 answer
201 views

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 ...
Chewers Jingoist's user avatar
1 vote
1 answer
185 views

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 ...
micheal65536's user avatar
0 votes
0 answers
350 views

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 ...
Jivlain's user avatar
  • 373
4 votes
5 answers
739 views

How to prevent in house frameworks and libraries from becoming technical debt

My company develops many relatively small projects that a lot of times do the same things and have a similar structure. (e.g. read/write to a databse, data pre processing, building a query etc.). This ...
krezno's user avatar
  • 167
0 votes
0 answers
56 views

Database versioning when testing layered design

Let's say there are two layers of an application: Business logic layer Data access layer Assume integration tests need to be written also for the Business logic layer. Alas tests that run against ...
lemoncactus's user avatar
0 votes
1 answer
3k views

Where should interfaces/model definitions live? -- Clean architecture

I'm working on a Node project (in typescript) that features a variation of clean architecture. I have a pretty clear understanding of the different layers of an application and how they depend on each ...
GHOST-34's user avatar
  • 111
0 votes
1 answer
164 views

When does it become appropriate to make http calls?

Background: different developers are building an e-commerce system using Spring. Some are working on the user facing arm, others are working on the CMS, while the other group are working on the vendor ...
I Want Answers's user avatar
2 votes
1 answer
3k views

What is the idiomatic way to split code between separate files in Rust?

Coming from the world of C#, where, despite sharing namespaces, it's quite common for every class to have its own file, I find that Rust codebases seem to have a complete different sort of philosophy (...
Brian Reading's user avatar
-2 votes
1 answer
484 views

Structure project by inheritance?

The usual approach is to do what libraries do: group your (single file) classes by component where folder = namespace, right? That makes sense for code that is mostly meant to be used by other ...
DanMan's user avatar
  • 105
4 votes
1 answer
129 views

Project icons / images organization

I am asking a question about the overall architecture between different projects. Let's say I want to centralize all icons / images between different projects in a single repository. This means that ...
Michael Tornack's user avatar
1 vote
1 answer
152 views

Best practices when combining development environments

I'm working on a Swift-project (an iOS-app) where a webview is used to show an HTML-document. This document is manipulated by some JS, which is compiled and minified from TypeScript. There's also SASS ...
eds1999's user avatar
  • 165
1 vote
1 answer
185 views

Improvement of the config file management

I am working on a personal project for more than 6 months now, this project is composed of three distinct parts, simulation (wrapping a software), database related stuff (store the simulated data in a ...
th0mash's user avatar
  • 13
-2 votes
1 answer
38 views

Is this a proper way to architect my network security testing tool?

I am planning on creating a network security testing tool with python that carries out a variety of attacks and tests other vulnerability issues on a host (Such as: Ping of death, slow loris, teardrop ...
4d4143's user avatar
  • 33
-2 votes
2 answers
1k views

Best practice: keep DB models in one file or split into modules?

I've a Python project with ~30 SQLAlchemy models and I'm not sure where they belong. All models belong to the DB but also to a module, so I'm not sure about the right namespace. Here are some ideas: ...
Mr. B.'s user avatar
  • 153
0 votes
2 answers
178 views

Cases of memory management where it is reasonable to separate program into several execs

I have 5000+ strings pet-project for CLI and it can do some optional calculations and can output results to CLI or/and to file. Some new modules don't work. Now I catch with GDB some strange segfaults ...
RaySolva's user avatar
  • 123
4 votes
3 answers
229 views

Creating sub-classes of all external classes

I am in a team developing Android applications in an enterprise corporate .One of team members suggested that we should create our own classes, so extending every classes of UI kit (Material Design). ...
Emre Aktürk's user avatar
-4 votes
1 answer
295 views

When to use dot files in Git repositories?

My Git repository contains dot files required by my tooling: .dockerignore .gitignore .pre-commit-config.yaml I'm using Azure Pipelines for CI/CD, which is typically defined in azure-pipelines.yml, ...
Krzysztof Czelusniak's user avatar
1 vote
1 answer
2k views

Logging to database in ASP.NET Core Entity Framework Core application

I have an ASP.NET Core Entity Framework Core application and I want to implement my own custom logger. I don't want to use ready solutions like NLog or Serilog. I added a new class library project ("...
Shrodinger's user avatar
-2 votes
1 answer
135 views

In C++, does it make sens to have library project be composed of other libraries?

I'm working on a C++ project which is currently divided into "sub modules" / "components". Each of these are compiled into a separate library (components are usually 10-20 files). The libraries are ...
Antiro42's user avatar
0 votes
1 answer
1k views

How to structure separate projects in a single solution? i.e project.Domain etc in C#

So this is a very beginner question, so please do be patient with me: But I am building a little practice project and what I am struggling to understand is the overall structure of the solution, in ...
dros's user avatar
  • 167
0 votes
1 answer
577 views

To structure big and expandable project(s)

TLDR with bold I want to create a library (I think this is the right term) for my own reinforcement learning environments (envs for short). Most of the envs would be based on self-implemented games ...
Dudly01's user avatar
  • 137
0 votes
1 answer
330 views

C++ Project Structure in UNIX/Linux environment: test and app folder

I am trying to figure out the right project structure for C++ and I am working on Ubuntu using CMake. I mostly work on AI/ Robotics/ Data Science. Assume that I want to generate executables and ...
skr's user avatar
  • 123
-1 votes
1 answer
739 views

Naming my classes and class folders in PHP project

I am working on an (PHP) application where users have so called workspaces. A workspace is a folder with a specific structure and bunch of specific files - user information and some workspace metadata ...
Paflow's user avatar
  • 107
2 votes
2 answers
544 views

Should powershell be used to develop a whole application?

We are automating the testing on an Web ERP solution (Dynamics) through a tool (RSAT, which uses selenium) provided by the developer of the ERP (Microsoft). The RSAT has a list of instructions to do ...
Maxime's user avatar
  • 153
0 votes
0 answers
497 views

Implement multiple file upload with Dropzone.js , Lambda and S3

This is more a general question about this project I have on. We need to implement some UI for our costumers to upload multiple files (2000+) every month, so we can send them by email to another ...
jspasiuk's user avatar
2 votes
1 answer
1k views

Appropriates names for Api implementation and Api Client Library

Suppose I have a big project, called Northwind. It's a website in front of a database. Now management want me to create a public API for this. I create a new ASP.NET Core project called Northwind.Api ...
Andrew Shepherd's user avatar
1 vote
0 answers
61 views

"Add-On" Projects and ASP.NET Core with Entity Framework

I've created a .NET Core MVC product with Entity Framework, and am being tasked with creating "Add-on" products, which give CRUD operations to more tables, but use the same library functions and UI. ...
Chihuahua Enthusiast's user avatar
2 votes
1 answer
217 views

How does COCOMO handle large projects that could be split up into smaller projects?

Let's say I want to use COCOMO to estimate the effort to produce a 100 KLoC embedded project. Not including the Effort Adjustment Factor, the effort would be 2.8 * 100^1.2 = 703. However, the project ...
The Guy with The Hat's user avatar
0 votes
1 answer
3k views

Complex roles, permissions and hierarchical group management in Laravel

I'm currently in the planning phase / feasability study of a rather big web application which is meant to be implemented using Laravel. My own experience on the matter is rather limited but I'd like ...
Broco's user avatar
  • 81
1 vote
1 answer
2k views

Node and Angular two separate applications or a single application?

I am a java developer. Since one of our developers are leaving I was handed over a project he was maintaining. He says it is a node + angular js project. But as per my understanding, backend should be ...
Leni's user avatar
  • 149
1 vote
0 answers
71 views

How to organize an App composed of Features in Qt?

When developing a somewhat larger application, with 3-4 screens or so, what is the most common way to organise the code? I've read that organize-by-feature trumps organize-by-type, so I was ...
xtofl's user avatar
  • 344
-1 votes
1 answer
123 views

Given two modules, what consideration should be made when writing cross cutting codes

I am recently having a discussion with colleagues about where should a piece of code reside within our django project. For the sake of the question, let's say we are creating APIs for uber-like ...
user2829759's user avatar
3 votes
0 answers
281 views

C++ dependency management across projects

We are developing a benchmarking framework in C++, with Make and CMake as build tools. The aim of the framework is to allow others who build algorithms to perform head-to-head comparison against prior ...
Mihai Bujanca's user avatar
0 votes
2 answers
268 views

When no other class ever needs to touch the (nested) class - should I always make it a (private) nested class?

And what is the recommended file structure? The question is a bit similar to this one, but I'm looking for more explicit recommendations. In theory I think it's a good concept to keep files short ...
Dirk Boer's user avatar
  • 444
4 votes
2 answers
667 views

Is it a bad idea to model dependencies using a project's directory structure?

Let's say I have three classes: A, B, and C. All of these classes are simple and they create a cohesive unit. In addition, B depends on C and C depends on A. Most people would put these classes into ...
Krzysztof Czelusniak's user avatar
2 votes
1 answer
113 views

Where to put an artifact which will be used only by test

I am developing a new feature for a well-established memory package. The feature Im implementing is about loading/copying/moving resources in and out to different type of structures like jars, ...
CanCode's user avatar
  • 49
0 votes
1 answer
1k views

Golang: Directory structure for Multiple Applications

I'm creating a proof-of-concept for a Go-app for my organization. I've read all of the intro docs on setting up a Go workspace, packages, etc. However, I am still unclear about the relationship ...
Ian Taylor's user avatar
-2 votes
1 answer
64 views

Grouping types in a single project [duplicate]

I have many models in my project that are unrelated to each other. I wanted to group them but I wonder what's better: Folder/namespace per group Group1.Constants, Group2.Constants Group1.Models, ...
Konrad's user avatar
  • 1,559

1
2 3 4 5