I am not experienced in javascript. I try to use some popular javascript libraries such as jQuery, Angular.js and Meteor.js.

I wonder if understanding the logic of functional programming (in javascript of course) will help in understanding and using these libraries better?

closed as unclear what you're asking by gnat, GlenH7, user40980, BЈовић, World Engineer Jul 29 '13 at 13:42

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 3
    One shouldn't even think of using Libraries or Frameworks before having a solid understanding of the language itself. This for every possible programming languages. – DieVarDump Jul 27 '13 at 11:40
  • 1
    Yes and absolutely. Lots of JavaScript code uses concepts from functional programming languages. Learning such a language - or even how to write in functional style - will surely broaden your understanding of JavaScript, as well as other programming languages. Paradigms are always good to learn. That said you'll be able to use jQuery just fine even if you don't know what an applicative is. – Benjamin Gruenbaum Jul 27 '13 at 14:38

Well JavaScript isn't truly a functional programming language. It borrows some functional idioms and the most important part is "Closures".

I would say study "Closures" carefully because it is such a powerful concept that it will help you to write clean and elegant code.

Also, I highly recommend that you read this chapter: Functional Programming

  • 2
    In fact, I wrote the question just while reading that chapter :) – Mert Nuhoglu Jul 27 '13 at 11:25
  • 1
    "JavaScript isn't truly a functional programming language" - eh, sure it is? It's just not a purely functional programming language. It's multi paradigm. JavaScript is as functional as C#, or Scala. It contains first class functions, closures and a lot of higher level code relies on map/reduce (flat)/filter to work. A language doesn't need algebraic types and static typing to be considered functional - I'm in love with languages like Haskell just as much as the next guy - but all those cool things aren't what make a language functional. – Benjamin Gruenbaum Jul 27 '13 at 14:40
  • 1
    Well, Closures is coming to Java 8. So Java is going to be a functional programming language? Objective-C has blocks but still, Objective-C isn't a functional programming language. Functional programming isn't about Closures. – Chiron Jul 27 '13 at 14:49

There is a great article in Mozilla Developer Network (MDN) specifically written for inexperienced Javascripters (sadly many of us think we are experienced, eventhough we aren't): A re-introduction to Javascript
It discusses, in simple terms, some of the most important characteristics and features of Javascript which are often unnoticed (sometimes confusing). (One among them is the concept of Closures)

  • Your answer leads up to addressing the OP's concerns but doesn't directly answer them. Please consider editing your answer and expanding on how the link you provided will assist in using the languages in a better way. – GlenH7 Jul 27 '13 at 15:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.