Navigation

Versions

2009 : Création
15/06/2012 : Citation cookbook
20/12/2012 : Mise à niveau

Contactez-nous

Kitpages
17 rue de la Frise
38000 Grenoble
tel : 04 58 00 33 81

Par Philippe Le Van (twitter accountplv) Dernière mise à jour : 20 December 2012

YUI 3, présentation générale

YUI 3, de quoi parle-t-on ?

YUI 3 (Yahoo User Interface) est une librairie Javascript créée par Yahoo!. Elle a pour objectif de rationaliser le développement javascript.

Citons quelques caractéristiques intéressantes de cette librairie :

  • Elle donne un cadre de programmation bien pensé (c'est l'avantage majeur de cette librairie).
  • Elle uniformise les accès au DOM en utilisant des sélecteurs CSS3 (comme jquery)
  • Elle uniformise le développement de widgets avec une architecture propre et robuste (plus complète que JQuery UI)
  • Elle apporte un cadre pour un "MVC client" (comme backbone)
  • Elle couvre un large spectre : navigateurs classiques, développement mobile, javascript server avec node.js, ...
  • La librairie est stable depuis 2009, opensource

Par où commencer ?

Pour débuter, je vous invite à consulter 2 pages :

Pourquoi utiliser YUI 3 ?

Il y a plusieurs arguments en faveur de YUI. A mon avis le plus pertinent est celui là. YUI est une libraire très globale qui couvre le spectre des librairies JQuery suivantes :

  • Backbone + underscore
  • Require JS
  • JQuery UI
  • une partie de JQuery mobile

YUI permet d'avoir un cadre cohérent et remarquement bien pensé à la place de plusieurs librairies hétérogènes.

YUI3 Cookbook

Evan Goer a sorti en juin 2012 le livre "YUI3 Cookbook" aux édition O'Reilly

Je recopie ici une partie de sa préface qui indique de façon limpide ce qu'apporte YUI3.

Either way, you’re probably thinking to yourself, “What exactly is YUI good for?” Or perhaps even more accurately, “What can I build with YUI that I can’t just do with jQuery?”

The short answer is that with the help of auxiliary libraries such as Underscore and Backbone, there’s little you can’t build with jQuery. jQuery is an excellent document object model (DOM), events, and Ajax abstraction library, and people use it to build beautiful pages every day.

The longer answer is that every library is designed to address a particular set of problems. YUI focuses on keeping the complexity of web applications from spiraling out of control. Its key strengths are modularity and structure.

  • “Modularity” means that YUI is not a monolithic library, but a toolkit for assembling highly tailored libraries. If you need AutoComplete and Calendar , you can load just those widgets and leave out all the others. If you need DOM manipulation but not XHR requests, you can load just the core DOM APIs without Ajax. Modularity is not tacked on as an afterthought, but baked deep into YUI’s design.
  • “Structure” means that YUI’s APIs guide you toward building applications as a set of orderly components. Because of this, YUI components all have very similar behaviors. If you know how to work with a YUI ScrollView , you already know a lot about how to work with a Slider , a DataTable , or any other YUI widget.

The most realistic answer is that the best way to determine whether a framework or library works for you is to try it out yourself. YUI is a powerful open source JavaScript and CSS toolkit for building web applications, but there are many other fine choices out there. This book aims to demystify YUI and help you make an informed decision.

Objectif de cette série d'article

Cette série de tutoriaux de Kitpages a deux objectifs :

  • documenter en français et de façon très pratique les éléments usuels de cette librairie
  • Centraliser plusieurs sources de documents
    • La documentation officielle
    • Des screencasts en tous genres (principalement issus du YUI Theater)

Liens

Quelques liens à aller voir en priorité

Remerciements

Un grand merci à Yahoo pour avoir développé et de publié sous licence BSD cette librairie.

Commentaires

Ajouter un commentaire
Everything is very open with a really clear clarification of the challenges.
It was truly informative. Your website is extremely helpful.

Many thanks for sharing!
I am curious to find out what blog platform you have 
been working with? I'm having some minor security 
problems with my latest site and I would like to find something more safe.
Do you have any suggestions?
Keep on writing, great job!
WOW just what I was looking for. Came here by searching for carriers
Hi there friends, its enormous paragraph regarding educationand entirely explained, keep it up all the 
time.
whoah this weblog is wonderful i love reading your posts.
Stay up the great work! You know, many people 
are searching round for this information, you can aid them greatly.
I'm amazed, I have to admit. Seldom do I come across a blog that's both 
equally educative and entertaining, and let me tell you, you have hit the nail on the head.
The issue is something not enough folks are speaking intelligently about.
I'm very happy that I came across this in my search 
for something regarding this.
If some one wants expert view regarding blogging after that 
i suggest him/her to go to see this website, Keep up the nice work.
If some one wants to be updated with most up-to-date technologies 
therefore he must be go to see this website and be up to date everyday.
Hi! I just want to give you a huge thumbs up for the great information you have here on this post.
I will be coming back to your website for more 
soon.
I am now not certain the place you are getting your info, but good topic.
I needs to spend some time finding out much more or working out more.
Thanks for fantastic information I used to be searching for 
this info for my mission.
It's amazing in favor of me to have a web page, which is helpful in support of my experience.

thanks admin
Hey! I could have sworn I've been to this 
blog before but after reading through some of the post I realized it's new to me.

Anyways, I'm definitely delighted I found it and 
I'll be book-marking and checking back often!
Cool blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple tweeks would really 
make my blog shine. Please let me know where you got your design. Thank you
I'd like to find out more? I'd like to find out some 
additional information.
After looking over a handful of the blog posts on your web page, I truly appreciate your way of blogging.

I saved it to my bookmark website list and will be checking back in the near future.
Take a look at my website as well and let me know how 
you feel.
Undeniably imagine that which you said. Your favorite justification seemed to be at the internet the easiest thing to be mindful of.

I say to you, I definitely get annoyed even as folks think about issues that they just don't recognize about.
You controlled to hit the nail upon the top and also outlined out the whole thing without having side-effects , folks could take a signal.
Will probably be back to get more. Thanks
Very quickly this website will be famous among all blogging and site-building visitors, due to it's pleasant content
This is a topic that is close to my heart... Cheers! Where are 
your contact details though?
Genuinely when someone doesn't understand after that its up to other visitors that they will help,
so here it occurs.
What's Taking place i am new to this, I stumbled 
upon this I have found It absolutely useful and it has helped me 
out loads. I hope to give a contribution & help different users like 
its aided me. Great job.
Everything is very open with a really clear description of the challenges.
It was truly informative. Your website is very useful. Thank you for 
sharing!
I always spent my half an hour to read this 
website's articles or reviews every day along with a cup of coffee.
I was suggested this blog by means of my cousin. I am now not sure whether this put up is written by way of him as nobody else realize such 
particular approximately my trouble. You're incredible!
Thanks!
You could definitely see your skills within the work you write.
The world hopes for more passionate writers such as you who 
are not afraid to say how they believe. Always go after your heart.
Hey! I could have sworn I've been to this site before but 
after reading through some of the post I realized it's new to me.
Anyhow, I'm definitely glad I found it and I'll be book-marking and checking back frequently!
Heya i'm for the primary time here. I came across this board and I to find It really helpful 
& it helped me out a lot. I am hoping to provide one thing back and 
aid others like you helped me.
Can I simply say what a relief to discover somebody that genuinely knows what they're talking about online.
You definitely know how to bring an issue to light and make it important.

More and more people must check this out and understand this side of 
your story. I can't believe you're not more popular given that you most certainly have the gift.
Thanks for sharing your thoughts on soft. Regards
Hi there, I check your blog like every week. Your writing style is witty, 
keep doing what you're doing!
What's Happening i am new to this, I stumbled upon this I have discovered It positively useful and it has 
aided me out loads. I hope to contribute & help different users 
like its helped me. Good job.
Hey there! Do you know if they make any plugins 
to protect against hackers? I'm kinda paranoid about losing everything 
I've worked hard on. Any tips?
Way cool! Some extremely valid points! I appreciate you penning 
this write-up and also the rest of the site is also very good.
Why is it that ladies not like pleasant guys? Guys are the male growth hormone-set to zero in on 20-something 
is within their propagation primary. You wish this female and we are pals and he or 
she is beautiful and contains the maximum persona but they're not the best person so if you ever question her out at any rate?
You'll want to ask her, she may experience exactly the same of course, if she would not it is possible to 
each be good friends. It is very doable he is nevertheless distressed with 
regards to a breakup and he is just not able to get 
considerable. Even even though you are actually exchanging electronic mails for a while, will still be best if you constrict 
sensitive information and facts such as for instance every one of your 
identify, aim for or workplace. Either you were accomplished at it, and 
you're just a bit rusty, or you will believed inferior for starters.

{{It will always be|Most commonly it is|It's always|It usually is|In most cases|It's usually} {good|great|excellent|very good|beneficial|superior} {in order to make|to make|to help make|so as to make|to ensure|to enable} {a list of|a summary 
of|a listing of|a directory of|an index of|a long list 
of} all {prices|costs|rates|price ranges|charges|selling 
prices} {of the|from the|with the|in the|on the|of your} {services|solutions|providers|companies|products and services|expert services} {associated with|related to|connected with|linked to|regarding|involving} {matchmaking|internet dating|dating|online 
dating} {sites that|websites that} {you’re interested|you are interested|it interests you} {in joining|to join}.