File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beginning Object-Oriented JavaScript

 
victor araujo
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stoyan!
It is nice to know that you talk about javascript design patterns in the book!
Is it possible to apply the same design priciples(like Don't repeat yourself and hollywood principle) that you apply in a server programming language like java?

thank you!
 
Stoyan Stefanov
author
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, of course, these are general programming principles, so they are just as valid in the javascript programming languages.

We all know that when considering different patterns, it's a good idea to keep in mind that we shouldn't use a pattern for the sake of using a pattern. Take that one step further and don't use a pattern in javascript only because it has worked for you in another programming language and you *know* it should work. The thing is that javascript may provide a more elegant solution, it's a dynamic and loosely-typed language.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic