JavaZone2010
andersnorås
  i t ’s o n l y c o d e , m o m
WRITING
S o l i d
JavaScript
  CoDE!
Loves of
my life.
 E
Motorola 68000




                 z
Internet Explorer &
Netscape Navigator




                      z
Claim to Fame &                                                                               Schema
                     ...
Functions
Functions




Objects
Functions




Objects




                Closures
Functions
Friggin’ awesome
JavaScript
goodness!

 Objects




                         Closures
Functions
Functions
•Function Definition
•Functional Concepts
•Contexts & Scope
•Dynamic Invocation & Arguments
•Dynamic Definition & ...
Objects
Objects
•Prototype & The Prototype Chain
•Function Inheritance
•Enforcing Construction
•Class-based JavaScript
Closures
Closures
•Variable Scoping & Closure 101
•Enforcing Closure Context
•Advanced Functional Programming
S
O
L
I
D
S   ingle Responsibility Principle


O   pen / Closed Principle

L   iskov’s Substitution Principle


I   nterface Segrega...
http://www.prototypejs.org/


Underscore.js http://documentcloud.github.com/underscore/



 base2      http://code.google....
@anoras

mail@andersnoras.com

andersnoras.com
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Java Zone 2010 - Writing SOLID JavaScript
Upcoming SlideShare
Loading in …5
×

Java Zone 2010 - Writing SOLID JavaScript

274 views

Published on

Slides from my talk at JavaZone 2010. Sadly none of the fancy animations made it into the PDF version :-)

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
274
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Java Zone 2010 - Writing SOLID JavaScript

  1. 1. JavaZone2010
  2. 2. andersnorås i t ’s o n l y c o d e , m o m
  3. 3. WRITING S o l i d JavaScript CoDE!
  4. 4. Loves of my life. E
  5. 5. Motorola 68000 z
  6. 6. Internet Explorer & Netscape Navigator z
  7. 7. Claim to Fame & Schema canDeserialize deserialize(String) Enterpriseyness deserialize(XMLDocument) memberwiseClone serialize(Object) toString XsdSchema canDeserialize XmlSerialiser deserialize(String) deserialize(XMLDocument) canDeserialize memberwiseClone deserialize(String) serialize(Object) deserialize(XMLDocument) toString memberwiseClone serialize(Object) toString Reflection XmlElement lotsOfUnneed XmlAnyAttribute canDeserialize methods thatI deserialize(String) shouldNeverHave canDeserialize deserialize(XMLDocument) written deserialize(String) memberwiseClone deserialize(XMLDocument) serialize(Object) memberwiseClone toString serialize(Object) toString z
  8. 8. Functions
  9. 9. Functions Objects
  10. 10. Functions Objects Closures
  11. 11. Functions Friggin’ awesome JavaScript goodness! Objects Closures
  12. 12. Functions
  13. 13. Functions •Function Definition •Functional Concepts •Contexts & Scope •Dynamic Invocation & Arguments •Dynamic Definition & Rewriting
  14. 14. Objects
  15. 15. Objects •Prototype & The Prototype Chain •Function Inheritance •Enforcing Construction •Class-based JavaScript
  16. 16. Closures
  17. 17. Closures •Variable Scoping & Closure 101 •Enforcing Closure Context •Advanced Functional Programming
  18. 18. S O L I D
  19. 19. S ingle Responsibility Principle O pen / Closed Principle L iskov’s Substitution Principle I nterface Segregation Principle D ependency Inversion Principle
  20. 20. http://www.prototypejs.org/ Underscore.js http://documentcloud.github.com/underscore/ base2 http://code.google.com/p/base2/ http://jashkenas.github.com/coffee-script/
  21. 21. @anoras mail@andersnoras.com andersnoras.com

×