Friday, 16 May 2014

Javascript & jQuery Fundamentals

Javascript & jQuery Fundamentals
In this post I will be explaining and giving examples of javascript and jQuery and what they're functions and purposes are. I will also be explaining the benefits and disadvantages of using Javascript and jQuery.

Javascript

Javascript is a dynamic programming computer programming language which allows client-sided interaction with users computers.Javascript is able to control a browser, communicate asynchronously, and alter the document content that is displayed on a web browser.

Javascript isn't related to the application Java even though it has a similar name. Javascript allows web developers alter the behavior and appearance of bits of web pages displayed on a webpage.

Benefits

  • Javascript is executed on the client side

  • This means that the code is executed on the user's computer instead of the web server therefore saving bandwidth and strain on the web server.

  • Javascript is an easy language to learn

  • The Javascript language is relatively easy to learn and includes a syntax that is close to English. It uses a model that provides plenty of prewritten functionality/features to the various objects on pages, making it easy to develop a script to solve a purpose/problem.

  • Javascript is relatively fast to the end user

  • As the code is executed on the user's computer, results and processing is completed almost instantly depending on the task as it does not need to be processed in the site's web server and sent back to the user.

  • Extended functionality to websites


  • Third party add-ons enable Javascript developers to write small parts of Javascript which can execute on desired web pages to extend its functionality. If you use a website and require a certain feature to be included, you can write it yourself and use an add-on to implement it on the web page.

    JQuery

    JQuery is a tool that is used as JavaScript library which allows shorter lines of JavaScript code to be opened. JQuery just goes into the JavaScript library and a short line of code represents jQuery unlike JavaScript where there are many lines of code that mean the same thing. As jQuery is shorter than javascript code time can be saved by not repeating the code. It was mainly designed to make JavaScript easier to code.

    Overall there is less code that has to be written when jQuery is being used within the website and another benefit is that there will be fewer errors because there is less repetition.
     
    Benefits
    • Ease of use
    This is pretty much the main advantage of using JQuery, it is a lot more easy to use compared to standard javascript and other javascript libraries. Apart from simple syntax, it also requires much less lines of code to achieve the same feature in comparison.
    • Large library
    JQuery allows you to perform hordes of functions in comparison to other Javascript libraries.

  • Wide range of  tutorials


  • The JQuery website has a comprehensive documentation and tutorials to get even an absolute beginner in programming to get the ball rolling with this library.

    References
    Advantages and disadvantages of client side scripts - 08/05/2014 - http://bit.ly/1nt4sCC

    Web server scripting disadvantages - 08/05/2014 - http://bit.ly/1mHkiYW

    Advantages and disadvantages of client side scripting - 08/05/2014 - http://bit.ly/1obznG7

    Client side scripting - 16/05/2014 - http://bit.ly/SF1d0J

    Server side scripting - 16/05/2014 - http://bit.ly/1m2SGPt

    No comments:

    Post a Comment