TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 08-10-2009, 03:13 PM   #1 (permalink)
The Wanderer
 
Join Date: Aug 2009
Location: Pretoria, South Africa
Posts: 11
Thanks: 0
devnull is on a distinguished road
Default Basics or jQuery?

Just something I thought to myself, reading another thread on this same forum, that I would like to share is the discussion surrounding whether people that are new to javascript should start with the basics, not programming basics but rather basics on how to manipulate the DOM, or go straight into jQuery.

Now for those of you that do not know, jQuery is a popular javascript library that makes the use of javascript as a programming language "easier", in some cases I fully agree it does, but as with all libraries or frameworks this comes at a disadvantage, being the size of it, where sometimes all you need to do is hide a div, which can be written in a total of 1 line of code.

<rant>Every time you then need to go hide that div, this whole library will be loaded, yes it is small but the fact still exists that using the library for something so simple is bloating websites/applications all over the net, just to have a quick look at the uncompressed version of the latest jQuery library which is 120kb, sounds small hey? Coming in at 4327 lines of code it really is not that small.</rant>

Without going completely off topic, I reckon a user should first know what the DOM actually is, what are elements, how do you manipulate the DOM, what is ajax actually, before jumping into a library which will help reduce the amount of code for larger/complex web applications.

So, basics or jQuery?
__________________
~ Work is love made visible ~

Flexible Programming Tips & Tricks
Send a message via Skype™ to devnull
devnull is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with jQuery Hightower Javascript, AJAX, E4X 8 06-23-2009 08:16 PM
jQuery Timer Plugin ETbyrne The Lounge 0 06-14-2009 02:16 PM
jquery wont work for me :( sarmenhb Javascript, AJAX, E4X 2 09-27-2008 08:52 PM
Cookie issue -jQuery Sam Granger Javascript, AJAX, E4X 0 12-14-2007 01:44 PM


All times are GMT. The time now is 01:40 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design