Click here to Skip to main content
15,919,749 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Oh JavaScript, you silly goose. Pin
CDP180212-Dec-15 10:23
CDP180212-Dec-15 10:23 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 11:13
professionalJeremy Falcon12-Dec-15 11:13 
GeneralRe: Oh JavaScript, you silly goose. Pin
Mycroft Holmes12-Dec-15 14:35
professionalMycroft Holmes12-Dec-15 14:35 
GeneralRe: Oh JavaScript, you silly goose. Pin
Michael Martin12-Dec-15 15:21
professionalMichael Martin12-Dec-15 15:21 
GeneralRe: Oh JavaScript, you silly goose. Pin
Mycroft Holmes12-Dec-15 15:26
professionalMycroft Holmes12-Dec-15 15:26 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 19:19
professionalJeremy Falcon12-Dec-15 19:19 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 11:19
professionalJeremy Falcon12-Dec-15 11:19 
GeneralRe: Oh JavaScript, you silly goose. Pin
Benito Aramando14-Dec-15 0:35
Benito Aramando14-Dec-15 0:35 
But if it didn't do this you would just always have to test the inputs instead to ensure the application doesn't throw an error, which isn't necessarily any better.

Besides, it's possible you may not have to test the results anyway, if you aren't relying on them being a number, e.g. in the below code it doesn't matter if b is 0:

if(a / b === 0.25){ ... }

GeneralRe: Oh JavaScript, you silly goose. Pin
CDP180214-Dec-15 1:17
CDP180214-Dec-15 1:17 
GeneralRe: Oh JavaScript, you silly goose. Pin
Benito Aramando14-Dec-15 1:49
Benito Aramando14-Dec-15 1:49 
GeneralRe: Oh JavaScript, you silly goose. Pin
CDP180214-Dec-15 2:10
CDP180214-Dec-15 2:10 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon14-Dec-15 4:30
professionalJeremy Falcon14-Dec-15 4:30 
GeneralRe: Oh JavaScript, you silly goose. Pin
Benito Aramando14-Dec-15 4:56
Benito Aramando14-Dec-15 4:56 
GeneralRe: Oh JavaScript, you silly goose. Pin
PIEBALDconsult12-Dec-15 13:25
mvePIEBALDconsult12-Dec-15 13:25 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 19:18
professionalJeremy Falcon12-Dec-15 19:18 
GeneralRe: Oh JavaScript, you silly goose. Pin
PIEBALDconsult12-Dec-15 19:24
mvePIEBALDconsult12-Dec-15 19:24 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 19:28
professionalJeremy Falcon12-Dec-15 19:28 
GeneralRe: Oh JavaScript, you silly goose. Pin
Benito Aramando14-Dec-15 1:11
Benito Aramando14-Dec-15 1:11 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon14-Dec-15 4:08
professionalJeremy Falcon14-Dec-15 4:08 
GeneralRe: Oh JavaScript, you silly goose. Pin
DarkChuky CR14-Dec-15 4:51
DarkChuky CR14-Dec-15 4:51 
GeneralRe: Oh JavaScript, you silly goose. Pin
Benito Aramando15-Dec-15 1:15
Benito Aramando15-Dec-15 1:15 
GeneralRe: Oh JavaScript, you silly goose. Pin
Marc Clifton12-Dec-15 15:25
mvaMarc Clifton12-Dec-15 15:25 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 19:17
professionalJeremy Falcon12-Dec-15 19:17 
GeneralRe: Oh JavaScript, you silly goose. Pin
harold aptroot12-Dec-15 10:05
harold aptroot12-Dec-15 10:05 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 10:06
professionalJeremy Falcon12-Dec-15 10:06 

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.