DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations

Trending

  • Apache Kafka vs. Message Queue: Trade-Offs, Integration, Migration
  • Build a Simple Chat Server With gRPC in .Net Core
  • Building A Log Analytics Solution 10 Times More Cost-Effective Than Elasticsearch
  • The SPACE Framework for Developer Productivity
  1. DZone
  2. Culture and Methodologies
  3. Career Development
  4. Review: Learning JavaScript Design Patterns

Review: Learning JavaScript Design Patterns

Raymond Camden user avatar by
Raymond Camden
·
Apr. 17, 13 · Interview
Like (0)
Save
Tweet
Share
4.36K Views

Join the DZone community and get the full member experience.

Join For Free

I've been thinking a lot lately about client-side development (as is hopefully evident by the type of posts I've been making). I feel like I've finally gotten comfortable with JavaScript, but am looking for ways to bring my skill set to the next level. In general, I'm looking for ways to better organize my code. I know that design patterns can help me with that goal. So I was pretty excited to get "Learning JavaScript Design Patterns" by Addy Osmani. My expectation was that this book would give me a good overview of the various types of patterns I could apply to my client-side work. Unfortunately, I don't know if the book reaches that goal. Let me explain why.

The book does a good job of introducing the concept of patterns in general, as well as explaining why classical patterns that you may have applied from a traditional object-oriented environment may not apply as well to JavaScript. These are important concepts, but I feel like the book focuses a bit too much on them. There is an even an entire chapter dedicated to writing patterns before the reader is introduced to any actual patterns. It isn't a big chapter, but I felt like so much time was spent on theory in the beginning that people who are not traditional comp-sci folks (like many web developers) may be a bit put off. Right after the chapter on writing patterns is a discussion on anti-patterns. Again, I think this is an important concept, but it just continues to delay the introduction of proper JavaScript patterns.

When the book finally does get down to business (chapter 9), the examples are both good and bad. They are good in that they demonstrate the concept at hand, but bad in that there are very few practical examples. For example, a basket module (somewhat related to a shopping cart) in the abstract isn't terribly helpful. I was really hoping to see a full, if short, web application that demonstrated the pattern in use. I know "real" applications can be difficult, but I feel like too few of the code samples actually bring the concept home for the reader. As another example, there is an entire section on jQuery Plugin design patterns. To me, that seems like such a limited audience it just adds to the 'noise' of the book.

I think this is the biggest fault of the book. If you're experienced in traditional programming, you can take the book and use it well. If you're the traditional web developer (who typically learned in bits and spurts as they had to) then it will be very difficult to take practical benefit from this book.

This is something I find in many cases throughout the web community. I feel like there's a great deal of intro material, a great deal of very high end abstract material, and very little in terms of intermediate-level discussion. It feels painful to go from Beginner to Intermediate versus Intermediate to Advanced. I'm not sure if others feel that way, but thats how it seems to me.

I think I can recommend this book if you've got some experience with patterns already, but not if you're coming from a non-CompSci (or server-side) background. I've got a great deal of respect for Addy and would recommend his blog and any presentation he gives.

For folks curious about what type of material I think does do a good job of having practical examples, I'd strongly recommend the new series by Elijah Manor: The Angry Birds of JavaScript This is exactly what I'd like to see more of!

JavaScript Design Book Concept (generic programming) Web application Anti-pattern Web developer career

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Apache Kafka vs. Message Queue: Trade-Offs, Integration, Migration
  • Build a Simple Chat Server With gRPC in .Net Core
  • Building A Log Analytics Solution 10 Times More Cost-Effective Than Elasticsearch
  • The SPACE Framework for Developer Productivity

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: