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

 
GeneralRe: Does NULL <> 'string'? Pin
Kornfeld Eliyahu Peter12-Jul-17 8:43
professionalKornfeld Eliyahu Peter12-Jul-17 8:43 
GeneralRe: Does NULL <> 'string'? Pin
obermd13-Jul-17 2:09
obermd13-Jul-17 2:09 
GeneralRe: Does NULL <> 'string'? Pin
Richard Deeming13-Jul-17 8:20
mveRichard Deeming13-Jul-17 8:20 
GeneralRe: Does NULL <> 'string'? Pin
agolddog13-Jul-17 3:33
agolddog13-Jul-17 3:33 
GeneralRe: Does NULL <> 'string'? Pin
Kirk 1038982113-Jul-17 5:36
Kirk 1038982113-Jul-17 5:36 
GeneralRe: Does NULL <> 'string'? Pin
Chris Maunder13-Jul-17 6:01
cofounderChris Maunder13-Jul-17 6:01 
GeneralRe: Does NULL <> 'string'? Pin
hpcoder213-Jul-17 12:43
hpcoder213-Jul-17 12:43 
GeneralRe: Does NULL <> 'string'? Pin
Eddy Vluggen14-Jul-17 2:21
professionalEddy Vluggen14-Jul-17 2:21 
Chris Maunder wrote:
to get the correct result.
The other result was also correct, just not the one you wanted. The behaviour is logical.

Your last example would be very VB-ish, where a "NULL" value is treated like an empty string. In the database-world, an empty value does not mean an empty string.

..and it is not something recent, is it? :p
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: Does NULL <> 'string'? Pin
Chris Maunder16-Jul-17 16:26
cofounderChris Maunder16-Jul-17 16:26 
GeneralRe: Does NULL <> 'string'? Pin
TheGreatAndPowerfulOz17-Jul-17 11:07
TheGreatAndPowerfulOz17-Jul-17 11:07 
GeneralRe: Does NULL <> 'string'? Pin
Rob Grainger23-Jul-17 0:06
Rob Grainger23-Jul-17 0:06 
GeneralRe: Does NULL <> 'string'? Pin
User 1106097925-Jul-17 7:50
User 1106097925-Jul-17 7:50 
GeneralRe: Does NULL <> 'string'? Pin
al3c27-Feb-18 5:59
al3c27-Feb-18 5:59 
GeneralAcronyms and expressions -- give us your best! Pin
Member 130464797-Jul-17 2:40
Member 130464797-Jul-17 2:40 
GeneralRe: Acronyms and expressions -- give us your best! Pin
Duncan Edwards Jones7-Jul-17 2:58
professionalDuncan Edwards Jones7-Jul-17 2:58 
GeneralRe: Acronyms and expressions -- give us your best! Pin
Brisingr Aerowing7-Jul-17 4:17
professionalBrisingr Aerowing7-Jul-17 4:17 
GeneralRe: Acronyms and expressions -- give us your best! Pin
Robin Imrie7-Jul-17 6:29
professionalRobin Imrie7-Jul-17 6:29 
JokeRe: Acronyms and expressions -- give us your best! Pin
Member 130464797-Jul-17 9:04
Member 130464797-Jul-17 9:04 
GeneralRe: Acronyms and expressions -- give us your best! PinPopular
Member 130464797-Jul-17 9:07
Member 130464797-Jul-17 9:07 
GeneralRe: Acronyms and expressions -- give us your best! Pin
kmoorevs9-Jul-17 8:21
kmoorevs9-Jul-17 8:21 
GeneralRe: Acronyms and expressions -- give us your best! Pin
Richard Deeming10-Jul-17 2:50
mveRichard Deeming10-Jul-17 2:50 
JokeRe: Acronyms and expressions -- give us your best! Pin
Danny Martin9-Jul-17 21:16
Danny Martin9-Jul-17 21:16 
GeneralRe: Acronyms and expressions -- give us your best! Pin
BarrRobot10-Jul-17 0:29
BarrRobot10-Jul-17 0:29 
GeneralRe: Acronyms and expressions -- give us your best! Pin
DontSailBackwards10-Jul-17 1:18
DontSailBackwards10-Jul-17 1:18 
GeneralRe: Acronyms and expressions -- give us your best! Pin
Gary Wheeler10-Jul-17 1:56
Gary Wheeler10-Jul-17 1:56 

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.