Learning Javascript
#1
Posted 07 January 2010 - 06:52 PM
I have been studying javascript thru my home course, and have my exam to do this year when I am ready!
Even tho I have re-read my study book I just can't seem to 'get it'!!??
I understand the basics but when I am asked to try and create a little harder script, I think I know it but get it wrong.
When I check the correct script then, i think to myself: "Oh yeah, that's obvious"!!
Anybody else have/had this trouble?! It's soooo frustrating!
Any really good tuts out there to help me?
Thanks
#2
Posted 07 January 2010 - 07:16 PM
There are some great books:
Simply Javascript: Sitepoint
http://www.sitepoint...ks/javascript1/ (recommended to me by ElanMan - very good)
JavaScript: The Definitive Guide, Fourth Edition - the ultimate, but perhaps a bit heavy for a beginner
http://oreilly.com/c...g/9780596000486
DOM scripting: Jeremy Keith - great starter book
http://domscripting.com/book/
Advanced DOM scripting - not as good as the others, but some good material
http://advanceddomscripting.com/
ppk on Javascript: a great source, and the website is brilliant too
http://www.quirksmode.org/book/
Mozilla's JS reference - brilliant resource
https://developer.mo...g/en/JavaScript
Professional Javascript for Web Developers: WROX
http://www.wrox.com/...0764579088.html
I've found WROX actually write some really good books, halfway between O-Reilly's hideously formatted and dry tomes and the lightweight, coffee table-esque Sitepoint material.
JS is just a very tricky beast - if I were you, I'd complete some typical tasks without a library first (create a form validator, write some basic event handlers, use some timers to do some animation) to give you an idea of what it's about - then I'd probably start thinking about adopting a library for general use on critical projects when you just need to get a job done (you'll learn a lot about JS just trying to choose one...). Then I'd go back to your vanilla JS in your spare time and try and master it slowly.
#3
Posted 07 January 2010 - 07:31 PM
Most jobs require html/css and javascript so I really need to get this learnt!
Is it common practice to use a ready-written script/s for certain things? Save writing one from scratch every time.
Also, what elements of javascript do you use in your websites?
Thanks again.
#4
Posted 07 January 2010 - 07:55 PM
JS is 'different' from other languages. If you don't have experience with other languages, then you may not appreciate this at first.
Definitely try to get your head around basic vanilla js before using a library (jquery, mootools et al).
Firstly, this will make you realise how great these libraries are and how much pain they take away from everyday js.
Secondly, when scripts don't work how you'd expect or you wish to add your own functionality, it'll be far easier
As for using ready-written scripts, there's nothing wrong with that (why re-invent the wheel?) but make sure they're decent.
A lot of the free scripts are hideously dated.
Douglas Crockford vids are always worth watching too: linky
#5
Posted 07 January 2010 - 08:01 PM
Am reading Sitepoints simply javascript right now!
Thanks
#6
Posted 07 January 2010 - 08:09 PM
welshhuw, on 07 January 2010 - 08:01 PM, said:
Am reading Sitepoints simply javascript right now!
Thanks
What's the world coming to! Looks like frameworks have total domination!
"Vanilla" is raw JavaScript written without any frameworks such as jQuery.
EDIT: Vanilla in nerd terms refers to "plain" or "basic".
#7
Posted 07 January 2010 - 08:15 PM
MrBrightside, on 07 January 2010 - 08:09 PM, said:
"Vanilla" is raw JavaScript written without any frameworks such as jQuery.
EDIT: Vanilla in nerd terms refers to "plain" or "basic".
Right, thanks for clearing that up!
I have written a few basic scripts thru my studies and have used some jquery sliders on my webpages.
Will keep on reading....!
#8
Posted 07 January 2010 - 10:32 PM
welshhuw, on 07 January 2010 - 08:15 PM, said:
I have written a few basic scripts thru my studies and have used some jquery sliders on my webpages.
Will keep on reading....!
Although you have to be able to write raw javascript for your course, when you're done I'd recommend using a library such as jQuery when writing Javascript. It makes everything so much simpler, and it's cross browser.
#9
Posted 07 January 2010 - 11:15 PM
craftedpixelz, on 07 January 2010 - 10:32 PM, said:
Basic js is a must, whether you're on a course or not. Learn the basics first before jumping on the 'library bandwagon'.
If you only need a little script/functionality, a library is overkill but if you can't write that little script by yourself you're buggered.
Start with the basics if you want to learn the language.
- ← Loading content into div
- CSS, XHTML/HTML & JavaScript
- First attempt at CSS - formatting all gone wrong! →
Help




















