4 ms·
For JavaScript that's a mostly valid point since 99.9% of all JavaScript is executed in the browser. When we teach basic JavaScript we include a week on accessi
by jeffreymcmanus 15y ago
For JavaScript that's a mostly valid point since 99.9% of all JavaScript is executed in the browser. When we teach basic JavaScript we include a week on accessing the DOM because we know that's where people are going to go with the language.
For Python and Ruby, it's best to have a handle on the languages first before throwing in Web stuff. That's the case for two reasons: first, particularly with Python, the web might not be the student's ultimate objective. But more importantly, you want to start in manageable chunks and throwing in web stuff can muddle things early on.
- aidenn0 15y agoAnd this is why PHP is used for web-dev. The "Hello, World" webapp in PHP is trivial to anybody who has ever done any html markup, and is usually the first example. That makes it a gateway like this: 1) Do some HTML to make a webpage 2) I want to add <something dynamic> 3) Oh, I just ad <?PHP ... ?> to my page, that was easy 4) I want to do <something harder>, oh, cut and paste 5) Now I need to tweak this... Which is part of why PHP is so popular, especially among people with more of a web background and less of a programming background. I agree that it's better to have a handle on the langage first, then throwing in web stuff, but if you take that tact, many people will instead use the language that starts with Web stuff, then adds in programming.