Click here to Skip to main content
15,897,891 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: How this can be done in Atomic way? Pin
samdevloper9-Mar-09 2:38
samdevloper9-Mar-09 2:38 
GeneralRe: How this can be done in Atomic way? Pin
samdevloper5-Mar-09 2:48
samdevloper5-Mar-09 2:48 
QuestionInterprocess communication Pin
carlop()3-Dec-08 22:07
carlop()3-Dec-08 22:07 
AnswerRe: Interprocess communication Pin
Eddy Vluggen16-Dec-08 22:22
professionalEddy Vluggen16-Dec-08 22:22 
QuestionAssertion vs. Exception Pin
CodingYoshi3-Dec-08 11:32
CodingYoshi3-Dec-08 11:32 
AnswerRe: Assertion vs. Exception Pin
Mark Churchill3-Dec-08 14:14
Mark Churchill3-Dec-08 14:14 
GeneralRe: Assertion vs. Exception Pin
CodingYoshi3-Dec-08 17:35
CodingYoshi3-Dec-08 17:35 
GeneralRe: Assertion vs. Exception Pin
Mark Churchill3-Dec-08 18:13
Mark Churchill3-Dec-08 18: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 0:10
Ahmed Charfeddine3-Dec-08 0:10 
QuestionReleasing .Net programs Pin
Tommy4U28-Nov-08 5:27
Tommy4U28-Nov-08 5:27 
AnswerRe: Releasing .Net programs Pin
Mark Churchill30-Nov-08 14:02
Mark Churchill30-Nov-08 14:02 
GeneralWow, what ever Pin
led mike1-Dec-08 5:22
led mike1-Dec-08 5:22 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 6:01
professionalPaul Conrad1-Dec-08 6:01 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 7:54
led mike1-Dec-08 7:54 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 7:57
professionalPaul Conrad1-Dec-08 7:57 
GeneralRe: Wow, what ever Pin
led mike1-Dec-08 8:01
led mike1-Dec-08 8:01 
GeneralRe: Wow, what ever Pin
Paul Conrad1-Dec-08 8:04
professionalPaul Conrad1-Dec-08 8:04 
AnswerRe: Releasing .Net programs Pin
Paul Conrad1-Dec-08 6:03
professionalPaul Conrad1-Dec-08 6:03 
QuestionDatabase transaction boundaries in three tier Pin
AliasElias27-Nov-08 2:32
AliasElias27-Nov-08 2:32 
AnswerRe: Database transaction boundaries in three tier Pin
Joe DiNatale1-Dec-08 5:58
Joe DiNatale1-Dec-08 5:58 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias2-Dec-08 1:47
AliasElias2-Dec-08 1:47 
AnswerRe: Database transaction boundaries in three tier Pin
CodingYoshi3-Dec-08 18:28
CodingYoshi3-Dec-08 18:28 
GeneralRe: Database transaction boundaries in three tier Pin
AliasElias3-Dec-08 21:37
AliasElias3-Dec-08 21:37 
GeneralRe: Database transaction boundaries in three tier Pin
CodingYoshi4-Dec-08 4:17
CodingYoshi4-Dec-08 4:17 
AnswerRe: Database transaction boundaries in three tier Pin
Hesham Amin9-Dec-08 7:38
Hesham Amin9-Dec-08 7: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.