aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes functional versus OOP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "functional versus OOP" Watch "functional versus OOP" New topic
Author

functional versus OOP

J. Kevin Robbins
Ranch Hand

Joined: Dec 16, 2010
Posts: 633
    
    7

I know the book focuses first on the functional aspects of Javascript because this is where the real power lies. But does it also cover the OOP aspects and how to use them properly?

For instance, I was just reading this page where it talks about wrappers for primitives. I wasn't even aware that Javascript had this feature or that they could get you in trouble. So much to learn...

btw, I realize this page is talking about things you shouldn't do, and the object wrappers are used internally, but I find this sort of "don't do it this way" information to be extremely helpful.


"There is no reason for any individual to have a computer in his home" ~ Ken Olson, Co-founder of DEC, 1977
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

Jk Robbins wrote:I know the book focuses first on the functional aspects of Javascript because this is where the real power lies. But does it also cover the OOP aspects and how to use them properly?

Yes. Chapter 6 focuses on object-orientation using the function's prototype property.

But remember that two important aspects of object-orientation in JavaScript are constructor functions, and the prototype property of functions. So even when using OO in JavaScript, we're right back to functions being the most important concept in the language.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: functional versus OOP
 
Similar Threads
Coders at Work - Looking Back at Djikstra's Support of OOP
What is AOP?
i want to touch OOP
How to retrieve string representation of <INPUT> value?
Functional Testing using jmeter