Click here to Skip to main content
11,713,845 members (91,382 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.

 
GeneralKill me Pin
PhilLenoir28-Aug-14 9:04
memberPhilLenoir28-Aug-14 9:04 
GeneralRe: Kill me Pin
Gary R. Wheeler7-Sep-14 2:38
memberGary R. Wheeler7-Sep-14 2:38 
GeneralWhat is null equal to? Pin
sloosecannon25-Aug-14 5:59
membersloosecannon25-Aug-14 5:59 
GeneralRe: What is null equal to? Pin
PIEBALDconsult25-Aug-14 6:27
memberPIEBALDconsult25-Aug-14 6:27 
GeneralRe: What is null equal to? Pin
mark merrens25-Aug-14 6:56
membermark merrens25-Aug-14 6:56 
AnswerRe: What is null equal to? Pin
Afzaal Ahmad Zeeshan25-Aug-14 6:59
professionalAfzaal Ahmad Zeeshan25-Aug-14 6:59 
GeneralRe: What is null equal to? Pin
sloosecannon25-Aug-14 7:45
membersloosecannon25-Aug-14 7:45 
GeneralRe: What is null equal to? Pin
OriginalGriff25-Aug-14 8:15
protectorOriginalGriff25-Aug-14 8:15 
GeneralRe: What is null equal to? Pin
Brisingr Aerowing25-Aug-14 12:06
professionalBrisingr Aerowing25-Aug-14 12:06 
GeneralRe: What is null equal to? Pin
sloosecannon25-Aug-14 18:01
membersloosecannon25-Aug-14 18:01 
GeneralRe: What is null equal to? Pin
Rob Grainger27-Aug-14 5:47
memberRob Grainger27-Aug-14 5:47 
GeneralRe: What is null equal to? Pin
Rob Grainger28-Sep-14 23:20
memberRob Grainger28-Sep-14 23:20 
GeneralRe: What is null equal to? Pin
Paulo Zemek25-Aug-14 8:49
professionalPaulo Zemek25-Aug-14 8:49 
GeneralRe: What is null equal to? Pin
V.25-Aug-14 19:43
professionalV.25-Aug-14 19:43 
euhm, isn't

int i;

never null (it can't be null, that's where int? i is for Wink | ;-) )
(in C# that is)

(just double checked, you cannot even compile if not initialized, in the immediate window it initialized to 0)
V.

(MQOTD rules and previous solutions)

JokeRe: What is null equal to? Pin
Vark11126-Aug-14 8:23
memberVark11126-Aug-14 8:23 
GeneralRe: What is null equal to? Pin
sloosecannon27-Aug-14 3:40
membersloosecannon27-Aug-14 3:40 
GeneralRe: What is null equal to? Pin
Eddy Vluggen27-Aug-14 7:33
professionalEddy Vluggen27-Aug-14 7:33 
GeneralRe: What is null equal to? Pin
sloosecannon27-Aug-14 7:41
membersloosecannon27-Aug-14 7:41 
GeneralRe: What is null equal to? Pin
Richard Deeming27-Aug-14 7:53
professionalRichard Deeming27-Aug-14 7:53 
GeneralRe: What is null equal to? Pin
jeron126-Aug-14 12:03
memberjeron126-Aug-14 12:03 
GeneralRe: What is null equal to? Pin
sloosecannon27-Aug-14 3:36
membersloosecannon27-Aug-14 3:36 
GeneralRe: What is null equal to? Pin
Rob Grainger27-Aug-14 5:49
memberRob Grainger27-Aug-14 5:49 
GeneralRe: What is null equal to? Pin
ColborneGreg31-Aug-14 7:39
memberColborneGreg31-Aug-14 7:39 
GeneralRe: What is null equal to? Pin
sankarsan parida4-Sep-14 0:22
professionalsankarsan parida4-Sep-14 0:22 
GeneralRe: What is null equal to? Pin
Munchies_Matt10-Sep-14 12:59
memberMunchies_Matt10-Sep-14 12:59 
GeneralGive a right username and a right password and you're in... Pin
yiangos25-Aug-14 4:38
professionalyiangos25-Aug-14 4:38 
GeneralRe: Give a right username and a right password and you're in... Pin
tgrt25-Aug-14 4:42
membertgrt25-Aug-14 4:42 
GeneralRe: Give a right username and a right password and you're in... Pin
PIEBALDconsult25-Aug-14 4:47
memberPIEBALDconsult25-Aug-14 4:47 
GeneralRe: Give a right username and a right password and you're in... Pin
BobJanova1-Sep-14 1:48
memberBobJanova1-Sep-14 1:48 
GeneralRe: Give a right username and a right password and you're in... Pin
JMK-NI25-Aug-14 4:53
memberJMK-NI25-Aug-14 4:53 
GeneralRe: Give a right username and a right password and you're in... Pin
Ian Shlasko25-Aug-14 4:55
professionalIan Shlasko25-Aug-14 4:55 
GeneralRe: Give a right username and a right password and you're in... Pin
yiangos25-Aug-14 5:41
professionalyiangos25-Aug-14 5:41 
GeneralRe: Give a right username and a right password and you're in... Pin
dexterama25-Aug-14 5:06
memberdexterama25-Aug-14 5:06 
GeneralRe: Give a right username and a right password and you're in... Pin
yiangos25-Aug-14 5:50
professionalyiangos25-Aug-14 5:50 
GeneralRe: Give a right username and a right password and you're in... Pin
PIEBALDconsult25-Aug-14 5:56
memberPIEBALDconsult25-Aug-14 5:56 
GeneralRe: Give a right username and a right password and you're in... Pin
yiangos25-Aug-14 6:05
professionalyiangos25-Aug-14 6:05 
GeneralRe: Give a right username and a right password and you're in... Pin
Marc Koutzarov29-Aug-14 21:44
professionalMarc Koutzarov29-Aug-14 21:44 
GeneralRe: Give a right username and a right password and you're in... Pin
yiangos31-Aug-14 6:38
professionalyiangos31-Aug-14 6:38 
GeneralAndroid gravity constants Pin
Indivara18-Aug-14 22:04
professionalIndivara18-Aug-14 22:04 
GeneralRe: Android gravity constants Pin
Bernhard Hiller19-Aug-14 0:08
professionalBernhard Hiller19-Aug-14 0:08 
GeneralRe: Android gravity constants Pin
Richard Deeming19-Aug-14 1:47
professionalRichard Deeming19-Aug-14 1:47 
GeneralRe: Android gravity constants Pin
KP Lee21-Aug-14 17:57
memberKP Lee21-Aug-14 17:57 
GeneralRe: Android gravity constants Pin
Sander Rossel19-Aug-14 1:49
professionalSander Rossel19-Aug-14 1:49 
GeneralRe: Android gravity constants Pin
Brisingr Aerowing19-Aug-14 5:00
professionalBrisingr Aerowing19-Aug-14 5:00 
GeneralRe: Android gravity constants Pin
KP Lee21-Aug-14 18:24
memberKP Lee21-Aug-14 18:24 
GeneralThe lasting effects of the Unix epoch Pin
PIEBALDconsult10-Aug-14 12:32
memberPIEBALDconsult10-Aug-14 12:32 
GeneralRe: The lasting effects of the Unix epoch Pin
Rob Grainger13-Aug-14 23:26
memberRob Grainger13-Aug-14 23:26 
GeneralThe Magician's String, what you see is not what you get. Pin
Nicolas Dorier10-Aug-14 10:34
professionalNicolas Dorier10-Aug-14 10:34 
GeneralRe: The Magician's String, what you see is not what you get. Pin
Brisingr Aerowing10-Aug-14 11:28
professionalBrisingr Aerowing10-Aug-14 11:28 
GeneralRe: The Magician's String, what you see is not what you get. Pin
PIEBALDconsult10-Aug-14 11:55
memberPIEBALDconsult10-Aug-14 11:55 

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
Web02 | 2.8.150819.1 | Last Updated 2 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid