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

 
RantWhen Poor Design Gets Baked Into a File Format Pin
Kevin Li (Li, Ken-un)29-Mar-20 6:30
Kevin Li (Li, Ken-un)29-Mar-20 6:30 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
phil.o29-Mar-20 6:45
professionalphil.o29-Mar-20 6:45 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Super Lloyd29-Mar-20 13:48
Super Lloyd29-Mar-20 13:48 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
honey the codewitch29-Mar-20 7:28
mvahoney the codewitch29-Mar-20 7:28 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Greg Utas29-Mar-20 8:24
professionalGreg Utas29-Mar-20 8:24 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
honey the codewitch29-Mar-20 9:24
mvahoney the codewitch29-Mar-20 9:24 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Greg Utas29-Mar-20 9:40
professionalGreg Utas29-Mar-20 9:40 
GeneralRe: When Poor Design Gets Baked Into a File Format PinPopular
kalberts29-Mar-20 12:07
kalberts29-Mar-20 12:07 
Database people have been discussing variants of non-existing, empty and zero-length strings for at least 30-40 years.
There is a difference between not knowing whether a value for the attribute exists, knowing positively that it is void, and knowing that there is a defined value, but it is of zero length.

The strangest passport I ever saw was for the son of friends of mine: It stated birthdate as unknown, sex unknown, name unknown, no photo or fingerprint available. When the mother, US citizen living in Norway, is pregnant with a baby, and plans a trip abroad with the baby a few weeks after the delivery, you must start the process of applying for a passport before those details are known.

So for this baby's middle name, before his birth, nothing was known, not even if he would have a middle name at all. If he has one, I do not know it, so I could treat it as a defined name attribute with unknown value. If I learn that he certainly does not have a middle name, it would be a known value of zero length.

There may be better examples to illustrate various null/empty/… values; this is just the first one dropping into my mind. There may be cases where there is no semantic difference between optional omitted, included but unknown, included with a known length of zero and included with a positive length value. Yet there are other cases where the semantic difference may be very significant.
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Eddy Vluggen2-Apr-20 23:46
professionalEddy Vluggen2-Apr-20 23:46 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Super Lloyd29-Mar-20 16:51
Super Lloyd29-Mar-20 16:51 
GeneralRe: When Poor Design Gets Baked Into a File Format Pin
Kevin Li (Li, Ken-un)30-Mar-20 10:49
Kevin Li (Li, Ken-un)30-Mar-20 10:49 
Rant.Net core 3.0 breaking changes Pin
Bohdan Stupak27-Mar-20 6:44
professionalBohdan Stupak27-Mar-20 6:44 
GeneralRe: .Net core 3.0 breaking changes Pin
Marc Clifton27-Mar-20 8:19
mvaMarc Clifton27-Mar-20 8:19 
GeneralRe: .Net core 3.0 breaking changes Pin
Bohdan Stupak28-Mar-20 7:11
professionalBohdan Stupak28-Mar-20 7:11 
GeneralLets' change things up; how about the inept and stupid Pin
Gary R. Wheeler7-Mar-20 3:33
Gary R. Wheeler7-Mar-20 3:33 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Greg Utas7-Mar-20 3:50
professionalGreg Utas7-Mar-20 3:50 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
DJ van Wyk8-Mar-20 21:59
professionalDJ van Wyk8-Mar-20 21:59 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Greg Utas9-Mar-20 1:24
professionalGreg Utas9-Mar-20 1:24 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Stefan_Lang8-Mar-20 23:29
Stefan_Lang8-Mar-20 23:29 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Greg Utas9-Mar-20 1:34
professionalGreg Utas9-Mar-20 1:34 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Member 91670578-Mar-20 22:18
Member 91670578-Mar-20 22:18 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
John R. Shaw26-Mar-20 19:52
John R. Shaw26-Mar-20 19:52 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Nelek26-Mar-20 23:31
protectorNelek26-Mar-20 23:31 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
kalberts29-Mar-20 12:26
kalberts29-Mar-20 12:26 
GeneralRe: Lets' change things up; how about the inept and stupid Pin
Stefan_Lang8-Mar-20 23:51
Stefan_Lang8-Mar-20 23:51 

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.