This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Beginning Object-Oriented JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Beginning Object-Oriented JavaScript" Watch "Beginning Object-Oriented JavaScript" New topic
Author

Beginning Object-Oriented JavaScript

victor araujo
Greenhorn

Joined: Mar 17, 2004
Posts: 14
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

Joined: Jul 16, 2008
Posts: 61
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.


<a href="http://www.thinkinginjavascript.com" target="_blank" rel="nofollow">my OOJS book</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Beginning Object-Oriented JavaScript
 
Similar Threads
how to identify the pattern ?
Please help me on String Validation
Important Info about SCEA
ListBox
validate form fields using javascript in struts