Continue this conversation via emailGet only replies to your comment, the best of the rest, as well as a daily recap of all comments on this post.
I guess there is no way that anyone can stop you from writing functionalities that are not there in the library.
Do not build for yourself or the browser — build for the next developer who takes over from you. RT which may or may not already existas RT.
I'm ready to accept the fact that JS is more flexible although sometimes this flexibility is a result of being incompletebut I would like to see how professional JS programmers code.
Module Loader Compatibility You may or may not use a module loader. You can do that with inline HTML comments and then strip the comments out when you load the template.
Frameworks on the serverside I can get behind, but JS frameworks, best I can see is that if a client wants me to work with a JS framework the job takes longer and costs them more and fills my pockets even more. The only snag is to tell them which IDs are needed and if there are certain HTML constructs that need to be in the order you defined.
Some devices, such as mice and keyboards, allow configuration through an interface provided with or by the device. Since when did this need a framework? A cleaner way is to return the link and cover the extra cases in the main functions that need them.
Take the advice below to heart and keep it in a part of your brain that has a quick access route so you can apply it without thinking about it. Use shortcut notation when it makes sense Shortcut notation is a tricky subject: It is easier to wrap the whole thing in an anonymous function and protect the scope that way.
API Design: A Struggle of Good vs. Evil. As you can see, we’re calling our library Dome, because it’s primarily a DOM library. Yes, it’s lame. We’ve got a couple of things going on here.
First, we have a function; it will eventually be a constructor function for the instances of our library; those objects will wrap our selected or created elements.Download