Earlier quoted context omitted.
I do that to be able to do: ƒ('ul li:nth-child(2n)', 'style.background = "black"').
A better way to do that would be to split() it first on '=' then, split() the left side on '.' and iterate the results. You don't want to evaluate just anything anyone puts in that second argument.
ƒu.js - The Functional DOM traversing library.
41–47 of 47 posts
Re: ƒu.js - The Functional DOM traversing library.
#42There are alot of bad practices being used in this code. It gives the impression that you've (ab)used JavaScript for a long time, but haven't actually bothered to read the 101 introduction to the language. E.g.: try { eval('el.' + argv[1]); return el; } catch(e) { return null }; Why in the world would you do this? JavaScript has property access via bracket syntax for a reason: return el[argv[1]] || null; Give this a…
Re: ƒu.js - The Functional DOM traversing library.
#43Umm how the hell am I suppose to type "ƒ" every time? I know I can "map" it to some other character, but that kinda defeats the purpose, no? Other than that it looks nifty, but since I'm already using jQuery in all of my projects I don't think I have much use for it.
Re: ƒu.js - The Functional DOM traversing library.
#44Re: ƒu.js - The Functional DOM traversing library.
#45Earlier quoted context omitted.
A better way to do that would be to split() it first on '=' then, split() the left side on '.' and iterate the results. You don't want to evaluate just anything anyone puts in that second argument.
Well... Actually I do.
Consider that the "black" portion of that argument actually comes from user input and that you were passed instead:
black"); alert('This framework is awesome!
Try eval'ing that.
Re: ƒu.js - The Functional DOM traversing library.
#46Earlier quoted context omitted.
Ouch. There is value in being able to handle extremely harsh criticism. There is also value in being able to say things nicely, with the knowledge that your words will be more easily heard by the person on the other end, and put to use rather than dismissed out of anger.
There's also value in being right, which he definitely is. Whether anyone likes it or not, brutal honesty pushes everything forward.
Re: ƒu.js - The Functional DOM traversing library.
#47Earlier quoted context omitted.
There's also value in being right, which he definitely is. Whether anyone likes it or not, brutal honesty pushes everything forward.
Brutal honesty doesn't push things forward any faster than honesty.
Honesty without a push is just a statement and nothing more.