Click here to Skip to main content
11,645,489 members (69,607 online)

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, embarrasing 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: What this 'null' check doing here... Pin
Mohammed Hameed8-Jul-13 8:57
professionalMohammed Hameed8-Jul-13 8:57 
GeneralRe: What this 'null' check doing here... Pin
Trajan McGill8-Jul-13 5:34
memberTrajan McGill8-Jul-13 5:34 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed8-Jul-13 8:56
professionalMohammed Hameed8-Jul-13 8:56 
GeneralMessage Removed Pin
Brisingr Aerowing8-Jul-13 15:02
professionalBrisingr Aerowing8-Jul-13 15:02 
GeneralMessage Removed Pin
ProgramFOX8-Jul-13 23:42
member ProgramFOX8-Jul-13 23:42 
JokeRe: What this 'null' check doing here... Pin
ryanb319-Jul-13 4:19
memberryanb319-Jul-13 4:19 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:55
professionalMohammed Hameed10-Jul-13 19:55 
GeneralRe: What this 'null' check doing here... Pin
ryanb3111-Jul-13 1:32
memberryanb3111-Jul-13 1:32 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed11-Jul-13 1:35
professionalMohammed Hameed11-Jul-13 1:35 
JokeRe: What this 'null' check doing here... Pin
Lucian Gadau10-Jul-13 1:23
memberLucian Gadau10-Jul-13 1:23 
GeneralRe: What this 'null' check doing here... Pin
vonb9-Jul-13 1:35
professionalvonb9-Jul-13 1:35 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed9-Jul-13 1:39
professionalMohammed Hameed9-Jul-13 1:39 
RantRe: What this 'null' check doing here... Pin
Richard Deeming9-Jul-13 2:58
professionalRichard Deeming9-Jul-13 2:58 
GeneralRe: What this 'null' check doing here... Pin
vonb9-Jul-13 3:56
professionalvonb9-Jul-13 3:56 
This was just a simple implementation of more complex queries which I actually use

publc List<Employee> GetEmployees(int departmentId)
{
     return (from oRec in DataModel.Employees where oRec.DepartmentID == departmentId).ToList();
}
The signature is in building process.. Please wait...

GeneralRe: What this 'null' check doing here... Pin
Richard Deeming9-Jul-13 5:54
professionalRichard Deeming9-Jul-13 5:54 
GeneralRe: What this 'null' check doing here... Pin
David C. Thompson10-Jul-13 3:05
memberDavid C. Thompson10-Jul-13 3:05 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:39
professionalMohammed Hameed10-Jul-13 19:39 
GeneralRe: What this 'null' check doing here... Pin
David C. Thompson10-Jul-13 20:51
memberDavid C. Thompson10-Jul-13 20:51 
GeneralRe: What this 'null' check doing here... Pin
Mark Starr10-Jul-13 4:25
memberMark Starr10-Jul-13 4:25 
GeneralRe: What this 'null' check doing here... Pin
KP Lee10-Jul-13 20:19
memberKP Lee10-Jul-13 20:19 
GeneralRe: What this 'null' check doing here... Pin
Mark Starr11-Jul-13 5:18
memberMark Starr11-Jul-13 5:18 
GeneralRe: What this 'null' check doing here... Pin
KP Lee15-Jul-13 20:32
memberKP Lee15-Jul-13 20:32 
GeneralRe: What this 'null' check doing here... Pin
Mark Starr16-Jul-13 5:20
memberMark Starr16-Jul-13 5:20 
GeneralRe: What this 'null' check doing here... Pin
silverfox200110-Jul-13 5:33
membersilverfox200110-Jul-13 5:33 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:35
professionalMohammed Hameed10-Jul-13 19:35 
GeneralRe: What this 'null' check doing here... Pin
RafagaX10-Jul-13 5:43
memberRafagaX10-Jul-13 5:43 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:43
professionalMohammed Hameed10-Jul-13 19:43 
GeneralRe: What this 'null' check doing here... Pin
Michael Losinski10-Jul-13 5:59
memberMichael Losinski10-Jul-13 5:59 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:45
professionalMohammed Hameed10-Jul-13 19:45 
GeneralRe: What this 'null' check doing here... Pin
KP Lee10-Jul-13 21:01
memberKP Lee10-Jul-13 21:01 
GeneralRe: What this 'null' check doing here... Pin
Michael Losinski11-Jul-13 3:40
memberMichael Losinski11-Jul-13 3:40 
GeneralRe: What this 'null' check doing here... Pin
Nilesh Shahane10-Jul-13 8:07
memberNilesh Shahane10-Jul-13 8:07 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:47
professionalMohammed Hameed10-Jul-13 19:47 
GeneralRe: What this 'null' check doing here... Pin
MainFrameMan_ALIVE_AND_WELL$$10-Jul-13 10:03
memberMainFrameMan_ALIVE_AND_WELL$$10-Jul-13 10:03 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 19:48
professionalMohammed Hameed10-Jul-13 19:48 
GeneralRe: What this 'null' check doing here... Pin
KP Lee10-Jul-13 21:13
memberKP Lee10-Jul-13 21:13 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed10-Jul-13 21:15
professionalMohammed Hameed10-Jul-13 21:15 
GeneralRe: What this 'null' check doing here... Pin
Member 467320212-Jul-13 12:56
memberMember 467320212-Jul-13 12:56 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed14-Jul-13 19:46
professionalMohammed Hameed14-Jul-13 19:46 
GeneralRe: What this 'null' check doing here... Pin
Chad3F13-Jul-13 19:17
memberChad3F13-Jul-13 19:17 
GeneralRe: What this 'null' check doing here... Pin
Mohammed Hameed14-Jul-13 19:45
professionalMohammed Hameed14-Jul-13 19:45 
GeneralRe: What this 'null' check doing here... Pin
Chad3F14-Jul-13 19:55
memberChad3F14-Jul-13 19:55 
GeneralMore mining from our deep seam of WTF's Pin
Rob Grainger1-Jul-13 3:17
memberRob Grainger1-Jul-13 3:17 
GeneralRe: More mining from our deep seam of WTF's Pin
jim lahey1-Jul-13 4:13
memberjim lahey1-Jul-13 4:13 
GeneralRe: More mining from our deep seam of WTF's Pin
Rob Grainger1-Jul-13 4:54
memberRob Grainger1-Jul-13 4:54 
GeneralRe: More mining from our deep seam of WTF's Pin
charlieg1-Jul-13 5:10
membercharlieg1-Jul-13 5:10 
JokeRe: More mining from our deep seam of WTF's Pin
jim lahey2-Jul-13 22:58
memberjim lahey2-Jul-13 22:58 
GeneralRe: More mining from our deep seam of WTF's Pin
Nagy Vilmos3-Jul-13 2:58
professionalNagy Vilmos3-Jul-13 2:58 
GeneralRe: More mining from our deep seam of WTF's Pin
Rob Grainger3-Jul-13 22:53
memberRob Grainger3-Jul-13 22:53 
GeneralRe: More mining from our deep seam of WTF's Pin
vonb3-Jul-13 23:35
professionalvonb3-Jul-13 23:35 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 4 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid