Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Javascript explained
for Java developers
Javascript is the “de facto” standard of the Web today
still… many of the developers are coming from the Java world
Javascript ecosystem evolves more dynamically
… than what Java devs are used to
Javascript script syntax has nothing to do with Java
except that is looks familiar
Javascript execution environment is com...
Types
String, no char
Number, no int
Object
Array, Function (both are objects)
Type Typeof
Object ‘object’
Function ‘function’
Array ‘object’
Number ‘number’
String ‘string’
Boolean ‘boolean’
null ‘obj...
Style
return
{
ok: false
};
return {
ok: true
};
Operators
0 == ‘’ // true
0 == ‘0’ //true
‘’ == ‘0’ //false
Weird types, weird values
NaN === NaN //false
NaN !== NaN // true
typeof NaN // Number
typeof null // Object
Falsy / Thruthy
false
null
Undefined
‘’
0
NaN
var me = {
name: ‘Jana’,
age: 32,
children: ‘Maybe some day’,
pets: [{
name: ‘Baron’,
species: ‘dog’
}]
};
Java has classes, methods, constructors
Javascript has functions
Function is an object
(actually with each function declar...
Function scope
demo
Javascript, in Crockford’s own words, it’s conflicted in its nature
functional language
with dynamic typing and prototypal...
AngularJs MVW framework
HTML augmentation, both ways binding, templating
Single page applications, rich and fluid UI’s
Anu...
Javascript ecosystem
Javascript frameworks
Javascript tools
proprietary frameworks vs. open source
exhaustive manuals vs. github docs and cheat sheets
expensive trainings vs. quick a...
Thank you!
Javascript explained
Javascript explained
Javascript explained
Nächste SlideShare
Wird geladen in …5
×

Javascript explained

588 Aufrufe

Veröffentlicht am

Javascript ecosystem for Java developers

Veröffentlicht in: Software
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

Javascript explained

  1. 1. Javascript explained for Java developers
  2. 2. Javascript is the “de facto” standard of the Web today still… many of the developers are coming from the Java world
  3. 3. Javascript ecosystem evolves more dynamically … than what Java devs are used to
  4. 4. Javascript script syntax has nothing to do with Java except that is looks familiar Javascript execution environment is completely different from Java envs Javascript community was built mainly by millennials Java is getting old 
  5. 5. Types String, no char Number, no int Object Array, Function (both are objects)
  6. 6. Type Typeof Object ‘object’ Function ‘function’ Array ‘object’ Number ‘number’ String ‘string’ Boolean ‘boolean’ null ‘object’ Undefined ‘undefined’
  7. 7. Style return { ok: false }; return { ok: true };
  8. 8. Operators 0 == ‘’ // true 0 == ‘0’ //true ‘’ == ‘0’ //false
  9. 9. Weird types, weird values NaN === NaN //false NaN !== NaN // true typeof NaN // Number typeof null // Object
  10. 10. Falsy / Thruthy false null Undefined ‘’ 0 NaN
  11. 11. var me = { name: ‘Jana’, age: 32, children: ‘Maybe some day’, pets: [{ name: ‘Baron’, species: ‘dog’ }] };
  12. 12. Java has classes, methods, constructors Javascript has functions Function is an object (actually with each function declaration we create couple of objects ) Every Function can have methods Functions better NOT be declared in if or for statements
  13. 13. Function scope demo
  14. 14. Javascript, in Crockford’s own words, it’s conflicted in its nature functional language with dynamic typing and prototypal inheritance Inheritance demo
  15. 15. AngularJs MVW framework HTML augmentation, both ways binding, templating Single page applications, rich and fluid UI’s AnuglarJs demo
  16. 16. Javascript ecosystem
  17. 17. Javascript frameworks
  18. 18. Javascript tools
  19. 19. proprietary frameworks vs. open source exhaustive manuals vs. github docs and cheat sheets expensive trainings vs. quick and available MOOC
  20. 20. Thank you!

×