Click here to Skip to main content
15,909,953 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: How to test equality Pin
Robert Surtees6-Nov-09 7:32
Robert Surtees6-Nov-09 7:32 
GeneralRe: How to test equality Pin
Nemanja Trifunovic10-Nov-09 11:37
Nemanja Trifunovic10-Nov-09 11:37 
GeneralString of Horror Pin
Izisin28-Oct-09 9:01
Izisin28-Oct-09 9:01 
GeneralRe: String of Horror Pin
Adam Maras28-Oct-09 10:42
Adam Maras28-Oct-09 10:42 
GeneralRe: String of Horror Pin
Jaime Olivares31-Oct-09 19:31
Jaime Olivares31-Oct-09 19:31 
GeneralRe: String of Horror Pin
dojohansen7-Jan-10 23:20
dojohansen7-Jan-10 23:20 
Generaltrying to figure out if number is negative PinPopular
Omar Gameel Salem26-Oct-09 1:19
professionalOmar Gameel Salem26-Oct-09 1:19 
GeneralRe: trying to figure out if number is negative Pin
J4amieC26-Oct-09 1:46
J4amieC26-Oct-09 1:46 
GeneralRe: trying to figure out if number is negative Pin
Jarek Kruza26-Oct-09 1:55
Jarek Kruza26-Oct-09 1:55 
GeneralRe: trying to figure out if number is negative Pin
Omar Gameel Salem26-Oct-09 2:21
professionalOmar Gameel Salem26-Oct-09 2:21 
GeneralRe: trying to figure out if number is negative Pin
Jarek Kruza26-Oct-09 2:31
Jarek Kruza26-Oct-09 2:31 
GeneralRe: trying to figure out if number is negative Pin
Omar Gameel Salem26-Oct-09 3:06
professionalOmar Gameel Salem26-Oct-09 3:06 
JokeRe: trying to figure out if number is negative Pin
AspDotNetDev30-Oct-09 17:08
protectorAspDotNetDev30-Oct-09 17:08 
GeneralRe: trying to figure out if number is negative Pin
Jeroen De Dauw26-Oct-09 3:13
Jeroen De Dauw26-Oct-09 3:13 
GeneralRe: trying to figure out if number is negative Pin
PIEBALDconsult26-Oct-09 4:40
mvePIEBALDconsult26-Oct-09 4:40 
GeneralRe: trying to figure out if number is negative Pin
Keith Barrow27-Oct-09 7:55
professionalKeith Barrow27-Oct-09 7:55 
GeneralRe: trying to figure out if number is negative Pin
David Skelly28-Oct-09 23:56
David Skelly28-Oct-09 23:56 
GeneralWhen ASP.NET programmers don't know JavaScript Pin
Gordon Kushner12-Oct-09 5:14
Gordon Kushner12-Oct-09 5:14 
GeneralRe: When ASP.NET programmers don't know JavaScript Pin
Paulo Zemek12-Oct-09 5:54
Paulo Zemek12-Oct-09 5:54 
JokeRe: When ASP.NET programmers don't know JavaScript Pin
Jeroen De Dauw12-Oct-09 7:30
Jeroen De Dauw12-Oct-09 7:30 
GeneralRe: When ASP.NET programmers don't know JavaScript PinPopular
Electron Shepherd13-Oct-09 0:20
Electron Shepherd13-Oct-09 0:20 
GeneralRe: When ASP.NET programmers don't know JavaScript Pin
Luc Pattyn13-Oct-09 3:40
sitebuilderLuc Pattyn13-Oct-09 3:40 
gkushner wrote:
Developer, meet isNaN


Nope.
isNaN takes a float/double as an input, all it does is keep track of a mathematical mishap, such as taking the logarithm of a negative number.
It does not deal with a string that may or may not represent something that is considered a valid number (before you can apply isNaN, you have to try and parse the string to a number, and that is what the code is about)

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: When ASP.NET programmers don't know JavaScript Pin
robocodeboy15-Oct-09 0:19
robocodeboy15-Oct-09 0:19 
GeneralRe: When ASP.NET programmers don't know JavaScript Pin
PIEBALDconsult13-Oct-09 11:38
mvePIEBALDconsult13-Oct-09 11:38 
GeneralRe: When ASP.NET programmers don't know JavaScript Pin
Gordon Kushner13-Oct-09 12:39
Gordon Kushner13-Oct-09 12:39 

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.