Click here to Skip to main content
12,824,787 members (41,825 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, 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: DateTime.Now vs. GetSystemTime Pin
Jörgen Andersson2-Jun-14 22:11
professionalJörgen Andersson2-Jun-14 22:11 
GeneralRe: DateTime.Now vs. GetSystemTime Pin
Bernhard Hiller2-Jun-14 22:35
professionalBernhard Hiller2-Jun-14 22:35 
GeneralRe: DateTime.Now vs. GetSystemTime Pin
Jörgen Andersson2-Jun-14 22:56
professionalJörgen Andersson2-Jun-14 22:56 
GeneralRe: DateTime.Now vs. GetSystemTime Pin
BobJanova2-Jun-14 1:51
memberBobJanova2-Jun-14 1:51 
GeneralRe: DateTime.Now vs. GetSystemTime Pin
Rob Philpott10-Jun-14 6:20
professionalRob Philpott10-Jun-14 6:20 
GeneralRe: DateTime.Now vs. GetSystemTime Pin
Eddy Vluggen6-Jun-14 6:11
professionalEddy Vluggen6-Jun-14 6:11 
GeneralSuccessfully writing to a string literal Pin
Indivara19-May-14 0:44
professionalIndivara19-May-14 0:44 
GeneralRe: Successfully writing to a string literal Pin
Freak3019-May-14 2:45
memberFreak3019-May-14 2:45 
The assignment arg1[i] = '\0'; wouldn't work with a const char * (at least it shouldn't). Wink | ;)

Also, shouldn't a string literal be implicitely cont char * and create a compiler error when being passed to a function that expects a char * as parameter?
The good thing about pessimism is, that you are always either right or pleasently surprised.

GeneralRe: Successfully writing to a string literal Pin
Indivara19-May-14 6:17
professionalIndivara19-May-14 6:17 
GeneralRe: Successfully writing to a string literal Pin
newton.saber19-May-14 2:45
membernewton.saber19-May-14 2:45 
GeneralRe: Successfully writing to a string literal Pin
Indivara19-May-14 6:15
professionalIndivara19-May-14 6:15 
GeneralRe: Successfully writing to a string literal Pin
newton.saber19-May-14 6:34
membernewton.saber19-May-14 6:34 
GeneralThe Exception to the C# Rules Pin
Brady Kelly15-May-14 19:55
memberBrady Kelly15-May-14 19:55 
GeneralRe: The Exception to the C# Rules Pin
Bernhard Hiller15-May-14 22:54
professionalBernhard Hiller15-May-14 22:54 
GeneralRe: The Exception to the C# Rules Pin
Shameel16-May-14 1:53
professionalShameel16-May-14 1:53 
GeneralRe: The Exception to the C# Rules Pin
Keith Barrow19-May-14 7:28
mentorKeith Barrow19-May-14 7:28 
GeneralRe: The Exception to the C# Rules Pin
Bernhard Hiller19-May-14 23:46
professionalBernhard Hiller19-May-14 23:46 
GeneralRe: The Exception to the C# Rules Pin
cpkilekofp19-Jun-14 10:50
membercpkilekofp19-Jun-14 10:50 
GeneralVB6 code that emits VB6 code Pin
MrChug7-May-14 17:12
memberMrChug7-May-14 17:12 
GeneralI can't set title for this post!!! Pin
Meysam Tolouee2-May-14 19:45
memberMeysam Tolouee2-May-14 19:45 
GeneralRe: I can't set title for this post!!! <- then what's that? You trying to confuse me? Pin
Eddy Vluggen3-May-14 9:25
professionalEddy Vluggen3-May-14 9:25 
GeneralRe: I can't set title for this post!!! Pin
PIEBALDconsult3-May-14 13:14
memberPIEBALDconsult3-May-14 13:14 
GeneralRe: I can't set title for this post!!! Pin
cpkilekofp19-Jun-14 12:05
membercpkilekofp19-Jun-14 12:05 
GeneralSome useful extension methods Pin
Brisingr Aerowing2-May-14 14:41
professionalBrisingr Aerowing2-May-14 14:41 
GeneralRe: Some useful extension methods Pin
PIEBALDconsult2-May-14 15:50
memberPIEBALDconsult2-May-14 15:50 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 28 Mar 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid