Your SlideShare is downloading. ×
0
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Win At Live With JavaScript Patterns
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Win At Live With JavaScript Patterns

497

Published on

These are my slides from the first HannoverJS MeetUp about JavaScript Coding Patterns.

These are my slides from the first HannoverJS MeetUp about JavaScript Coding Patterns.

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
497
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Winat live with JavaScript Patterns
    By Pascal PrechtHannoverJS 08/11
  • 2. I am not a Guru!
  • 3.
  • 4. Gutes Software-Design
  • 5. „Kaum etwas ist so schnellen Veränderungen unterworfen wie Software.“
  • 6. „Software muss erweiterbar sein.“
  • 7. Patterns
  • 8. Was ist ein Pattern?
  • 9. Eine Lösung für ein häufig auftretendes Problem.
  • 10. ...
    Eine bewährte Vorgehensweise, eine nützliche Abstraktion und eine Vorlage für das Lösen ganzer Problem-Kategorien.
  • 11. Welche Vorteile bieten Patterns?
  • 12. Vorteile von Patterns
    Besserer Code / Vermeidung von Redundanzen
    Abstraktion
    Bessere Kommunikation im Team
  • 13. Arten der Patterns
  • 14. Arten der Patterns
    Design-Patterns // Entwurfsmuster
    Coding-Patterns // Spezifische Muster
    Anti-Patterns // „Negative Assoziation“
  • 15. JavaScript Patterns
  • 16.
  • 17. Das funktioniert.
  • 18.
  • 19. Aber Vorsicht!
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. Hoisting
  • 25.
  • 26.
  • 27.
  • 28. Das Single-var-Pattern
  • 29.
  • 30. Vorteile des Single-var-Pattern
  • 31. Vorteile des Single-var-Pattern
    Zentrale Deklaration/Initialisierung
    Code ist leichter zu lesen
    Vermeidung logischer Fehler
  • 32. The better way!
  • 33. Objekte und Literale
  • 34.
  • 35. Very bad!
  • 36.
  • 37. Achtung!
  • 38.
  • 39.
  • 40. Das Object-Literal-Pattern
  • 41.
  • 42. Vorteile des Object-Literal-Pattern
    Weniger Code
    Objects sind „nur“ Hashes
    Keine Object-Constructor-Überraschungen
  • 43. But I need a constructor!
  • 44.
  • 45. Sh*t! I forgot the new!
  • 46. Ohne new zeigt this auf das globale Objekt!
  • 47.
  • 48. Muster zum erzwingen von new
  • 49.
  • 50. Funktionen
  • 51. Das Callback-Pattern
  • 52.
  • 53.
  • 54.
  • 55.
  • 56. Immediate-Function-Pattern
  • 57.
  • 58.
  • 59. Vorteile des Immediate-Function-Pattern
  • 60. Vorteile des Immediate-Function-Pattern
    Kapselung von Aufgaben
    Keine globale Variabeln
    Modulares Verhalten
  • 61. Das Immediate-Object-Pattern
  • 62.
  • 63. Vorteile des Immediate-Object-Pattern
  • 64. Vorteile des Immediate-Object-Pattern
    Globaler Namesraum wird frei gehalten
    Modulares Verhalten
    Private Hilfs-Funktionen sind deutlich erkennbar
  • 65.
  • 66.
  • 67. Das Configuration-Object-Pattern
  • 68.
  • 69.
  • 70.
  • 71. Vorteile des Object-Configuration-Pattern
  • 72. Flexibilität.
  • 73.
  • 74.
  • 75.
  • 76. Thank you!
  • 77. Stay tuned!
    Twitter: @PascalPrecht
    Blog: HopelessArt.com

×