Click here to Skip to main content
15,889,096 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: looking for design pattern which does continous monitoring Pin
Shameel11-Feb-14 1:56
professionalShameel11-Feb-14 1:56 
GeneralRe: looking for design pattern which does continous monitoring Pin
manishakc16-Feb-14 21:16
manishakc16-Feb-14 21:16 
Questionlooking for appropriate design pattern which will help in decision making Pin
manishakc6-Feb-14 23:00
manishakc6-Feb-14 23:00 
AnswerRe: looking for appropriate design pattern which will help in decision making Pin
Richard MacCutchan7-Feb-14 0:04
mveRichard MacCutchan7-Feb-14 0:04 
AnswerRe: looking for appropriate design pattern which will help in decision making Pin
jschell7-Feb-14 8:18
jschell7-Feb-14 8:18 
AnswerRe: looking for appropriate design pattern which will help in decision making Pin
Shameel11-Feb-14 2:01
professionalShameel11-Feb-14 2:01 
QuestionOne Language to rule them all (About business rules) Pin
Bastien Vandamme4-Feb-14 4:25
Bastien Vandamme4-Feb-14 4:25 
AnswerRe: One Language to rule them all (About business rules) Pin
Eddy Vluggen4-Feb-14 8:25
professionalEddy Vluggen4-Feb-14 8:25 
B413 wrote:
Is there a language that can accommodate all business rules in a single place or language?
No. Even if there were a language that does all[^], there'll still be a difference between validation on the clients' side, and validation on the database-layer.

B413 wrote:
My question is about the business rules. By business rules I mean all rules that design the software given by your business, workflow or technical limitation. (I'm not talking of rules you put in your business only).

Your question seems to apply to the database-validation, and all derived checks. BR should be constrained to it's layer.

B413 wrote:
Right now I write this rule in 3 different languages in 3 different places (Gui/Javascript, Layers/C# and database constraint).
The stringlength-constraint is an easy one; the datalayer in C# could be generated based on the database-schema, and the GUI could use the StringLengthAttribute[^] information to do it's check - that'd mean that there'd be three languages performing the same check in three different places, but with the declaration only in a single place (in this example, the database). There's an abundance of variations on the above.

B413 wrote:
• A database (transactional)
• A data layer (generated from database)
• A business layer (Web Services)
• A GUI layer (Web application)
• And business rules(without rules)

That doesn't mean that they're all built that way. A few years ago we considered the database the DAL. It abstracted away a file-system, made data-validation easy, and gave us a uniform way of accessing the data we store. I've also seen quite some code where the BL is a DLL containing classes derived from POCO-classes based on the DB-schema.

If you want a "single language", you'd be looking at the languages that the most restricted environments (in your collection of environments to support) have in common. Database-servers only speak SQL, and browsers usually only JavaScript - but that doesn't mean that they all need a separate implementation. There are some code-generation-tools out there that can do the boring stuff.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: One Language to rule them all (About business rules) Pin
Bastien Vandamme18-Jun-14 23:57
Bastien Vandamme18-Jun-14 23:57 
GeneralRe: One Language to rule them all (About business rules) Pin
Bastien Vandamme22-Jun-14 20:26
Bastien Vandamme22-Jun-14 20:26 
AnswerRe: One Language to rule them all (About business rules) Pin
jschell4-Feb-14 13:26
jschell4-Feb-14 13:26 
AnswerRe: One Language to rule them all (About business rules) Pin
Bastien Vandamme27-Oct-14 0:17
Bastien Vandamme27-Oct-14 0:17 
QuestionTips for designing chat application for mobile devices Pin
tumyp-dev30-Jan-14 13:13
tumyp-dev30-Jan-14 13:13 
QuestionDesign efficiency Pin
Gregory Gadow23-Jan-14 3:22
Gregory Gadow23-Jan-14 3:22 
AnswerRe: Design efficiency Pin
José Amílcar Casimiro23-Jan-14 6:13
José Amílcar Casimiro23-Jan-14 6:13 
AnswerRe: Design efficiency Pin
jschell23-Jan-14 13:26
jschell23-Jan-14 13:26 
AnswerRe: Design efficiency Pin
Shameel27-Jan-14 3:09
professionalShameel27-Jan-14 3:09 
AnswerRe: Design efficiency Pin
Kornfeld Eliyahu Peter30-Jan-14 8:08
professionalKornfeld Eliyahu Peter30-Jan-14 8:08 
GeneralHave you ever used eXERD? Pin
Member 1050518322-Jan-14 15:39
Member 1050518322-Jan-14 15:39 
GeneralRe: Have you ever used eXERD? Pin
Member 105722145-Feb-14 23:08
Member 105722145-Feb-14 23:08 
QuestionPolling Architecture Suggestion Required Pin
Erpizn_1316-Jan-14 1:47
Erpizn_1316-Jan-14 1:47 
AnswerRe: Polling Architecture Suggestion Required Pin
Keld Ølykke20-Jan-14 10:52
Keld Ølykke20-Jan-14 10:52 
GeneralRe: Polling Architecture Suggestion Required Pin
Erpizn_1321-Jan-14 2:36
Erpizn_1321-Jan-14 2:36 
GeneralRe: Polling Architecture Suggestion Required Pin
Keld Ølykke21-Jan-14 12:15
Keld Ølykke21-Jan-14 12:15 
AnswerRe: Polling Architecture Suggestion Required Pin
Leng Vang30-Jan-14 6:20
Leng Vang30-Jan-14 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.