Click here to Skip to main content
15,867,975 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.

 
GeneralCase closed: NULLs are somehow valid in strings now? Pin
djdanlib25-Aug-10 10:03
djdanlib25-Aug-10 10:03 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
AspDotNetDev25-Aug-10 10:35
protectorAspDotNetDev25-Aug-10 10:35 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
PIEBALDconsult25-Aug-10 15:10
mvePIEBALDconsult25-Aug-10 15:10 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
Luc Pattyn25-Aug-10 16:59
sitebuilderLuc Pattyn25-Aug-10 16:59 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
PIEBALDconsult25-Aug-10 17:44
mvePIEBALDconsult25-Aug-10 17:44 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
CDP180226-Aug-10 1:02
CDP180226-Aug-10 1:02 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
Dave Calkins26-Aug-10 11:15
Dave Calkins26-Aug-10 11:15 
GeneralRe: Case closed: NULLs are somehow valid in strings now? Pin
Stephen Hewitt27-Aug-10 20:30
Stephen Hewitt27-Aug-10 20:30 
Nothing's wrong with strings that can contain embedded NULLs. The fact that NULL terminated strings are so popular is mainly historic. There are times when it's handy or even necessary for a string to contain embedded NULLs, for example the Win32 SHFileOperation[^] function uses strings that have embedded NULLs.
 
Steve

GeneralBeginner's Shame: Manually Draw Characters Pin
AspDotNetDev25-Aug-10 8:26
protectorAspDotNetDev25-Aug-10 8:26 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
josda100025-Aug-10 9:34
josda100025-Aug-10 9:34 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
AspDotNetDev25-Aug-10 10:30
protectorAspDotNetDev25-Aug-10 10:30 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
Dave Calkins26-Aug-10 11:18
Dave Calkins26-Aug-10 11:18 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
Luc Pattyn25-Aug-10 11:34
sitebuilderLuc Pattyn25-Aug-10 11:34 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
AspDotNetDev25-Aug-10 12:52
protectorAspDotNetDev25-Aug-10 12:52 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
Luc Pattyn25-Aug-10 13:23
sitebuilderLuc Pattyn25-Aug-10 13:23 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
Baconbutty26-Aug-10 3:17
Baconbutty26-Aug-10 3:17 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
BillW3326-Aug-10 5:42
professionalBillW3326-Aug-10 5:42 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
Stefan_Lang31-Aug-10 6:42
Stefan_Lang31-Aug-10 6:42 
GeneralRe: Beginner's Shame: Manually Draw Characters Pin
AspDotNetDev31-Aug-10 8:19
protectorAspDotNetDev31-Aug-10 8:19 
GeneralThat may have been a mistake... Pin
OriginalGriff20-Aug-10 23:16
mveOriginalGriff20-Aug-10 23:16 
GeneralRe: That may have been a mistake... Pin
PIEBALDconsult21-Aug-10 4:22
mvePIEBALDconsult21-Aug-10 4:22 
GeneralRe: That may have been a mistake... Pin
OriginalGriff21-Aug-10 4:30
mveOriginalGriff21-Aug-10 4:30 
GeneralRe: That may have been a mistake... Pin
PIEBALDconsult21-Aug-10 4:39
mvePIEBALDconsult21-Aug-10 4:39 
GeneralRe: That may have been a mistake... Pin
OriginalGriff21-Aug-10 4:41
mveOriginalGriff21-Aug-10 4:41 
GeneralRe: That may have been a mistake... Pin
Jeroen De Dauw21-Aug-10 4:35
Jeroen De Dauw21-Aug-10 4:35 

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.