article

javascript

[WHAT]

  1. ] JavaScript(js) is a dynamically typed, multi paradigm, interpreted programming language - that features ( dynamic objects, loose typing, lambda's, c like syntax , regex) and can be used to write  object oriented, functional and imperative(structural) programs.

[history bit]

  1. ] javascript originated in the web browser as a 'scripting language' used to control interactions between the 'web browser'(user agent) and the 'web page' through 'the DOM'(api) and has evolved into a language that has been used to write complete applications and is also being used outside of the web browser environment. (nodeJs, couchDB)
  2. ] Brendan Eich originally wrote the language named Livescript while working at Netscape in 1996. It was later renamed to JavaScript.

[WHY javascript pros ]

  1. ] js is the most popular/widely used programming language in the world
    1. ] view source = countless examples, 1m+ tutorials,
    2. ] because of its origins in the browser and the phenomonal growth and adoption of the web, javascript is likely the most widely used, distributed and developed programming language in existance currently.
    3. ] js is now getting embedded into different devices besides just web browsers
      1. ] set top boxes -
      2. ] ...
  2. ] (almost) everything you ever wanted to know about js is available on the internet for free
    1. ] tutorials, ] books, ] examples ] demos  , ] courses, ] libraries, ] widgets ] frameworks, ] tools
  3. ] js shares a 'c' like syntax that is common to many programming languages
    1. ] other 'c like' programming languages including c, c++, c#, java,
    2. ] if you are starting your development journey and js is your first language this will benefit you later on, as you learn other languages that use similar syntax, coding conventions
    3. ] if your coming to js from another language, then you will already be familiar with it syntax
  4. ] js gets better with ajax
    1. ] enables developers to update just parts of a web page resulting in better user experience
  5. ] js gets better with 'libraries' like 'jquery'
    1. ] enables developers to abstract away the 'differences' between different dom implementations
  6. ] js gets better with 'frameworks' like 'angularjs'
    1. ] enables developers to expedite application development by providing a framework of patterns, boilerplate code
  7. ] ecmascript 262.6 is coming soon
    1. ] the language is being signifigantly revised in the next revision adding Classes, Promises and more ...
  8. ] js has no overhead - getting started with js is uber easy
    1. ] if you(your computer) has a web browser and a text editor - you are ready to start coding with javascript.
    2. ] no compiler, no ide, no class libraries

[WHY NOT javascript cons]

  1. ] js is slow (an interpreted language)
    1. ] the execution speed of javascript code is much slower() than that of compiled programming languages like c++
  2. ] js is NOT a real programming language
    1. ] used to be a common refrain amongst "real" programmers, today, not so much,
  3. ] js has some fatal flaws
    1. ] yes indeed,

[WHERE]

  1. ] on any html page where you want to have client side interactivity between your user and your web page, code blocks lie in a seperate js file OR within script tags with the head of the document OR inline script tags within the body of a document

[WHEN]

  1. ] you want to have client side interactivity between your user and your web page,
    1. ] interactivity, between the user and the web page,  ] EX a user hovers over 'an element' and the element responds with a 'highlight' effect
    2. ] enhanced functionality like form validatio -  ] EX user enters data into a form feild and a js script checks that the 'data entered' is valid for the use case
  2. ] you want to develop a web applications

[EXAMPLE]

  1. ] hello world
    1. js-101 - 'script kiddy' - 101+ different, functional and interesting things you can do with js today intereactivity, validation, WITHOUT diving into the deep end.
  2. ] hello world
    1. js-201 - 'professionalJS' - web application development - full blown javascript application development,

[HOW-TO]

  1. ] learning javascript
    1. ] prerequisite = learning programming - variables, data types, flow control, OOP,
    2. ] 10 of the key 'concepts' you need to grok to master javascript -

[REFERENCE]

  1. ] contents-javascript-library 
  2. http://en.wikipedia.org/wiki/Javascript - wikipedia article
  3. ] mozilla definition - see below 

 - lightweight,

- It is a prototype-based, multi-paradigm scripting language that is dynamic, is type safe, and

?] dynamically typed

 


 

  1. ] js vs ecmascript - compare and contrast
    1. ecmascript - is the standard, defined by working/group committee(TC39) 262.3, es5, es6
    2. javascript - is an implementation of the standard by a particular vendor,
    3. vendors - mozilla(spidermonkey), chrome(v8),
  2. *] of note
    1. *] javascript has no relationship to the 'java' programming language
    2. +] language heritage - scheme/lisp/
    3. +] reputation - for a long time js suffered a poor reputation Amongst professional programmers/developers,
    4. ] scripting language VS programming language
Details Photos Edit more

Details

ID: 1662

NAME: 001-javascript-overview

DESCRIPTION: By Don Sagrott, founder @ sospep.com - an article describing the javascript language and its use, my examples of js,

AUTHOR: article.author/s

EDITOR: article.editor/s

PUBLISHER: article.publisher/s

STATUS: Write

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

page_photo

actions

Email Email-Owner SMS and