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

Verilog: Changing multiple states in one case statement

Basically I'm trying to display the sum or product of two numbers (inputted using switches on an FPGA) onto a 7-segment display. I know that both my addition and multiplication bits work fine, as I've tested them separately. I'm having trouble with…
gdagis
  • 113
  • 1
  • 4
  • 15
0
votes
0 answers

Convert a custom flat database to a SQL based database like SQLite

Our company has used some flat files as a database for many years, it has a fix structure snd unfortunately with no extra space. now they wanted to add some new fields and even make it more flexible to add new filed easily. It is a while I am…
Arash
  • 383
  • 4
  • 16
0
votes
0 answers

Xml mixed content tree structure

I'm making a xml parser for a purpose of challenge. Basically a xml node looks like this: public struct XmlTag : IXmlTag { public IXmlText Name { get; } public List Children { get; } public Attributes Attributes { get; } …
Andriy Shevchenko
  • 1,117
  • 6
  • 21
0
votes
4 answers

How to add a class that does controls on an entire table?

in our project we have an SQL Database with a table representing all users CREATE TABLE `user_table` ( `firstname` varchar(20) NOT NULL, `lastName` varchar(20) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(24) NOT NULL, …
RaffoSorr
  • 405
  • 1
  • 5
  • 14
0
votes
4 answers

c# .net: Extend existing class with method that should be overriden when initialized

Is something like that possible? Let's say I have the String Class. And I want to add a Method DoStringCalc(). Now I want one Class which holds all these special strings and calls DoStringCalc() on all of them. But every String can have a different…
Thypari
  • 801
  • 1
  • 6
  • 22
0
votes
1 answer

Many similar resources in REST API

I’m developing an API for multimedia service. In database I have media table which stores different media (movies, music, series etc). There’re two types of users: admins and users. Users can access media using different endpoints: /movies…
Katomi
  • 25
  • 4
0
votes
1 answer

Polymorphism vs Abstraction : Is polymorphism one of the way to achieve Abstraction?

My understanding of a Polymorphism is, it is one of the way of achieving Abstraction ? Does every one agree with my view ? Or there is any flaw in my thinking ?
nexusboy
  • 13
  • 3
0
votes
1 answer

What's the cleanest way to check if logging is enabled?

I am implementing a software and the user can, before starting a task, decide if he wants to create a log file for this task. A csv-writer is created if logging is enabled Throughout the code there are several lines which use the csv-writer to…
Thypari
  • 801
  • 1
  • 6
  • 22
0
votes
1 answer

Three-Tier architecture: what should be in data layer?

I built a monitoring web application that reads from server log files. After that, business logic pull other information by using a geolocalization service. Do I should consider both log file and geolocalization database as my data layer?
0
votes
2 answers

Modeling relationships with domain models

In my system, an User can be member of a Team. I got a domain model called Team which contains id, name, member_count and is_channel. So when I fetch teams in the repository I retrieve the Team domain model. How would I model the relation between a…
guidsen
  • 2,333
  • 6
  • 34
  • 55
0
votes
1 answer

What exactly can we describe Factory Method of design pattern?

I am confused with the concept ? Is it just as simple as incorporating a static method to return the object instead of a constructor ? So that client doesn't need to change the code while we update the library or there is something more to it ?
0
votes
1 answer

SuiteScript 2.0 Map Reduce Script Parameters

I have written a map/reduce script to check a box on thousands of journal entry records. I have a dynamic parameter that passes in journal status when script is run. In suitescript 1.0 I grab script parameters off context object. I'm sure it is…
Ashley Millen
  • 25
  • 1
  • 6
0
votes
0 answers

Attempting to design a flexible reporting system. Getting stuck

I’m having some trouble coming up with a future-proof-ish design for reports for a company. Essentially the requirements are: Be able to pull whatever data from the database Generate formatted report from that data by populating a template (HTML,…
mpetts
  • 106
  • 5
0
votes
1 answer

Storing a reference vs storing a copy-able object implemented with PImpl?

I have a class called SharedData, and a Container object with ~100k Individual objects. Each of the Individual objects needs access to the data stored in SharedData; because there are so many of them, it's not feasible to store a copy in each.…
Jamie S
  • 111
  • 1
  • 10
0
votes
3 answers

Naming a GET with alternative query options

Assume you have a REST service that already gets users by id, so the url looks something like GET /users/{userId} But you want to create a duplicate web service that gets users by email, so: GET /users/{email} Which is better? Method 1: Same…
Pete B.
  • 3,188
  • 6
  • 25
  • 38
1 2 3
99
100