Click here to Skip to main content
15,895,746 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: The Code Repeater Pin
Stefan_Lang14-Mar-12 2:56
Stefan_Lang14-Mar-12 2:56 
GeneralRe: The Code Repeater Pin
Rahul Rajat Singh15-Mar-12 0:37
professionalRahul Rajat Singh15-Mar-12 0:37 
GeneralRe: The Code Repeater Pin
walterhevedeich15-Mar-12 19:59
professionalwalterhevedeich15-Mar-12 19:59 
GeneralRe: The Code Repeater Pin
SASS_Shooter1-May-12 6:07
SASS_Shooter1-May-12 6:07 
GeneralRe: The Code Repeater Pin
Sander Rossel19-Mar-12 11:21
professionalSander Rossel19-Mar-12 11:21 
GeneralRe: The Code Repeater Pin
JeremyBob26-Mar-12 22:26
JeremyBob26-Mar-12 22:26 
GeneralRe: The Code Repeater Pin
Stefan_Lang28-Mar-12 0:28
Stefan_Lang28-Mar-12 0:28 
GeneralN-Tier architecture PinPopular
virang_2112-Mar-12 18:08
virang_2112-Mar-12 18:08 
I inherited one project which has taken n-tier architecture very seriously. First of all it is using WCF by adding reference to the WCF service class directly. There is no service. It is used as a simple class reference. ( Big Fail !!! )

The thing that is really pissing me off is the level of tiers created within the project that has no relevance whatsoever.

UI => BL.Service => BL => DAL=> Database

In this chain all BL.Service Classes and BL classes do is to call methods from its corresponding class above. No logic whatsoever in those one. Just call the method and return value.

UI

C#
dsPClayL = _IWCFPClayL.GetItemInfo(ConfigurationManager.AppSettings["FacilityId"].ToString(), string.Empty);


BL.Service

C#
public DataSet GetItemInfo(string strFaciId, string flag)
        {
            return _objBLPClayL.GetItemInfo(strFaciId, flag );
        }

BL

C#
public DataSet GetItemInfo(string strFaciId , string flag)
        {
            return _objDLPClayL.GetItemInfo(strFaciId, flag);
        }


DAL
This is the one where it connect to database and process request.


Why in the world do you need BL.Service and BL tiers when all it is doing is calling method in DAL...Mad | :mad:
Zen and the art of software maintenance : rm -rf *

Math is like love : a simple idea but it can get complicated.

GeneralRe: N-Tier architecture Pin
RobCroll12-Mar-12 18:42
RobCroll12-Mar-12 18:42 
GeneralRe: N-Tier architecture Pin
virang_2112-Mar-12 19:06
virang_2112-Mar-12 19:06 
JokeRe: N-Tier architecture Pin
Shameel14-Mar-12 2:03
professionalShameel14-Mar-12 2:03 
GeneralRe: N-Tier architecture Pin
StM0n12-Mar-12 19:09
StM0n12-Mar-12 19:09 
GeneralRe: N-Tier architecture Pin
CDP180212-Mar-12 21:58
CDP180212-Mar-12 21:58 
GeneralRe: N-Tier architecture Pin
krumia17-Mar-12 20:44
krumia17-Mar-12 20:44 
GeneralRe: N-Tier architecture Pin
CDP180218-Mar-12 0:40
CDP180218-Mar-12 0:40 
GeneralRe: N-Tier architecture Pin
Stefan_Lang14-Mar-12 2:58
Stefan_Lang14-Mar-12 2:58 
GeneralRe: N-Tier architecture Pin
Nitin20TechBLR15-Mar-12 18:26
Nitin20TechBLR15-Mar-12 18:26 
GeneralMicrosoft "help" Pin
Alan Balkany7-Mar-12 8:28
Alan Balkany7-Mar-12 8:28 
GeneralRe: Microsoft "help" Pin
Stefan_Lang8-Mar-12 3:41
Stefan_Lang8-Mar-12 3:41 
GeneralRe: Microsoft "help" Pin
cruest13-Mar-12 3:23
cruest13-Mar-12 3:23 
GeneralRe: Microsoft "help" Pin
SASS_Shooter1-May-12 6:14
SASS_Shooter1-May-12 6:14 
GeneralRe: Microsoft "help" Pin
Nelek10-Mar-12 15:18
protectorNelek10-Mar-12 15:18 
GeneralRe: Microsoft "help" Pin
Gary Wheeler13-Mar-12 0:35
Gary Wheeler13-Mar-12 0:35 
GeneralRe: Microsoft "help" Pin
BrainiacV13-Mar-12 4:26
BrainiacV13-Mar-12 4:26 
GeneralRe: Microsoft "help" Pin
Fabio Franco13-Mar-12 6:42
professionalFabio Franco13-Mar-12 6:42 

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.