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

I am creating UML for an information system which is needed to help deal with the editing of the magazine

I have been tasked to create one use case to cover the main functionality of the scenario below. So far the use case which I have come up with is create magazine issue and the actor is the Editor. However, I'm not sure about the part where the…
SHARK
  • 1
  • 4
0
votes
0 answers

What is the name for the class equivalent of a pure function?

What is the name for a class that does not have any side effects? Like a pure function, but a class. In other words, what do you call a class where all methods are pure functions of the object's state and the method parameters, except that methods…
Kerrick Staley
  • 1,583
  • 2
  • 20
  • 28
0
votes
0 answers

Instantiating an object within the same class method

Is there any Guideline or pattern which suggest regarding the creation of an object within the same Class, is it ok or not recommended? Example: Car is a class, lets say there is a method called StartEngine(); does it makes sense to create an object…
Mohammed Hameed
  • 73
  • 1
  • 10
0
votes
1 answer

What is wrong with my if , else if and else loop?

Ok, so I was writing a simple interface for a programming I'm creating and i come across this issue, where it gives me the same response regardless. #include using namespace std; int main() { char v; cout << "Binary or ASCII?…
0
votes
1 answer

Qt library design with signals

I am trying to design a Qt library which gives the output back to the client code using signals, but I can't quite get my head around it, I think something is wrong. Say the library exposes a single class A as follows: class A { public: void…
user445082
  • 59
  • 1
  • 3
0
votes
1 answer

Is it allowed that we use usecase diagram just for 1 actor (user)?

I use use case diagram that only include 1 actor (user) because my website don't have admin. I have build WebVR who is user can see 360 3D model in their browser. Can I use usecase diagram for it although just only 1 actor/user?
0
votes
1 answer

Java Software design: Making a generic tree - printing library

I am in the process of coding a project for the tree data structure - specifically, the main functionality it will provide is to display a given tree in different ways (different layouts on the JFrame canvas screen). For sake of simplicity, I am…
mettleap
  • 1,390
  • 8
  • 17
0
votes
1 answer

Raw SQL with Express without ORMs

I want to use raw SQL queries in my application but I have some questions on how to structure my application. Some background: I am writing a JSON API with Express and Postgres. I am not currently using an ORM. I have used Sequelize before, but I…
0
votes
1 answer

How to update tables inside a column in a live database coming from test database without overriding live data

Suppose I have a live website running on a live database and I have a dev website that is a duplicate of the live website. The live database is where customer transactions are stored. What if I do some changes on the dev website and dev database…
Daniel
  • 205
  • 2
  • 12
0
votes
0 answers

Offer Engine - Architecture

I am trying to implement offer engine for e-commerece website. I envision offer engine having CRUD APIs. It should be a rule based system wherein the offer post api (or create api) will create a rule. Like for example: consumers who have shopped…
H-V
  • 131
  • 1
  • 4
0
votes
1 answer

Where to keep the business logic for a data analysis web app with lot of user interaction

I am trying to create a web app in which: The user is shown a table (call it table0) on the browser with rows (around 1000-1500 rows) and a few (5-6) columns. Depending on the data in the table0, 3-4 new tables are created based on some…
0
votes
1 answer

How to make the constructor clear if the class has two component classes

How to design the constructor of Manager more cleaner? Is there any pattern for this problem? class Manager(): def __init__(self, a_1, a_2, a_3, b_1, b_2, b_3): self.a = A(a_1, a_2, a_3) self.b = B(b_1, b_2, b_3) class A(): def…
Shihao Xu
  • 1,160
  • 2
  • 10
  • 23
0
votes
2 answers

How to proper split React application components

I am learning React by creating an application, but I think I underestimated its complexity. Let me share with you to know if I got it right: The idea is to create a React App to track the subjects I want to study. I've created the following…
Ricardo Silva
  • 380
  • 4
  • 15
0
votes
1 answer

What to do if a transaction fails?

So basically there is a game where you own a planet, you send ships to other planets, and after a bit you can own that new planet. PlanetB is being attacked with a ship: [PlanetA] ----> [PlanetB] The process on ship arrival when the PlanetB is…
Totty.js
  • 15,563
  • 31
  • 103
  • 175
0
votes
1 answer

fastest way to deal with data and processing them

I have a very big and important project but I have a problem about choosing a way to handle data. database : If I use database I can sort them and filter them. Do you think that in this way filtering data is gonna be faster or I should code it in…