Click here to Skip to main content
15,849,829 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: How this can be done in Atomic way? Pin
samdevloper9-Mar-09 3:38
samdevloper9-Mar-09 3:38 
GeneralRe: How this can be done in Atomic way? Pin
samdevloper5-Mar-09 3:48
samdevloper5-Mar-09 3:48 
QuestionInterprocess communication Pin
carlop()3-Dec-08 23:07
carlop()3-Dec-08 23:07 
AnswerRe: Interprocess communication Pin
Eddy Vluggen16-Dec-08 23:22
professionalEddy Vluggen16-Dec-08 23:22 
QuestionAssertion vs. Exception Pin
CodingYoshi3-Dec-08 12:32
CodingYoshi3-Dec-08 12:32 
AnswerRe: Assertion vs. Exception Pin
Mark Churchill3-Dec-08 15:14
Mark Churchill3-Dec-08 15:14 
GeneralRe: Assertion vs. Exception Pin
CodingYoshi3-Dec-08 18:35
CodingYoshi3-Dec-08 18:35 
GeneralRe: Assertion vs. Exception Pin
Mark Churchill3-Dec-08 19:13
Mark Churchill3-Dec-08 19:13 
Ah ok, well I'll put in my 2c on your questions then.

1. Assertions and Exceptions are pretty different concepts. Assertions are a test that you absolutely expect to succeed, and indicates a design/breach of contract error if it fails. A failing assertion needs to perform an action, and this would commonly be throwing an exception (or getting a TraceListener to do something). I'd tend towards throwing an ArgumentException in these cases.

2. Trace is like Debug. Instead of the DEBUG conditional compilation constant, it is dependant on TRACE being defined (which is defined in release mode by default).

3. It won't compile. ReleaseResources can't see adapter or connection due to scoping. Even if you made these static, your method wouldn't be thread-safe.

4. IMO theres no need to "enterprise" up a DAL with all sorts of abstraction if you are doing simple enough things that could be handled by the built-in IDE databinding. If you do need a proper ORM solution, then coding one by hand with sufficient functionality is going to take a long time.


QuestionApplications, patterns and technikes based on behavior analysis. Pin
Ahmed Charfeddine3-Dec-08 1:10
Ahmed Charfeddine3-Dec-08 1:10 
QuestionReleasing .Net programs Pin
Tommy4U28-Nov-08 6:27
Tommy4U28-Nov-08 6:27 
AnswerRe: Releasing .Net programs Pin
Mark Churchill30-Nov-08 15:02
Mark Churchill30-Nov-08 15:02 
GeneralWow, what ever Pin
led mike1-Dec-08 6:22
led mike1-Dec-08 6:22 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 7:01
professionalPaul Conrad1-Dec-08 7:01 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 8:54
led mike1-Dec-08 8:54 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 8:57
professionalPaul Conrad1-Dec-08 8:57 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 9:01
led mike1-Dec-08 9:01 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 9:04
professionalPaul Conrad1-Dec-08 9:04 
AnswerRe: Releasing .Net programs Pin
Paul Conrad1-Dec-08 7:03
professionalPaul Conrad1-Dec-08 7:03 
QuestionDatabase transaction boundaries in three tier Pin
AliasElias27-Nov-08 3:32
AliasElias27-Nov-08 3:32 
AnswerRe: Database transaction boundaries in three tier Pin
Joe DiNatale1-Dec-08 6:58
Joe DiNatale1-Dec-08 6:58 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias2-Dec-08 2:47
AliasElias2-Dec-08 2:47 
AnswerRe: Database transaction boundaries in three tier Pin
CodingYoshi3-Dec-08 19:28
CodingYoshi3-Dec-08 19:28 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias3-Dec-08 22:37
AliasElias3-Dec-08 22:37 
GeneralRe: Database transaction boundaries in three tier Pin
CodingYoshi4-Dec-08 5:17
CodingYoshi4-Dec-08 5:17 
AnswerRe: Database transaction boundaries in three tier Pin
Hesham Amin9-Dec-08 8:38
Hesham Amin9-Dec-08 8:38 

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.