Click here to Skip to main content
15,893,190 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: 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 
GeneralRe: Unobtrusive Javascript is bad Pin
Michael Breeden3-Feb-14 23:49
Michael Breeden3-Feb-14 23:49 
Where in the world did MVC come into this? FYI, that is almost exclusively a server thing and javascript events can only be in the View (Love that MVC). My main point was that not having the events bound to html elements where the element exists, makes for something akin to a goto statement, only worse. Where I come from, goto statements are considered a bad thing.
Where did the DOM come into this. The DOM is the playing field. I'm talking about the players and field gear that works on the DOM. You need to either clarify your mind or your communication... or are you just throwing out terms?

Quote:
interesting thought you have there. I have never heard someone say that properly using code and design standards goes against making the code maintainable. I would say your argument against patterns, standards and performance invalidates you even further.

It does not conflict with patterns. You have not supported that it hurts performance. It is the standards that I am questioning and that you have completely failed to defend.

Here is the problem that you seem to fail to get.
Quote:
like Steve Souders (considered the expert in web performance).

Yes, he is an expert in web performance, but my question was about maintenance, which is typically 50% of the cost of any commercial website and with the efficiency of MVC for development, I expect that percentage to be higher. My experience and the experience of a number of people that work day in and day out with javascript is that using that goto pattern is a bad idea. Again, your experts do not do the work I do. Worker bees often have practical realities that leadership does not deal with.

This by the way is why I also commented on the experience of the respondent. You sound very enthusiastic, but I have to wonder if you have spent the years maintaining code that are the reason I have asked this question on this forum. You have given two reasons to refute me. One is the standards that I am questioning and the other is performance, that you failed to support and gave a silly reasoning for. Put it this way. TCP/IP sends data packets. To add 5 onclick="doSomething(this)" statements in the html would be unlikely to require an additional packet being sent, let alone take your "hundreds of milliseconds" of performance hit. What I am rejecting is your "hundreds of milliseconds" of performance statement and so far, that is your only reasoned support for your argument. Defend that if you can and quit repeating authority. It is that authority that I am questioning with reason. Defend your argument with reason.
GeneralRe: Unobtrusive Javascript is bad Pin
Dennis E White4-Feb-14 10:25
professionalDennis E White4-Feb-14 10:25 
GeneralRe: Unobtrusive Javascript is bad Pin
Andy Brummer3-Feb-14 9:44
sitebuilderAndy Brummer3-Feb-14 9:44 
GeneralNew Plan For Groundhog Day, or Conversation With My Wife Pin
Tim Carmichael3-Feb-14 1:44
Tim Carmichael3-Feb-14 1:44 
GeneralRe: New Plan For Groundhog Day, or Conversation With My Wife Pin
OriginalGriff3-Feb-14 1:50
mveOriginalGriff3-Feb-14 1:50 
GeneralRe: New Plan For Groundhog Day, or Conversation With My Wife Pin
HobbyProggy3-Feb-14 2:18
professionalHobbyProggy3-Feb-14 2:18 
GeneralRe: New Plan For Groundhog Day, or Conversation With My Wife Pin
W Balboos, GHB3-Feb-14 3:22
W Balboos, GHB3-Feb-14 3:22 
GeneralRe: New Plan For Groundhog Day, or Conversation With My Wife Pin
Ravi Bhavnani3-Feb-14 5:29
professionalRavi Bhavnani3-Feb-14 5:29 
GeneralNo CCC today ? Pin
pkfox3-Feb-14 1:29
professionalpkfox3-Feb-14 1:29 
GeneralRe: No CCC today ? Pin
HobbyProggy3-Feb-14 1:31
professionalHobbyProggy3-Feb-14 1:31 
GeneralRe: No CCC today ? Pin
Keith Barrow3-Feb-14 1:51
professionalKeith Barrow3-Feb-14 1:51 
GeneralRe: No CCC today ? Pin
OriginalGriff3-Feb-14 1:35
mveOriginalGriff3-Feb-14 1:35 
GeneralRe: No CCC today ? Pin
Corporal Agarn3-Feb-14 1:44
professionalCorporal Agarn3-Feb-14 1:44 
GeneralRe: No CCC today ? Pin
OriginalGriff3-Feb-14 1:48
mveOriginalGriff3-Feb-14 1:48 
JokeRe: No CCC today ? Pin
Vivi Chellappa3-Feb-14 2:15
professionalVivi Chellappa3-Feb-14 2:15 
GeneralRe: No CCC today ? Pin
S Houghtelin3-Feb-14 1:40
professionalS Houghtelin3-Feb-14 1:40 
GeneralRe: No CCC today ? PinPopular
Blue Waffle3-Feb-14 1:43
Blue Waffle3-Feb-14 1:43 
GeneralRe: No CCC today ? Pin
OriginalGriff3-Feb-14 1:50
mveOriginalGriff3-Feb-14 1:50 

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.