Questions tagged [application-design]

Application design (also known as software architecture) is the process of creating a conceptual structured understanding of the different aspects of the application.

The process involves understanding the needs and expectations from the application as well as the resources that the application can use, and results with the software requirements specification (SRS) document(s).

The design process should take into consideration both the client's current and future needs, as well as the budget the client is willing to spend.

238 questions
172
votes
13 answers

Is Using .NET 4.0 Tuples in my C# Code a Poor Design Decision?

With the addition of the Tuple class in .net 4, I have been trying to decide if using them in my design is a bad choice or not. The way I see it, a Tuple can be a shortcut to writing a result class (I am sure there are other uses too). So…
Jason Webb
  • 7,938
  • 9
  • 40
  • 49
87
votes
3 answers

Hibernate lazy-load application design

I tend to use Hibernate in combination with Spring framework and it's declarative transaction demarcation capabilities (e.g., @Transactional). As we all known, hibernate tries to be as non-invasive and as transparent as possible, however this…
Johan Sjöberg
  • 47,929
  • 21
  • 130
  • 148
55
votes
17 answers

What is the best "forgot my password" method?

Possible Duplicate: Forgot Password: what is the best method of implementing a forgot password function? I'm programming a community website. I want to build a "forgot my password" feature. Looking around at different sites, I've found they…
Edward Tanguay
  • 189,012
  • 314
  • 712
  • 1,047
24
votes
9 answers

How to design Java application?

What are the general guidelines and best practices to keep in mind while designing Java application [Simple console apps to J2EE apps]?. Hi I recently completed Java programming tutorial from Sun and practised core java (I have previous programming…
Dushyanth
  • 280
  • 1
  • 4
  • 9
24
votes
5 answers

Spring and Guice together, or just Spring

I'm starting a new Java web app from scratch. I don't have much experience on Spring Framework, but I know I'd like to use some of its features, such as Transaccions Management. On the other hand, I really like Guice for dependency injection. I…
csalazar
  • 748
  • 1
  • 7
  • 13
15
votes
5 answers

should the user's Account balance be stored in the database or calculated dynamically?

Should the user's Account balance be stored in the database or calculated dynamically? For accurate results calculating it dynamically make sense but then it might be a problem, when there are many user's and the database grows very…
001
  • 62,807
  • 94
  • 230
  • 350
15
votes
7 answers

How do you run your unit tests? Compiler flags? Static libraries?

I'm just getting started with TDD and am curious as to what approaches others take to run their tests. For reference, I am using the google testing framework, but I believe the question is applicable to most other testing frameworks and to languages…
kurige
  • 3,749
  • 2
  • 21
  • 24
14
votes
4 answers

MVC: why do we need "controller", or when should we use this pattern?

I have read many publications about MVC, but I still can't clearly understand why do we need "controller". I usually write applications in client-server model: server contains all the business-logic, and it knows nothing about the gui. It does the…
Dmitry Frank
  • 10,417
  • 10
  • 64
  • 114
14
votes
2 answers

best practices for "data layer" in android client apps

Here is one design/ best practices question.. I'm new to android development, and basically new to web/mobile solutions. So, my question is - what are best practices when organizing structure of android application that get data from the remote…
12
votes
3 answers

Is DTO pattern deprecated or not?

In a complete Java EE application that's clustered is the DTO pattern still a valid option? The application in question uses EJBs Hibernate and Struts with Spring etc. Is there anything wrong with transferring domain objects in such a…
Thihara
  • 7,031
  • 2
  • 29
  • 56
10
votes
2 answers

What, specifically, belongs in a Model, a View, and a Controller?

I've been learning about the Model-View-Controller paradigm ("MVC"), but I'm quite confused since some tutorials contradict other tutorials. My current understanding of the process looks something like this: Router / Dispatcher / Front…
9
votes
2 answers

How to setup initial user/role enabling SAML SSO

We are a service provider. Suppose in our application, we originally have our own user/role management. Different users with different roles are allowed to use different features. So that when a user login we need to know which roles this user has,…
9
votes
4 answers

Is this a valid use case for javascript closure?

I have looked through all the other (excellent) answers on SO (especially this: How do JavaScript closures work?) but I wanted your feedback on my understanding of the concept. I understand that one use case is to hide the implementation of private…
Software Guy
  • 3,190
  • 4
  • 21
  • 21
8
votes
1 answer

Working with Node.JS

Last night I dump windows 7 and formatted my hard driver to port to a Linux based operating system, Purely for the reasons that I wanted to start working with Node.JS So I have installed Node.JS and have done a few test stuff, the http server and…
RobertPitt
  • 56,863
  • 21
  • 114
  • 161
8
votes
4 answers

Circular dependencies in foreign keys: use it or avoid it?

My application loads lots of data from a database into a complex data structure. The in-memory data structure ressembles the structure of the database, which means that if the database contains the following tables: table A, key is A1 table B, key…
1
2 3
15 16