edit-article
Home
Up
Delete
Article Name:
Article Description:
by Don Sagrott, founder @sospep.com - An outline of what you 'need to know' before you 'get started' on learning javascript. In order to 'getting the most' out of this material
Chapter ID/Name:
Status:
Write
Writing
Written
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">before we begin</h1> <h2>[WHAT]</h2> <ol> <li><strong>] before we begin </strong></li> <ol> <li>] in order to benefit from most of this material in 'learning javascript' there are some of the things that <strong>you need to know</strong></li> </ol> <li><strong>] if you are just starting out with learning javascript, don't be discouraged by the long list,</strong></li> <ol> <li>] you can get results almost immediately with a little bit of <span style="text-decoration: underline;">knowledge</span> and a little bit of <span style="text-decoration: underline;">direction.</span></li> <li>] depending on how far you want to go with your js coding, there is a lot to learn and understand but (see above line) and remember that you <span style="text-decoration: underline;">dont</span> need to know everything before you start</li> </ol> <li><span style="text-decoration: line-through;"><strong>] You do not need to be an expert on these concepts</strong>,</span></li> <ol> <li><span style="text-decoration: line-through;">] but by starting with a solid foundation, it makes building anything easier</span></li> </ol> <li><strong>] you will <span style="text-decoration: underline;">need to know</span> the basics of programming.</strong></li> <ol> <li>] programming fundamentals - if you dont know the fundaments, jumping into more advanced concepts, language or programming paradigm specific concepts</li> </ol> <li><strong>] you will <span style="text-decoration: underline;">need to know</span> a basic understanding of EITHER OOP OR FP paradigms</strong></li> <ol> <li>] obviously there are types of programs where 1 programming methodology is a better choice than the other</li> </ol></ol> <h2>[WHY]</h2> <ol> <li><strong>] obviously depending on 'your javascript' goals</strong><ol> <li>] start with - add some simple behaviours/functionalities to your website</li> <li>] advance to - developing full blown web applications </li> </ol></li> </ol> <h2>[WHERE]</h2> <ol> <li><strong>] <a href="/view/chapters?id=305" target="_blank">programming language fundamentals</a> </strong></li> <ol> <li>] variables - </li> <li>] data types - </li> <li>] syntax - </li> <li>] statements -</li> <li>] operators - </li> <li>] functions</li> <li>] arguements - </li> <li>] return value -</li> <li>] scope -</li> <li>] flow control -</li> <li>]</li> </ol> <li><strong>] <a href="/view/chapters?id=184" target="_blank">OOP</a></strong></li> <ol> <li>] what is OOP?</li> <li>] what is an OOP programming language?</li> </ol> <li><strong>OR ] FP*</strong><ol> <li>] what is functional programming?</li> <li>] what is a functional programming language?</li> </ol></li> <li><strong>] OOP in js</strong></li> <ol> <li>] overview - OOP in java and OOP in javascript are 2 slightly different constructs. Bypass your traditional OO mindset and practices and proceed directly to using the new methodologies that maximize the features of the javascript language(like <span style="text-decoration: underline;">prototypal inheritance VS classical inheritance</span>) </li> </ol> <li><strong>OR ] FP in js*</strong></li> <ol> <li>] overview -</li> </ol></ol> <h2>[WHEN]</h2> <ol> <li>]</li> </ol> <h2>[EXAMPLE]</h2> <ol> <li><strong>] fundamentals</strong></li> <ol> <li>] var x = "name"; a variable is a name for a ___ , in the preceeding statement x is the variable, name is the value that has been assigned to the variable "x"</li> <li>] what type of data is the variable x? //x is a string</li> <li>] ; is part of the syntax that makes up javascript, it ends every statement, var x = "name"; is a statement, // is another syntax symbol that denotes 'comments' in the code</li> <li>] a program is made up of many statements, var x = firstName, var y=lastName, var fullName = x + y; are all statements</li> <li>] operators</li> </ol> <li><strong>] OOP</strong></li> <ol> <li>] var p = new Person();</li> <li>] p.firstName = x;</li> <li>] p.lastName = y;</li> <li>] p.call() // method to phone/call the current person</li> <li>] p.print() // method to print out the details of the current person </li> </ol></ol> <h2>[HOW-TO]</h2> <ol> <li>] start by learning programming fundamentals</li> <li>] get an understanding of either OOP or FP</li> <li>] get started with javascript 101</li> </ol> <h2>[REFERENCE]</h2> <ol> <li>]</li> </ol> <h1 style="text-align: center;"> </h1>