Questions tagged [software-design]

Software design is the activity of deciding what properties, elements, responsibilities, interfaces, relationships and interactions are required in order to create an effective piece of software.

According to Wikipedia, software design is:

Software design is the process by which an agent creates a specification of a software artifact, intended to accomplish goals, using a set of primitive components and subject to constraints. Software design may refer to either "all the activities involved in conceptualizing, framing, implementing, commissioning, and ultimately modifying complex systems" or "the activity following requirements specification and before programming, as ... [in] a stylized software engineering process."

1966 questions
0
votes
1 answer

Best way to organize Singleton class and a class that handles it in a project?

Say I have a Settings class that I want to keep as a Singleton so all other services/classes etc. have access to the same thing. public class Settings { private static Settings settings; public static Settings getInstance() { if…
Pants
  • 2,563
  • 1
  • 20
  • 34
0
votes
1 answer

Uploading an image to S3 and manipulating with Python in Lambda - best practice

I'm building my first web application and I've got a question around process and best practice, I'm hoping the expertise on this website might be give me a bit of direction. Essentially, all the MVP is doing is going to be writing an overlay onto an…
0
votes
1 answer

Django - Where should I place calculation method to design a proper and maintainable project?

I have some classes like these; class RawMaterial(models.Model): name = models.CharField(max_length=100) class Product(models.Model): name = models.CharField(max_length=100) amount = models.IntegerField() raw_materials =…
adnan kaya
  • 531
  • 3
  • 13
0
votes
1 answer

Should I use a website form or a diy form program as MySQL front-end?

I have a MySQL db that is supposed to store shift details like start time, employee, breaks, nr. of items processed etc. to then analyze this data with MS PowerBI. The employees are supposed to enter the data themselves after their shift and be…
CVE-2017-5754
  • 11
  • 1
  • 7
0
votes
1 answer

Python - Django - Generic Fields Model design

I need some ideas to solve the following issue, maybe with some design pattern or another approach in my current architecture. My app's backend is entirely developed in Django framework and has five current models (no matter relationships between…
0
votes
1 answer

Make sure that functions are called

Im working on a project where we're creating many objects throughout the code base. For some objects thus we decided to use factories to control the process of creating the objects and all their dependencies. This is an example of what we are…
mrateb
  • 2,317
  • 5
  • 27
  • 56
0
votes
0 answers

How can I return an object that has been modified inside a method?

I'm developing with C#, Visual Studio 2017 and .NET Framework 4.7.1. My program do a lot of calculations, and I don't want to create new Collections to store them. So, I have created a collection to reuse it (the only thing that I'm going to do is…
VansFannel
  • 45,055
  • 107
  • 359
  • 626
0
votes
1 answer

Define data type class for interface

C# unlike Java don't allows to define classes inside an interface. What is the correct place for defining classes that are used only in interface functions? Currently I'm using the following architecture namespace MyNameSpace { public class…
Anton Bakulev
  • 286
  • 2
  • 7
0
votes
1 answer

Why should `std::align_val_t` restrict implicit conversion?

std::align_val_t restricts implicit conversion: // won't compile // std::align_val_t align = 64; auto aln = std::align_val_t{64}; When I have alignment in my code, should I retain this restriction of implicit conversion in my interface? Is it a…
sandthorn
  • 2,770
  • 1
  • 15
  • 59
0
votes
1 answer

Developing a graphical user interface in Python / connecting GUI to other code?

I just want to know if this is possible or if I need to look for other options... I am trying to develop medical software for heart disease diagnosis, and already coded the machine learning algorithm to analyze patient data. It is a .py file, and…
tyger2020
  • 13
  • 5
0
votes
1 answer

Overwriting a texture wrapper for OpenGL in C++

I am trying to make an assignment operator for a texture wrapper in C++ but I have too many issues and I am not sure which to go by. The structure looks like this: class Texture { protected: GLuint textureID; //!< OpenGL name of the…
Makogan
  • 8,208
  • 7
  • 44
  • 112
0
votes
2 answers

design pattern to convert one DTO into another

I'm new to design patterns and wonder what is the best way to go about converting one DTO into another. In order to increase performance to the highest extent I use stored procedure which joins several tables (e.g. entries, definitions, examples,…
Alex Herman
  • 2,708
  • 4
  • 32
  • 53
0
votes
1 answer

python design pattern queue with workers

I'm currently working on a project that involves three components, an observer that check for changes in a directory, a worker and an command line interface. What I want to achieve is: The observer, when a change happens send a string to the…
jack87
  • 465
  • 2
  • 5
  • 13
0
votes
1 answer

Create a database table where entries can come from another table or entirely new input

I have a table of customers, employees, and suppliers. Each of them has some common fields like name, address, contact_no, and email along with other fields. Now, I want a new table called investors. However, investors can be from employees,…
sayeed910
  • 198
  • 1
  • 9
0
votes
3 answers

Parsing CSV into database and back

I’m in the planning stage of a project currently and we have to make our software work with other client systems. One of these systems is for managing orders within their business, and we need the information regarding stock. Sadly, they have no…
Rixium
  • 86
  • 1
  • 7