general tips and guidelines for designing better applications, regarding APIs, Architecture and internal structures.
Questions tagged [design-decisions]
93 questions
2
votes
2 answers
Single Page Application - Should I use MVC Framework on the server side?
I'm developing a SPA application and I can't decide, whether to use server-side MVC framework or not.
I have chosen AngularJS as the client-side framework. I was thinking I could use Symfony 2 on the server side, but I also considered using pure…

michy04
- 317
- 3
- 11
2
votes
2 answers
SVN externals and export for framework
I'm currently working on a framework for a client. The framework is based upon Zend Framework. The directory structure is:
application : Application specific code
application/modules/frontend : Application specific…

Edwin V.
- 1,327
- 8
- 11
2
votes
2 answers
Why did Playframework 2 use a custom Scala Template Engine instead of scalas build in xml mode?
Play 2.0 uses a custom scala based template engine that allows to use a subset of scala inside html code.
Why was this design decision made instead of using scalas build-in xml mode?
The play template engine has some disadvantages like
only a…

Sebastian Baltes
- 108
- 5
1
vote
2 answers
confusion C# duck typing, implicit conversion and inconsistencies
Everyone seems to love duck typing, if it looks like duck, acts like a duck, treat it like a duck. C# 4.0 allows duck typing and current supports it in a few situations (see "C# has used duck typing for a long time" in…
user34537
1
vote
1 answer
Is having a scalar type and element inside a parent element bad design in XML?
We currently have the following structure as part of an API endpoint response.
id
Now, I would like to add a sub-element to the element without changing the existing structure. This is what…

Lennert
- 27
- 1
- 6
1
vote
2 answers
Architectural Decision: How to structure a big Json Response
I'm working on an app that will generate a Json potentially very big. In my tests this was 8000 rows. This is because is an aggregation of data for a year, and is required to display details in the UI.
For example:
"voice1": {
"sum": 24000,
…

Mirko Urru
- 25
- 1
- 6
1
vote
1 answer
Declaring configuration of custom configurable application in java?
So for a hobby project of mine, I would like to create an application that translates an HTTP call and request between two services.
The application does that based on a configuration that can be set by the user. The idea is that the application…

Propaanbanaan
- 64
- 7
1
vote
3 answers
Add simple business logic to repository in ASP>NET MVC 3 C#
I have a question concerning an issue that has already been disputed many times in stackoverflow (I apologize for this) but no general answer has ever been given because of the subjectivity of the topic from one case to another: can we add business…

CiccioMiami
- 8,028
- 32
- 90
- 151
1
vote
3 answers
Why is the design criteria for ConcurrentModificationException chosen only to be structural modification
I do understand that ConcurrentModificationExcpetion is thrown whenever there is a structural modification of the underlying collection after an iterator has been created. This seems to be a design decision.
I was wondering why update, through…

Sara
- 603
- 8
- 19
1
vote
4 answers
Is there a reason that ASP.NET's CheckBoxList doesn't have a SelectedItems member?
Whenever I want to get selected items I have to loop through each item and see if it's selected. They even have a SelectedItem (no "s" at the end) member which seems odd for a CheckBoxList. It seems like a logical thing to have, does anyone know…

Abe Miessler
- 82,532
- 99
- 305
- 486
1
vote
1 answer
Tuples implementation
Sorry if it's a duplicate. I couldn't find a full explanation on that matter.
And the MSDN is vague as usual...
Does the .Net tuples provide a usable implementation for equals and GetHashCode out of the box?
(And consequently the == operator)
Can…

Pavel Ronin
- 576
- 4
- 11
1
vote
2 answers
Conditionally required fields and disabled inputs
My form has a bunch of address fields (street, city, country, province, postal code) that need to be filled out over and over again. To make it easier for the user, I've added a "copy from" selector where they can choose an address they've…

mpen
- 272,448
- 266
- 850
- 1,236
1
vote
2 answers
What's the proper approach for writing multi-path "story" flows?
I wonder if you can help me.
I'm writing a game (2d) which allows players to take multiple routes, some of which branch/merge - perhaps even loop. Each section of the game will decide which section is loaded next.
I'm calling each section an…

Basic
- 26,321
- 24
- 115
- 201
1
vote
1 answer
Why a single EJB session bean is allowed to have multiple interfaces?
I am learning about EJB 3.0 from the book EJB 3 in Action. In the section under The anatomy of a session bean it is mentioned that :
An interface through which a client invokes the bean is called a
business interface. This interface essentially…

Geek
- 26,489
- 43
- 149
- 227
1
vote
5 answers
C# Battleships Class/Structure
greetings, im am new to programming and at the moment developing a clone of the game battleships. i need to implement a fleet of 5 ships. this is what i have done so far:
class Cell holds the status of a table cell:
public class Cell
{
// class…

iTEgg
- 8,212
- 20
- 73
- 107