Click here to Skip to main content
11,492,962 members (64,934 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: Yes - It was me Pin
Marco Bertschi16-Dec-13 5:31
professionalMarco Bertschi16-Dec-13 5:31 
GeneralRe: Yes - It was me Pin
Manfred R. Bihy16-Dec-13 5:35
professionalManfred R. Bihy16-Dec-13 5:35 
QuestionRe: Yes - It was me Pin
Pablo Aliskevicius16-Dec-13 5:40
memberPablo Aliskevicius16-Dec-13 5:40 
GeneralRe: Yes - It was me Pin
Albert Holguin28-Dec-13 13:10
memberAlbert Holguin28-Dec-13 13:10 
GeneralRe: Yes - It was me Pin
Albert Holguin28-Dec-13 13:08
memberAlbert Holguin28-Dec-13 13:08 
GeneralRe: Yes - It was me Pin
charlieg15-Jan-14 0:17
membercharlieg15-Jan-14 0:17 
GeneralYes I know it was me who wrote that... Pin
GuyThiebaut10-Dec-13 6:51
professionalGuyThiebaut10-Dec-13 6:51 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming10-Dec-13 6:58
professionalRichard Deeming10-Dec-13 6:58 
GeneralRe: Yes I know it was me who wrote that... Pin
GuyThiebaut10-Dec-13 7:00
professionalGuyThiebaut10-Dec-13 7:00 
GeneralRe: Yes I know it was me who wrote that... Pin
BobJanova10-Dec-13 7:40
memberBobJanova10-Dec-13 7:40 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming10-Dec-13 7:50
professionalRichard Deeming10-Dec-13 7:50 
GeneralRe: Yes I know it was me who wrote that... Pin
BobJanova10-Dec-13 7:59
memberBobJanova10-Dec-13 7:59 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming10-Dec-13 8:01
professionalRichard Deeming10-Dec-13 8:01 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff10-Dec-13 9:34
protectorOriginalGriff10-Dec-13 9:34 
Nasty! Unsafe code...
Please, try to avoid it, especially when it can be done without it so much more clearly:
if (((BitConverter.ToInt32(Encoding.ASCII.GetBytes(item), 0) & 6250335) ^ 6243920) == 0)

GeneralRe: Yes I know it was me who wrote that... Pin
CDP180210-Dec-13 18:09
memberCDP180210-Dec-13 18:09 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff10-Dec-13 22:20
protectorOriginalGriff10-Dec-13 22:20 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia10-Dec-13 21:36
memberArgonia10-Dec-13 21:36 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 3:27
professionalRichard Deeming11-Dec-13 3:27 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff11-Dec-13 4:00
protectorOriginalGriff11-Dec-13 4:00 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 4:27
professionalRichard Deeming11-Dec-13 4:27 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff11-Dec-13 4:46
protectorOriginalGriff11-Dec-13 4:46 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia11-Dec-13 4:57
memberArgonia11-Dec-13 4:57 
GeneralRe: Yes I know it was me who wrote that... Pin
OriginalGriff11-Dec-13 5:57
protectorOriginalGriff11-Dec-13 5:57 
GeneralRe: Yes I know it was me who wrote that... [modified] Pin
Argonia11-Dec-13 6:04
memberArgonia11-Dec-13 6:04 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 6:13
professionalRichard Deeming11-Dec-13 6:13 
GeneralRe: Yes I know it was me who wrote that... Pin
Argonia11-Dec-13 6:16
memberArgonia11-Dec-13 6:16 
GeneralRe: Yes I know it was me who wrote that... Pin
Rob Grainger17-Dec-13 2:30
memberRob Grainger17-Dec-13 2:30 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming11-Dec-13 5:09
professionalRichard Deeming11-Dec-13 5:09 
GeneralRe: Yes I know it was me who wrote that... Pin
Jörgen Andersson11-Dec-13 21:16
memberJörgen Andersson11-Dec-13 21:16 
GeneralRe: Yes I know it was me who wrote that... Pin
ledtech320-Dec-13 16:13
memberledtech320-Dec-13 16:13 
GeneralRe: Yes I know it was me who wrote that... Pin
VUnreal15-Jan-14 11:37
memberVUnreal15-Jan-14 11:37 
GeneralRe: Yes I know it was me who wrote that... Pin
phil.o13-Dec-13 0:03
memberphil.o13-Dec-13 0:03 
GeneralRe: Yes I know it was me who wrote that... Pin
Nagy Vilmos13-Dec-13 0:27
professionalNagy Vilmos13-Dec-13 0:27 
GeneralRe: Yes I know it was me who wrote that... Pin
Richard Deeming13-Dec-13 2:36
professionalRichard Deeming13-Dec-13 2:36 
GeneralRe: Yes I know it was me who wrote that... Pin
Nicholas Marty18-Dec-13 5:12
professionalNicholas Marty18-Dec-13 5:12 
GeneralDays Of Week Pin
محمد م. محمد29-Nov-13 23:10
memberمحمد م. محمد29-Nov-13 23:10 
GeneralRe: Days Of Week Pin
Marco Bertschi30-Nov-13 0:54
professionalMarco Bertschi30-Nov-13 0:54 
GeneralRe: Days Of Week Pin
محمد م. محمد30-Nov-13 1:09
memberمحمد م. محمد30-Nov-13 1:09 
GeneralRe: Days Of Week Pin
Marco Bertschi30-Nov-13 1:14
professionalMarco Bertschi30-Nov-13 1:14 
GeneralRe: Days Of Week Pin
محمد م. محمد30-Nov-13 1:19
memberمحمد م. محمد30-Nov-13 1:19 
GeneralRe: Days Of Week Pin
Marco Bertschi30-Nov-13 1:37
professionalMarco Bertschi30-Nov-13 1:37 
GeneralRe: Days Of Week Pin
PIEBALDconsult30-Nov-13 6:37
professionalPIEBALDconsult30-Nov-13 6:37 
GeneralRe: Days Of Week Pin
Maximilien30-Nov-13 3:03
memberMaximilien30-Nov-13 3:03 
GeneralRe: Days Of Week Pin
Collin Jasnoch2-Dec-13 9:21
professionalCollin Jasnoch2-Dec-13 9:21 
GeneralRe: Days Of Week Pin
Richard Deeming2-Dec-13 1:35
professionalRichard Deeming2-Dec-13 1:35 
GeneralRe: Days Of Week Pin
محمد م. محمد2-Dec-13 3:40
memberمحمد م. محمد2-Dec-13 3:40 
GeneralRe: Days Of Week Pin
Richard Deeming2-Dec-13 3:52
professionalRichard Deeming2-Dec-13 3:52 
GeneralRe: Days Of Week Pin
DJ van Wyk11-Dec-13 20:52
professionalDJ van Wyk11-Dec-13 20:52 
GeneralRe: Days Of Week Pin
PIEBALDconsult30-Nov-13 6:47
professionalPIEBALDconsult30-Nov-13 6:47 
GeneralRe: Days Of Week Pin
Argonia2-Dec-13 2:00
memberArgonia2-Dec-13 2:00 

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
Web04 | 2.8.150520.1 | Last Updated 28 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid