Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [design-decisions]

The tag has no usage guidance.

0
votes
1answer
136 views

Why are React keys limited to strings?

In React, when rendering a mapping from elements of a list/array/iterable to React elements, we're required to attach a locally-unique key to each element. Generally this is so that if an element ...
1
vote
0answers
55 views

Decision tree for storing subscription info

I have a system in which user creates an entity. Now this entity has attributes which are dependent on many external systems. We have all those pipelines in backend which updates these entities when ...
0
votes
2answers
101 views

API responsibilities vs Client responsibilities (Characteristics of returned data)

I have a hard time trying to find a 'rule of thumb' to follow when dictating certain responsibilities to either the API, or the client-side code base. For instance, if I know a dataset should be ...
1
vote
1answer
117 views

Rewriting an old, broken desktop application via a local API

We are currently supporting a very outdated, unstructred, untested and unstable ERP desktop application coded in Windev (on windows). As the days go on, we need to add more features for the users but ...
5
votes
5answers
659 views

Documenting design decisions in code comments?

How can I best document a code design decision in my source code? Should I just add a massive comment at a point I feel is right? Or should I just create a separate file? This issue is important for ...
6
votes
1answer
265 views

data structure/algorithm for conditional next step

I have been trying to find a proper way to represent the above data flow (this is just a small case), and I'm not sure if I found a good way to do it. Our current implementation just evaluate all the ...
5
votes
2answers
153 views

How to deal with different configurations with non-overlapping properties?

I am working on a project based on the Java EE technology. First I'd like to tell you what I want to achieve, then what I already tried. Task: Imagine two types of configurations, which you want to ...
6
votes
8answers
853 views

Rule of thumb for deciding which class a method belongs to

For example, imagine a website which stores results about a certain sport or game, which has a typical "season" structure, such that there's both a Player and a Season class. To retrieve a player's ...
30
votes
5answers
2k views

What is an effective way to record rationales behind product design decisions?

At our company, we do not use any product design documents. We have three employees total so all product design discussion happens in person, or on Slack. (We are also on the basic Slack package that ...
4
votes
1answer
187 views

How do I use decision tables to prioritize between objects - or should I do something different? [closed]

I have a case similar to this one: Multivariable decisions The difference is, that it's not a single decision I need to make but more like I have a pool of (let's say 10 object) where each object has ...
7
votes
2answers
2k views

Top-down vs Bottom-up approach when designing a class library

I am designing a class library to represent western equal temperament music theory concepts for the purpose of composing notated music with code (I realize there are other libraries and programs for ...
-1
votes
1answer
84 views

Learning About Different Architecture Set Ups [closed]

I'm sorry in advance if this isn't a good fit here, as it is a pretty open-ended question. In a nutshell: where / how / when does one learn about application architecture(s)? Normally for web ...
3
votes
2answers
719 views

Data persistence for transactional customer emails

I'm developing a system to handle sending transactional emails to our customers. This is how it works: An event occurs during the order's life cycle, for example 'shipped' This event will trigger ...
9
votes
3answers
578 views

What rationale is used when programming language designers decide what sign the result of modulo operation takes?

Going through Modulo operation (the avenue I entered while exploring the difference between rem and mod) I came across: In mathematics the result of the modulo operation is the remainder of the ...
4
votes
1answer
689 views

Java language constructs to enforce design decisions

What constructs in OOP languages (specifically Java) allow you to enforce design decisions and intent? I think some examples would be the 'final' keyword, access modifiers, template methods, perhaps ...
3
votes
1answer
192 views

Minimize useless tweaking of a numeric app [closed]

I'm developing a numeric application (nonlinear optimizer), with a zillion knobs to tweak and rising. It's not my first foray into this domain, but this time there are even more variables in the code ...
1
vote
9answers
7k views

When calculating how many days between 2 dates, should you include both dates in the count, or neither, or 1?

I am trying to make an algorithm that counts the days between two dates, e.g. between 3/1/2012 and 3/2/2012. What is the correct answer, or the most popular choice? Should be the one I use? In ...
2
votes
3answers
248 views

Use the latest technology or use a mature technology as a developer?

I would like to develop an application for a group of people to use. I have decided to develop using python, but I am thinking of using python 2.X or python 3.X. If I use python 2.X, I need to upgrade ...
5
votes
8answers
2k views

How do you decide between putting the code in the database or putting the code in the application? [closed]

For the sake of argument: Let's assume the application we are building is an amortization schedule. Let's also assume that the database has a table called tblAmortizationPayments that stores the ...
22
votes
6answers
12k views

Aspect Oriented Programming: When to start using a framework?

I just watched this talk by Greg Young warning people to KISS: Keep It Simple Stupid. One of the things he suggested is that to do aspect-oriented programming, one does not need a framework. He ...
10
votes
4answers
3k views

What are the dangerous corners of Qt? [closed]

There's nothing perfect under the sun. Qt is no exception, and it does have limitations: we can't use pixmaps in a thread other than GUI, we can't use QImage with 16-bit-per-channel image format, etc.....
7
votes
1answer
289 views

Should I let my users write BnfExpressions to extend my grammar?

Preface I'm designing a templating language (please skip the don't/why?? speech). One of the major goals of this language is to be extensible. There are 2 main elements in my language. "Tags" and "...