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
3 answers

Reopen Java window after hiding it on close

I'm building an application, and the biggest problem that I'm having is the reopening of the application. I can launch my application just fine. It creates the main window. I'm also using the setDefaultCloseOperation(HIDE_ON_CLOSE) I have also…
BlankXai
  • 5
  • 2
0
votes
0 answers

Visitor pattern to visit super classes, interfaces and canceling decent

I'm working on a variation of the standard visitor pattern with the following three requirements: For each node, all super classes of the node should be visited first For each class, all implemented interfaces should be visited first Each visit to…
0
votes
1 answer

What is a good way to identify which specific gameObjects are colliding?

This is with respect to a physics engine. Once a collision occurs, it returns me the information that two gameObjects are colliding. All entities, like player, monster, bullet etc are derived (inherit) from GameObject. What is a good way to identify…
0
votes
2 answers

How do I inject a dependency representing a collection of folders?

What is the best way to dependency inject folders? I have a class that needs three folders. The goal is to gather files from a subfolder structure (a folder containing multiple folders into which the files are sorted) and write it to two another…
JFFIGK
  • 632
  • 1
  • 7
  • 24
0
votes
1 answer

Adding Unit tests for functionality that no longer exists

We are involved in quality assurance and as part of this process, we perform reviews on code that is written by a third-party development company. One of the team members raised a comment against some unit tests that had been written off the back…
ChrisBint
  • 12,773
  • 6
  • 40
  • 62
0
votes
1 answer

Does Factory Pattern works here, and Can I use it with multiple independent objects?

So I want to write a code that follows the OO Principles for a restaurant menu, like: sandwiches: 3 different types drinks: 5 different types and so on, and I thought using the factory method design pattern is the best? do you agree with that? or…
0
votes
0 answers

How to give objects of same type different setup configurations?

For simplicity's sake, say I have a Object Manager class A that manages resources between objects derived from same class class Bs. A requirements are these: 1) Should have an instance of only one B at a time, we'll make that current B 2) Should…
user3904534
  • 309
  • 5
  • 13
0
votes
2 answers

Where to best put common view code to avoid duplication?

I have a series of view callables that all need to execute a series of functions that perform validations and if one of these validations fails, it will return the output for view callable. If all of these validations pass, then the rest of the…
Michael Ray Lovett
  • 6,668
  • 7
  • 27
  • 36
0
votes
1 answer

Dependency Management .Net: Classes or Assemblies?

If I want my Business domain objects to not depend on the database, should my domain classes be in a separate assembly? Consider the following: Core.dll - Contains business objects, very limited references Application.dll - Contains repositories…
mfreedm52
  • 161
  • 10
0
votes
1 answer

state synchronization in software architecture

I am reading book on software architecture in practice. Here for availability quality attribute authors has mentioned a below State resynchronization is a reintroduction partner to the active redundancy and passive redundancy. When used along side…
venkysmarty
  • 11,099
  • 25
  • 101
  • 184
0
votes
2 answers

Can we design a dynamic application without using the database

I need to develop an application with the requirements below Enter stock balances show all stock balances Total sales at the end of the day etc Like this there are many operations that should be performed. Can we design that without using any…
ashok knv
  • 1
  • 7
0
votes
1 answer

UML( Domain Class Diagram) is my Domain Class Diagram correct?

Currently I am dealing with UMl diagrams of the SOS game that I am planning to create, But I am not sure if my domain class diagram is correct. Can please someone tell me that if I have aany problem with my domain class diagram? Thanks. interface…
0
votes
3 answers

How to choose the number of controllers using MVC architecture

I want to develop a Java based application and I am now designing the software architecture with MVC(Model-View-Controller). My question is on ideal way to determine the number of Controllers to control more than one model which are somehow related…
Fio
  • 3,088
  • 2
  • 13
  • 23
0
votes
1 answer

how to fetch index no value in C# program

public class Program { //Program Working Correctly public static void Main(string[] args) { Console.WriteLine("Enter the Number : "); int num = int.Parse(Console.ReadLine()); Boolean isPrime = true; …
0
votes
1 answer

Atomic Design - separation of implementation components from Atomic UI components

Beginning to build a new UI library using the atomic design methodology we quickly ran into a problem when trying to categorise the smallest UI building blocks as atoms. An example here might be a React component that might be say,
1 2 3
99
100