• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JavaScript Ninja: Topics I'd like to see.

 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

    Thanks,
    Louis
     
    Sheriff
    Posts: 67746
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yes, there are whole chapters devoted to each of those topics. And we're certainly striving for "easy to understand". Otherwise, whats the point?
     
    Ranch Hand
    Posts: 136
    Eclipse IDE Ubuntu
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Bear,
    What the AJAX chapter, the very last one, says?
    As this is an advanced book, so anything advanced with AJAX discussed there?

     
    Bear Bibeault
    Sheriff
    Posts: 67746
    173
    Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    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.
     
    reply
      Bookmark Topic Watch Topic
    • New Topic