Click here to Skip to main content
15,914,409 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
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 
Member 7980583 wrote:
"Purity of code" is not going to impress me... any. I live in the trenches.

I certainly hope that this statement doesn't lump in everyone else who plays a role in product sustaining as a software developer. Just because you have made the code more readable for you does not mean you have improved it.

Member 7980583 wrote:
So, what do you think the upside and downside of putting your event bindings in the HTML?

Simply put the answer is performance.

The upside is that you improve the performance of your web page and the downside is that by not doing so you degrade it's performance.

The less that you clutter your page means the faster that it loads. By moving your CSS and javascript content into a separate file that lowers the content of the page that the browser must load. Thus you get an improvement in performance.

This becomes even more of a fact when you take into consideration the simple fact that the browser will cache javascript and css files. so that file where all of your javascript exists... well it's already loaded and the browser won't have to sacrifice a few hundred milliseconds for loading that content on each and every page.

I would recommend a reading of Steve Souder[^] and performance tuning your web site.

Member 7980583 wrote:
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.

I have worked in both areas and personally took some offense to this statement. It is in my opinion best to question why things are done a certain way and hope to learn something as a skill building experience in furthering and enhancing your abilities. However, this statement comes across as almost to say that one group knows better or more than the other??

Member 7980583 wrote:
"Purity of code"

You could say purity of code but you could also say purity of using the design pattern being modeled. In this case since we are talking about MVC and assuring that code from either M, V or C doesn't get co-mingled with the other. This generally helps in code maintenance.. Smile | :)
you want something inspirational??

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 
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 

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.