Recently stumbled upon
jQuery and
Interface extension to it. Twisted in the hands, I liked it.
But the post is not about that. It seems to me that anyone liked it mainly because they fit into the concept of “unobtrusive programming”, which is very close to me in spirit.
I will try to formulate as I understand it ...
')
The introduction of new features / technologies / protocols should not block the possibility of using old ones in case new ones for some reason may not be supported by a number of clients. Of course, only because it is possible.
With regard to the webdev ... probably because I do not like Flash. A client who does not have a flash player will not see the flash and all the information that may be contained in it. Though you burst, but not see. And for him, the disease, you will have to do a separate HTML-version of flash content (if there is content and not some kind of stupid banner), I mean, do double work. If the admissibility of double work is rejected as a vile heresy, then a violation of the concept of “unobtrusive programming” is obtained - using Flash makes it impossible to use the functionality dependent on it if Flash is not supported.
Proper use of the above JS libraries does not violate this concept. But - only the right. By proper use, I mean this: the site is done in HTML + CSS. Entirely. And only after it is made on HTML - the <script ...> tag is added there, which refers to JS-ki with a
single action - window.onload = function () {hang_HTML_with all_visual_labud (); } or something like that. jQuery can be used to hang up any visual crap HTML, which tags are properly classified.
What will it give ... A client without JS will calmly walk around the site, read the content, write to the guestbook, etc. The client with JS will do all this using a variety of bells and whistles such as partial reloading of pages, drop-down menus and other Labuda. The main point of all this - “various bells and whistles” will in no way interfere with the use of the site by those who are not supported by these bells and whistles.
By the way, I try to put this concept into practice. While it seems to be working, let's see what happens when we increase the scale ...
Oh yeah, the most important thing - the meaning of this post is not at all that Flash is bad, but HTML / CSS / JS is good. Not. Both technologies are merely an illustration of compliance and inconsistencies of the concept.
It just seems to me that following this concept brings the ideal closer and improves karma.