Questions tagged [project-structure]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
143 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 ...
10
votes
4answers
8k views

How can I effectively use one file per class in C++?

Even though I have a decent bit of professional experience with object oriented programming in Java and a basic familiarity with C, I've run into a bit of a mental block with C++ that I was hoping ...
0
votes
2answers
1k views

Best practices for adding Node.JS build features to a non-Node project

The primary use for Node.JS is of course as a full server stack, and I've used it in that manner to great success. However, a number of useful, interesting NPM packages deal with things like ...
0
votes
1answer
253 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 (...
-2
votes
1answer
140 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 ...
0
votes
1answer
2k views

What is a proper way to structure a Python project consisting of smaller packages that have shared code?

I have been debating this question internally for a few weeks now and I keep coming up short in finding a good answer to the question. I feel an example would be more descriptive than just talking ...
4
votes
1answer
117 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 ...
1
vote
1answer
127 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 ...
1
vote
1answer
68 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 ...
85
votes
3answers
21k views

Folder-by-type or Folder-by-feature

I make use of an AngularJS style guide. Within this guide there is a style called folder-by-feature, instead of folder-by-type, and I'm actually curious what's the best approach (in this example for ...
-2
votes
1answer
35 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 ...
-2
votes
1answer
134 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: ...
6
votes
2answers
3k views

What's the best way to handle a large multi-file class in Javascript?

I have a very large class of 59 methods and about 3000 lines of code. I know that's far larger than most people would want, but the class represents a virtual machine, and most of the methods are run ...
0
votes
2answers
160 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 ...
20
votes
3answers
36k views

What's the best structure for a repository? [closed]

I've looked into many open source software repositories, and I've found some common elements and somethings people do in different fashion from one another. For example, every repository has a README ...
7
votes
3answers
4k views

Is it a good idea to share repositories across microservices in Spring Boot Application?

We are migrating a desktop application into web based Spring Boot micro services application with a client imposed mandate of using their existing MySQL database, so all micro services share a common ...
4
votes
3answers
223 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). ...
58
votes
4answers
17k views

What's in the "contrib" folder?

Often open-source software projects have a folder called "contrib". For example, Django has one. What is it for?
1
vote
1answer
4k views

Interfaces between multiple projects

I'm slightly confused over the following: ProjectA -------- GetUsers (Implements IDBConnector) -------- IGetUsers -------- UserModel ProjectB -------- Main I have two projects one main project (...
-4
votes
1answer
57 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, ...
1
vote
1answer
872 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 ("...
-2
votes
1answer
57 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 ...
0
votes
1answer
148 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 ...
0
votes
1answer
122 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 ...
1
vote
2answers
541 views

Should I break down test class into multiple files?

I have a test class with about 25 tests that are testing the different aspect of it. I wonder Should I break it down into smaller classes? If so, then what is the best naming/packaging convention? ...
0
votes
1answer
148 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 ...
-1
votes
1answer
56 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 ...
2
votes
2answers
228 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 ...
1
vote
3answers
253 views

Where do you put your profiling code?

I just developed an algorithm and additional to the usual unit tests I wrote a profiling "test" that I was using to measure and optimize its performance. It is structured similar to a test (arrange: ...
0
votes
0answers
282 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 ...
1
vote
1answer
182 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 ...
1
vote
0answers
41 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. ...
2
votes
1answer
117 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 ...
0
votes
1answer
2k 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 ...
1
vote
1answer
914 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 ...
1
vote
0answers
33 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 ...
-1
votes
1answer
80 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 ...
3
votes
0answers
220 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 ...
15
votes
4answers
8k views

C project avoiding naming conflicts

I'm struggling to find pragmatic real-world advice on function naming conventions for a medium sized C library project. My library project is separated into a few modules and submodules with their own ...
0
votes
2answers
88 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 ...
4
votes
2answers
345 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 ...
12
votes
2answers
12k views

best way to install local package into docker image

I have a python package that I wrote and I want to use it within multiple docker builds. However, I can't just install my local package situated outside of Dockerfile folder. And I don't want to ...
0
votes
1answer
524 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 ...
4
votes
2answers
6k views

How to deal with exceptions in DLLs?

I recently started working on an existing project written in C++ Builder. The application consists of a MainModule that loads lots of modules (DLLs). The MainModule itself is a DLL (there is a small ...
1
vote
0answers
51 views

Develop distributed system contain application with poor architecture [duplicate]

In last months the business continues dynamic grow so we must develop new features along distributed system. Unfortunately we do not have much time to deliver new solutions. The application is ...
2
votes
1answer
73 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, ...
-2
votes
1answer
49 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, ...
2
votes
1answer
388 views

Architecting an organization's web strategy. What is the preferred method here?

I'm working on a solution for an organization that needs to last them long term (as subjective as that is). They currently have a Joomla installation whereby the CMS talks directly to the database, ...
0
votes
1answer
1k views

Project architecture for application with dynamic database

We've a project that has some tables are defined and some will be generated runtime, means dynamic and no pre-defined structure. We generally use Entity Framework to communicate to the database(in ...
3
votes
2answers
210 views

Adding library as dependency only to use one function

Few months ago I started working in a team that develops software using Node.js. Quite often we encounter the problem that has been already solved by someone else and the solution is already available ...