Re:ƒu.js - The Functional DOM traversing library.
by masklinn on Sunday January 30, 2011 @11:47AM
(#2158395)
> whereas in jquery you're passing two arguments into a function without being able to see what they're for or what order they should be in.
Unless, of course, you've spent roughly 5mn reading upon how jQuery's getting and setting works. Then you know the first argument is a key and the second one is a value to set.
I can see you've also quickly moved the goalposts, from "fu.js's syntax is much nicer" (emphasis yours) to "I claim to undetstand what fu.js does without having read its documentation"
Re:ƒu.js - The Functional DOM traversing library.
by Tycho on Sunday January 30, 2011 @12:58PM
(#2158570)
Well in the original examples I responded to, I thought the syntax was considerably nicer, that's what I was commenting on. In the different examples (shifting goalposts...) someone responded to me with, the benefit was less pronounced. In general, jQuery has absolutely horrible syntax (IMO), so I can understand someone building a library to make a few small improvements like normal assignment statements.
some of the fu.js lines are a bit unwieldy but at least it's obvious to me what they do - i found jQuery code pretty bewildering until i delved into it