Javascript

The  Magic, & the Myths 


-The Unicorns
Way straight to the unicorns ( Press Down)




COMPLETE THE URL


http://chat.stackoverflow.com/room/17/<CodeToCrack>

Before cracking the code and starting to talk please 
#bower install humour


LETS HAVE AN EPISODE OF THE 

MYTHBUSTERS



Starting : 
The guy who made the presentation 
You, of course !
And the cat an octopus lovers in the web !

MYTH #1





JavaScript is a 'Silver.Bullet'
(Misconception of recent this decade so far)

Reality



console.log("Hello World"); // Prints Hello World!
Array(15).join( (('Hello' - 1) + '').substring(0,2) ) + ' Batman'; // NaNaNaNaNaNaNaNaNaNaNaNaNaNaNa Batman Infinity = Infinity || (0 * ChuckNorris); // Redefines Infinity using ChuckNorris if not
A PROGRAMMING LANGUAGE!

( If you know JS you will get the jokes,
If you dont. Learn it .. good assignment is to find the meaning when you are done )



BUSTED :D

Myth #2:




<  HTTP ERROR : "OVER 9000" >
< We are sorry but due to confusions,
We have banned displaying the Java Logo during
anywhere during JS slides now >


Related to JAVA ????

( The Hello nOOb question asked often)

REALITY



Java : JavaScript is Car : Carpet 
( for some alien who has no humour, this means
despite being somewhat inspired by Java it is NOTHING like JAVA)



BUSTED

( I really didn't wanted to bust this one but oh well )

MYTH #3



I SPENT 10 MINS I ALREADY KNOW IT !

NO YOU DONT !


Takes LOTS of time and EFFORT
"A good developer writes 10k hour of learning/understanding/writing to code becomes a great developer who barely writes any code"





TO BE CONTINUED ....

(NOT COMPLETELY BUSTED YET)

MyTH #4




  $("ICANHAZJS").TEHE();



JQUERY IS JESUS QUERY !!!!!!

That doesnt makes sense and i feel dumber recursively after  typing it

REALITY



 http://nooooooooooooooo.com 


JQUERY is a LIBRARY  and it is DEFINITELY NOT A LANGUAGE, NOT EVEN A FRAMEWORK , NOT EVEN A STANDARD LIBRARY 


Its write less Do More, usually ends up into  write mess do roar!


(to be continued cause this is serious business)

ITS NOT A BAD LIBRARY ITS THE PEOPLE


JQuery was written by good people, written with good intentions 


... Some Internet Years Later ...



Intentions are same, They have fame
How its used mostly though is **SHAME**

-( Talk to other unicorns for moar )-





LEARN VANILLA.JS / COWBELL.JS

->

LEARN JQUERY ( find it useless until production )


( try it, use jQuery only when you **Really** need it ... which is ever ever some ever in never 
but to being able to figure it out is being clever )




YOU BUST IT !!!

(Seriously its on you!)




 JAVASCRIPT

( A Language )

FaCTS & HISTORY


JavaScript was made by a very intelligent guy @ NetScape

JavaScript was designed to run inside browser 

JavaScript powers most of your websites

JavaScript is now mantained / developed by super intelligent awesome kind hearted humans who know what they do!


HOW DID WE END UP ..


(Literally)

! Awesome GOOGLE IS AWESOME !

.. pushed the web foward

Google Chrome .....
... Googles efforts to PERFORMANCE...
...CSS power,HTML5 support..
... people starting to see web as DEPLOYMENT
NOSQLDBs ..web 2.0..     NODE.JS  
..MORE APPS                        less time                 .rapid prototyping native oh noes?

I Dont Wanna Write CODE!

THE MAGIC!



WRITE LESS DEPLOY MORE !

STANDARDS ARE MANAGED BY STANDARDS
OPEN & PROPRIETARY

almost... WELL DOCUMENTED
(We are working on it) 

BUILT BY BEST SPIDERMONKEYS ON PLANET FOR TO RUN LIKE A V8 ;)

PROOF OF CONCEPT ?



codepen.io

(Note :  codepen page itself is very exhaustive app add to that whats demonstrated there)


FAST BOOK
(A facebook Clone that feels like NATIVE!! WTF? )


All the apps on Titanium.PhoneGap.AppXelerator.... .etc.. { Especially Titanium ones } which feel native!

BUT FACEBOOK FAILED THEMSELVES !!!!


-- Facebook overkilled the browser

-- Browser is like your girlfriend

-- KISSING HELPS

-- Not a fault of language..
 IF YOUR APP IS SLOW THEN MAKE SURE IF YOU ARE SLOW!

THE never told GOOD PRACTISE



- You are in a relationship with a browser 
( Love it like your partner )
- Respect it
- Understand it
- Don't Be abusive 
- Pay attention to changes
- Be updated
- Don't Overdo 
( guys understand this more) 

BUT HOW ?




I guess this is more on you no ? Every developer is different
JavaScript & We don't bind you

You are free to follow your own learning pattern.

Mozilla Developer Network  helps a LOT !
Codepen inspires a LOT 
nettuts teach you a lot
Google is your TORCH ( AND LIGHT ).

DO's & DonT'S





IF THERE IS A NATIVE METHOD USE IT !

FEW WORDS ON DOM



ITS NOT A KEY VALUE STORE .... PLEASE GOOGLE AND READ MORE!


DOM IS EXPENSIVE ... BUT AWESOME


CACHE IT IF YOU CAN HUN!

I AM A LIB-HOE !



DUUUUUUUUUUUUUUUUUUUUUUUUUUUDE 
we all love libs they make life easy

but but but but but 

DONT USE A LANGUAGE BEFORE YOU LEARN IT

libararies are to make your life easy 

WHEN U MAKE APPS 



- KISS ! 

- DON'T DO ANIMATIONS IN JAVASCRPT 
(USE CSS ELSE DONT ANIMATE )

- DO AS LESS AS POSSIBLE & STICK TO NATIVES


- Try to use NATIVE calls if POSSIBLE 
( JavaScript is never fast as C code )




THANKS


Q&A ? 
(ping us in js room)

deck

By darkyen

deck

  • 803