Click here to Skip to main content
15,917,862 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
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 
GeneralRe: Oh JavaScript, you silly goose. Pin
CDP180214-Dec-15 1:17
CDP180214-Dec-15 1:17 
Benito Aramando wrote:
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.


Let's assume a very common case in C#: A reference is null and an exeption will be thrown if the program tries to use the reference.

If this can be corrected, then testing beforehand and performing this correction is the way to go. If not, then what could I possibly accomplish by testing? I simply let the exeption fly, let it end up in some Pokemon exception handler and will get to read about it in the log.

After that I will check the conditions that led to the error and will never have to worry about it ever again.

Avoidable errors should indeed be avoided, not handled (gracefully or not) or tested. They are like sand in your gears. I want them to come to my attention and getting rid of them once and for all is worth the time and the work.
The language is JavaScript. that of Mordor, which I will not utter here

This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.

"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."

If software development were a circus, we would all be the clowns.

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. PinPopular
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 
GeneralRe: Oh JavaScript, you silly goose. Pin
Jeremy Falcon12-Dec-15 10:08
professionalJeremy Falcon12-Dec-15 10:08 

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.