Click here to Skip to main content
15,893,381 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: EOTD Pin
Mike Hankey3-Feb-14 3:30
mveMike Hankey3-Feb-14 3:30 
GeneralRe: EOTD Pin
Mark Parity3-Feb-14 3:58
Mark Parity3-Feb-14 3:58 
GeneralRe: EOTD Pin
Mike Hankey3-Feb-14 4:12
mveMike Hankey3-Feb-14 4:12 
GeneralRe: EOTD Pin
Marco Bertschi3-Feb-14 4:28
protectorMarco Bertschi3-Feb-14 4:28 
GeneralRe: EOTD Pin
Mike Hankey3-Feb-14 4:36
mveMike Hankey3-Feb-14 4:36 
GeneralRe: EOTD Pin
Roger Wright3-Feb-14 5:41
professionalRoger Wright3-Feb-14 5:41 
GeneralRe: EOTD Pin
OriginalGriff3-Feb-14 5:50
mveOriginalGriff3-Feb-14 5:50 
GeneralUnobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 1:45
Michael Breeden3-Feb-14 1:45 
Unobtrusive Javascript is bad... OK, that should get the conversation started. To make it short, the proposition here is that you should bind events with code in an external file so that you can have purity of semantic coding is worse than a goto statement. A goto statement is at least a follow-able link. External binding is a fashion with no more benefit than any other fashion. I can buy that you should keep the majority of your javascript in external files, but putting the event binding externally, is to hide or at least obscure what the program flow and what the program is doing.
So, what do you think the upside and downside of putting your event bindings in the HTML? "Purity of code" is not going to impress me... any. I live in the trenches.
I expect some difference of opinion on this based on experience and role. I would expect that developers that have done a lot of trouble shooting and maintenance have a different opinion than those that write code that they do not have to maintain. You might mention this type experience when replying.
GeneralRe: Unobtrusive Javascript is bad Pin
Kornfeld Eliyahu Peter3-Feb-14 1:57
professionalKornfeld Eliyahu Peter3-Feb-14 1:57 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 3:53
Michael Breeden3-Feb-14 3:53 
GeneralRe: Unobtrusive Javascript is bad Pin
Kornfeld Eliyahu Peter3-Feb-14 4:01
professionalKornfeld Eliyahu Peter3-Feb-14 4:01 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden4-Feb-14 3:17
Michael Breeden4-Feb-14 3:17 
GeneralRe: Unobtrusive Javascript is bad Pin
W Balboos, GHB3-Feb-14 3:18
W Balboos, GHB3-Feb-14 3:18 
GeneralRe: Unobtrusive Javascript is bad Pin
User 48350473-Feb-14 3:46
User 48350473-Feb-14 3:46 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 3:59
Michael Breeden3-Feb-14 3:59 
GeneralRe: Unobtrusive Javascript is bad Pin
User 48350473-Feb-14 4:49
User 48350473-Feb-14 4:49 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 5:15
Michael Breeden3-Feb-14 5:15 
GeneralRe: Unobtrusive Javascript is bad Pin
User 48350473-Feb-14 5:32
User 48350473-Feb-14 5:32 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 5:50
Michael Breeden3-Feb-14 5:50 
GeneralRe: Unobtrusive Javascript is bad Pin
User 48350473-Feb-14 6:10
User 48350473-Feb-14 6:10 
GeneralRe: Unobtrusive Javascript is bad Pin
Dennis E White3-Feb-14 9:11
professionalDennis E White3-Feb-14 9:11 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 9:36
Michael Breeden3-Feb-14 9:36 
GeneralRe: Unobtrusive Javascript is bad Pin
Dennis E White3-Feb-14 10:24
professionalDennis E White3-Feb-14 10:24 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 10:55
Michael Breeden3-Feb-14 10:55 
GeneralRe: Unobtrusive Javascript is bad Pin
Dennis E White3-Feb-14 13:12
professionalDennis E White3-Feb-14 13:12 

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.