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

Extending class with static fields for the purpose of "overriding" static properties

This is posing a heated debate and I would like to know if there are any problems with this approach. I have a class which contains nothing but static strings: public class EventConstants { public static ID = "1"; public static DOMAIN =…
jiveturkey
  • 2,484
  • 1
  • 23
  • 41
0
votes
1 answer

Need help in designing a communication to on-premise software from SaaS

I am planning a solution for creating a communication from SaaS to on-prem software. Some details: Java WEB servers with REST API ~10K servers No global access My goal is invoke REST API calls on those servers. My approach is to create a light…
Maxim Kirilov
  • 2,639
  • 24
  • 49
0
votes
1 answer

VB.Net using form properties or control values

I've been writing a program in VB.Net that uses a form to pass information along to other classes and I have a question regarding my current code structure. I personally don't like the various controls in the form to be exposed for other classes to…
N Biggs
  • 3
  • 2
0
votes
1 answer

Warn towards use of more efficient function in subclass

I want to implement a scala library for graphs. This library should also contain different types of trees. 1 the class tree extends the class graph 2 the class graph has a method getAllPrecursors(Node n) which returns all the Nodes fron which you…
user2887596
  • 641
  • 5
  • 15
0
votes
1 answer

Best practice to organize list, view, create and update routes in Ember.js

Working for a few years with ember.js now, it's still not quite clear to me, what should be considered as best practice for structuring list, view, create and update routes. The projects I've worked with so far mostly used to routing trees per…
jelhan
  • 6,149
  • 1
  • 19
  • 35
0
votes
1 answer

Using a Base method which has no abstraction

Is the code below fine? I'm asking myself if the Start() and Stop() method in the interface ICustomTimer is fine as location. Because I need it in my Main method. Is this a code smell or, in other words, what is the best practice to call a base…
Ozkan
  • 3,880
  • 9
  • 47
  • 78
0
votes
0 answers

Best Practice For Exception Handling When Writing a Utility Class c#

In my solution, I am making a Utility class for Encryption. It exposes methods for encryption, decryption and few other things. Any other project can use this utility wherever encryption is needed. All the methods are static. I am not handling any…
kumarmo2
  • 1,381
  • 1
  • 20
  • 35
0
votes
1 answer

Self deletion of object through remove method in C++

How can I improve architecture of my code? I have feeling that something is wrong with the idea to delete object by call to its void remove() { delete this; } method. I have hierarchy (I call it hierarchy1) of objects in my program. Each object…
user8044236
0
votes
1 answer

Login and authentication functionality in Django REST API and React Native

One of my projects I have developed backend API using Django REST Framework and mobile app using React Native. I have done the following things: When the users log in I store their username in local (mobile) database. When users post data I send…
Taohidul Islam
  • 5,246
  • 3
  • 26
  • 39
0
votes
1 answer

Sending part of data over CAN in C++

First, I have the following typedefs : typedef unsigned char BYTE; typedef unsigned short WORD; Then, I have a function in class A, which calculates a value with the type WORD: class A { ... private: WORD…
Wballer3
  • 141
  • 1
  • 9
0
votes
2 answers

Extending a class which contains a static function

So I have a header file, which looks like this: class Crc16 { public: Crc16(); static long calculateCrc(const BYTE* ptr, long length); long getCrc(); private: long m_crc; }; where BYTE is an unsigned char. This implementation takes…
Wballer3
  • 141
  • 1
  • 9
0
votes
0 answers

How to create an Client AngularJS SDK for own web services?

I already have API's built, I am trying to search for blog posts/articles that can help me gain more knowledge on how can one make an AngularJS SDK for exposing his web services. I already know AngularJS, I have created a node js based web service…
0
votes
1 answer

What are the benefits to creating adapters around dependencies?

Specifically dependencies that have very specific implementations. For one example, the Hangfire enqueing library. This has very specific implementations to enqueue background jobs to be executed asynchronously. I created a wrapper around this…
Mattkwish
  • 753
  • 7
  • 16
0
votes
1 answer

How to build a responsive Web Application - Design

I have little experience in building web applications. Now I have to build a web application which is responsive and accessible. I have to use an own with a Delphi build simple web server which can manage sessions via session cookies and react to…
0
votes
1 answer

Modelling the Domain from Two perspectives

I'm trying to model the domain of my system but I've come across and issue and could do with some help. My issue is one of perspective. I'm modeling a system where I have a Customer entity which will have a number of Order entities and the system…
raven-king
  • 1,550
  • 2
  • 18
  • 40