It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes JavaScript Ninja: Topics I'd like to see. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JavaScript Ninja: Topics I Watch "JavaScript Ninja: Topics I New topic

JavaScript Ninja: Topics I'd like to see.

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 434
I'm a java programmer. When I switch to JavaScript, I find some concepts are hard to understand.

  • Functional Programming.

  • It's a new concept to programmers who get used to OO. Function is the first-class object, can be assigned to a variable, passed as parameters and returned from other functions. When I finally get it(I'm not sure if I *really* get it.), it gives me a great pleasure to programming. I feel good when I read EloquentJavaScript. That book covers a lot of functional programming. It even covers MapReduce!

  • Closure

  • I'm still not sure if I get it. Context binding with functions. I use it in my program, But I don't feel the power of it. What does closure bring to programming? What could not be done or harder to do without closure?

  • Prototype based inheritence

  • I find the articles by Yehuda Katz is very good at explaining the concept.
    Understanding JavaScript Function Invocation and "this"
    Understanding "Prototypes" in JavaScript

  • How to write OO style program with Prototype based inheritence.

  • I find some utility methods to help programmers write OO style program easier. And the js libraries provide such modules. Take Dojo for example, I can write with it without knowing javascript's prototype.

    These are the hard problems from a perspective of a java programmer. Does your book covers these topics in an easy to understanding way? I do read lots of articles on these topics. But I don't think I totally get them.


    To be or not to be. It's a question.
    Bear Bibeault
    Author and ninkuma

    Joined: Jan 10, 2002
    Posts: 63852

    Yes, there are whole chapters devoted to each of those topics. And we're certainly striving for "easy to understand". Otherwise, whats the point?

    [Asking smart questions] [About Bear] [Books by Bear]
    Sujoy Choudhury
    Ranch Hand

    Joined: Sep 17, 2008
    Posts: 136

    Hi Bear,
    What the AJAX chapter, the very last one, says?
    As this is an advanced book, so anything advanced with AJAX discussed there?

    Thanks and Regards,
    Bear Bibeault
    Author and ninkuma

    Joined: Jan 10, 2002
    Posts: 63852

    As I said, there are some changes being made to the ToC from what was proposed all those years ago, and looks like there will be no Ajax chapter in the final book. It turned out that Ajax is the kind of subject that can't be contained to a single chapter -- that's just not enough room to be able to cover the topic in a way that is useful or does it justice.
    I agree. Here's the link:
    subject: JavaScript Ninja: Topics I'd like to see.
    It's not a secret anymore!