Click here to Skip to main content
15,914,255 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionSpecification Doc Assembly Pin
Brad Bruce22-Mar-08 8:20
Brad Bruce22-Mar-08 8:20 
GeneralEmpty strings to null: A declarative approach Pin
Brady Kelly19-Mar-08 0:09
Brady Kelly19-Mar-08 0:09 
GeneralRe: Empty strings to null: A declarative approach Pin
led mike19-Mar-08 5:12
led mike19-Mar-08 5:12 
GeneralRe: Empty strings to null: A declarative approach Pin
Brady Kelly19-Mar-08 5:31
Brady Kelly19-Mar-08 5:31 
GeneralRe: Empty strings to null: A declarative approach Pin
led mike19-Mar-08 6:10
led mike19-Mar-08 6:10 
GeneralRe: Empty strings to null: A declarative approach Pin
Brady Kelly19-Mar-08 7:24
Brady Kelly19-Mar-08 7:24 
GeneralRe: Empty strings to null: A declarative approach Pin
Brady Kelly19-Mar-08 7:56
Brady Kelly19-Mar-08 7:56 
GeneralRe: Empty strings to null: A declarative approach Pin
Pete O'Hanlon22-Mar-08 9:37
mvePete O'Hanlon22-Mar-08 9:37 
Questionhow to develop multi user desktop application Pin
moobo18-Mar-08 21:12
moobo18-Mar-08 21:12 
Answer[Cross Post] Re: how to develop multi user desktop application Pin
Scott Dorman19-Mar-08 3:43
professionalScott Dorman19-Mar-08 3:43 
GeneralELF parser Pin
Ravinder Are18-Mar-08 19:54
Ravinder Are18-Mar-08 19:54 
GeneralDocument Archiving Pin
Brady Kelly17-Mar-08 23:34
Brady Kelly17-Mar-08 23:34 
GeneralRe: Document Archiving Pin
Pete O'Hanlon18-Mar-08 1:53
mvePete O'Hanlon18-Mar-08 1:53 
GeneralRe: Document Archiving Pin
Brady Kelly18-Mar-08 2:09
Brady Kelly18-Mar-08 2:09 
GeneralRe: Document Archiving Pin
Pete O'Hanlon18-Mar-08 3:22
mvePete O'Hanlon18-Mar-08 3:22 
GeneralRe: Document Archiving Pin
Brady Kelly18-Mar-08 5:10
Brady Kelly18-Mar-08 5:10 
GeneralVisio UML - add to the built in types. Pin
DanB198317-Mar-08 12:01
DanB198317-Mar-08 12:01 
GeneralWeb Service for DataBase call Pin
lokeshgupta1314-Mar-08 6:37
lokeshgupta1314-Mar-08 6:37 
GeneralRe: Web Service for DataBase call Pin
Mark Churchill16-Mar-08 1:15
Mark Churchill16-Mar-08 1:15 
GeneralRe: Web Service for DataBase call Pin
Rob Philpott17-Mar-08 2:36
Rob Philpott17-Mar-08 2:36 
GeneralASP.net 3.5 and SQL Server Reporting Pin
camby7512-Mar-08 9:27
camby7512-Mar-08 9:27 
GeneralRe: ASP.net 3.5 and SQL Server Reporting Pin
pmarfleet16-Mar-08 1:54
pmarfleet16-Mar-08 1:54 
GeneralIntegration services Pin
sprague29511-Mar-08 11:31
sprague29511-Mar-08 11:31 
We have to create some integration web services and were thinking about best practices. Should we favor flattening out the object model or be verbose (leave less room for interpretation/error)?


Example 1. Complex Types – The employeeListItem would be used to provide summary information about the employees. The salaryEmployee and hourlyEmployee would be used to provide details.

<employeeListItem>
<employeeId/>
<firstname/>
<lastname/>
<type/> (‘Salary’ or ‘Hourly’)
</employeeListItem >

<salaryEmployee>
<employeeId/>
<firstname/>
<lastname/>
<dateOfHire/>
<officeId/>
<salary/>
</salaryEmployee >

<hourlyEmployee>
<employeeId/>
<firstname/>
<lastname/>
<dateOfHire/>
<officeId/>
<hourlyrate/>
<hoursPerWeek/>
</ hourlyEmployee >

Example 2. Flatten objects – Just one type here all the details are provided in one object. When an employee is of type ‘Salary’ the ‘hourlyRate’ and ‘hoursPerWeek’ will be unused.

<employee>
<employeeId/>
<firstname/>
<lastname/>
<officeId/>
<type/>(‘Salary’ or ‘Hourly’)
<salary/>
<hourlyRate/>
<hoursPerWeek/>
</ employee >


Of course our objects are not as simple as this example but this general idea. So what would you guys favor 1 type or 3 types in this scenario?
GeneralRe: Integration services Pin
Pete O'Hanlon11-Mar-08 11:44
mvePete O'Hanlon11-Mar-08 11:44 
GeneralArchitecture 101.... Pin
daniel.byrne11-Mar-08 7:36
daniel.byrne11-Mar-08 7:36 

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.