Updated TextMate Bundle for YUI 2.8.0
November 30, 2009 at 3:15 pm by Ross Harmes | In Development | 1 Comment
Ross Harmes is a frontend engineer for Flickr. He is an author of the book Pro JavaScript Design Patterns, and he contributed a chapter to the upcoming volume High Performance JavaScript from O’Reilly.
I’ve recently brought my YUI bundle for TextMate up to date with version 2.8.0 of the library. It provides syntax coloring and documentation look-up for all of the utilities and widgets, as well as tab completion for the most frequently used parts of the library.
There are two ways to get the bundle:
-
Use Subversion to check out a the most recent copy
cd ~/Library/Application\ Support/TextMate/Bundles svn co http://svn.textmate.org/trunk/Bundles/JavaScript\ YUI.tmbundle/
- Download the bundle, unzip it, and put it in the ~/Library/Application\ Support/TextMate/Bundles directory
You can use the Bundle Editor within TextMate to view various code snippets and commands and become more familiar with the bundle. As with all TextMate bundles, everything can be customized; tab completion triggers, aliases (if you use Y.D instead of YAHOO.util.Dom for instance), snippets, and even the syntax coloring itself. If you want more information, there is a screencast from a few years ago that is still remarkably current.
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
In the Wild for November 30, 2009
November 30, 2009 at 12:43 pm by Eric Miraglia | In In the Wild | 1 CommentAs we get back into the swing of things post-Thanksgiving in the US, here are some of the YUI-related items we’ve noted in recent weeks. If we missed something, let us know in the comments; if you’d like to contribute an article to YUIBlog on your own YUI-related work, we’d love to see it — please see the contribution guidelines and send your article over.
Matt Snider’s YUI 3/PHP “Amazon Web Services Utility”: A great new project from Matt Snider, author of the YUI Storage Utility and lead frontend at Mint.com: “Amazon Web Services (AWS) provides a powerful tool for finding and evaluating just about any type of material goods. Whether you are searching by keywords or the UPC code, AWS can provide just about all the information you will ever need to know about a product. However, Amazon has put a lot of hurdles between you and the information you needs. First, as of August 15, 2009, AWS now requires that you sign all your requests. Secondly, they have terrible documentation and confusing error messages that do not always explain how to fix the problem. Amazon Web Services Utility is a YUI 3 JavaScript/PHP solution that simplifies interacting with AWS by handling the request signing process automatically and securely, and prevening or handling common errors. In addition to returning the result as XML, there is an additional ‘gallery-aws-json’ package that adds functionality to parse the XML data into JSON objects.”- YUI 2 in Use at PayPal: We’ve known this for awhile, but I gather we haven’t mentioned it on YUIBlog in the past: PayPal is one of many consumer financial sites using YUI. Currently, we’re seeing YUI 2.7.0 Yahoo, Dom, Event, Animation and Connection Manager on some pages in the PayPal workflow.

- CutMyPic Site Using YUI ImageCropper and More: Writes Sean: “Me and a friend built this little tool as we found ourselves always wanting to crop images, round their corners, and add a drop shadow, but didn’t want to open up the CPU hungry CS4 every time. In this site, we utilize YUI Reset, YUI ImageCropper, and YUI Slider. Although still in it’s beta form, we felt like the YUI ImageCropper was the easiest to modify in addition to not having to worry about any internal library conflicts.” (Original source.)

- Caridy Patiño Mayea’s YUI 3 Getting Started Guide: Caridy has a great set of YUI 3 getting-started suggestions up on his Random Bubbles blog.

- YUI 2 and 3 in Use on ActiveLog.com: Chris from ActiveLog wrote in to tell us “about a set of health and fitness sites that utilize YUI 2.x (soon to add some 3.x). We utilize the Connection Manager, TreeView, Dialog, Slider, and Calendar. ActiveLog is probably the most popular site we use these on, but we have a handful of other partner sites that use the same technologies via our fitness-partners.com site.” (Original source.)

- Improving YUI 3 DataSchema-XML: From the prolific Matt Snider: “I have recently been working on finalizing the Amazon Web Services Utility, which now supports all the non-cart operations and almost all the possible response groups. In the course of developing the JSON version of the utility, I had the opportunity to work closely with YUI3′s DataSchema-XML, and realized its several shortcomings: it doesn’t support nested schemas, the
resultListLocatorcannot be an XPath statement, and all lookups fail if the Amazon XML namespace is included. This article will look at how I implemented the first two improvements…”
Jekyll Base Powered by YUI CSS Grids: Raphael Bauduin has posted his Jekyll Base project to GitHub. Writes Raphael: “I was looking for a fast and simple way to maintain documentation for Dedomenon, the information storage engine behind MyOwnDB.Com. I was looking for a hosted system I didn’t have to maintain, but that would still give me full control of the content so I can move it to another system later if I want to.” You can read more about the project on Raphael’s blog (“Jekyll, YUI and GitHub: A Great Combination”). (Original source.)- KidZui Website Using YUI 2 Grids: We don’t do a great job of calling attention to all the sites using one of YUI 2‘s most popular components: CSS Grids. Here’s one that caught our attention recently — the website for KidZui, a browser for children 3-12. Great idea, nicely implemented.

- @triptych, “YUI3 Turns NIMBY into BYBBQ”: Andrew Wooldridge writes: “As I’ve been poking around in YUI3, much to its annoyance mind you, since nobody likes to be poked, I’ve notice something very different about it. With many javascript libraries, you get the sense that the authors would very much like you to give up all work in other libraries and join the “one true faith” of this library. Instead of using your own code to do drag and drop use OURS. Instead of using jQuery’s AJAX, use OURS. Instead, I get the impression that YUI3 is much more pragmatic in its purpose. Instead of chaining you to one way of doing things, it has this idea of “bringing in” libraries and functions when you actually need them, instead of dumping let another few milliseconds onto your site’s pageload at the beginning. This really frees you up because you can just load the bare bones set of code you need to get things going, and pull in other libraries on demand. It’s almost like LOD for javascript….” He’s got more to say…keep reading on his blog.
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
December BayJax: John Resig, “JavaScript Testing and Performance Analysis”
November 24, 2009 at 3:23 pm by Eric Miraglia | In Development, YUI Events | Comments OffBayJax returns to Yahoo! on December 11 with a talk from jQuery creator John Resig (@jeresig).
JavaScript Testing and Performance Analysis
Yahoo! HQ in Sunnyvale. Building E, Classrooms 9 & 10. Pizza at 5:30 p.m., talks start at 6:15 p.m.
A two-part talk: A comprehensive look at what you need to know to properly test your JavaScript code and an analysis of the popular JavaScript performance testing techniques and their shortcomings.
BayJax events at Yahoo! are free to the public, and we’d love to see you there. Head over to the BayJax site to register.
Can’t wait to see John’s talk? Here he is from his last visit to Yahoo! (January, 2009) delivering a talk entitled “The DOM is a Mess”:
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
YUI Theater — Todd Kloots: “Building Accessible Widgets with YUI 3″
November 23, 2009 at 8:39 am by Eric Miraglia | In Accessibility, YUI Theater | Comments OffWe wrap up YUI Theater coverage of YUICONF 2009 with a talk from Todd Kloots (@toddkloots) on the accessibility features of YUI 3: “Building Accessible Widgets with YUI 3.” Todd covers YUI’s support for keyboard handling, focus styling and management, ARIA roles and states, and much more. (Don’t miss Todd’s other YUICONF talk, “YUI 3 Sugar,” which is a great primer on other hidden gems in the library.)
If the video embed below doesn’t show up correctly in your RSS reader of choice, be sure to click through to watch the high-resolution version of the video on YUI Theater; the downloadable version is much smaller, optimized as it is for iPods, iPhones, and other handheld devices.
The Full Roster of YUICONF 2009 Videos on YUI Theater:
- Douglas Crockford: The State and Future of JavaScript — Yahoo! JavaScript Architect Douglas Crockford discusses the recent ECMA5 development process and efforts to improve the language in the future.
- Brendan Eich: ECMA Harmony and the Future of JavaScript — Brendan Eich, the creator of the world’s most popular programming language, talks about the struggle over the ES4 proposal and how it resulted in a specific set of proposals for ES5.
- Luke Smith: Events Evolved — YUI engineer Luke Smith provides a deep introduction to the YUI 3 event system including its support for DOM events, event delegation, synthetic events, and custom events.
- Todd Kloots: YUI 3 Sugar — YUI engineer Todd Kloots presents an indispensable introduction to YUI 3′s powerful suite of tools.
- Isaac Schlueter: Solving Problems with YUI 3 — YUI engineer Isaac Schlueter works through a real-world use case of building YUI 3′s forthcoming AutoComplete widget.
- Dav Glass: Contributing to YUI — YUI engineer Dav Glass introduces you to the YUI Gallery and steps through the process of making contributions to the YUI project.
- Allen Rabinovich: YUI 3 Infographics — YUI engineer Allen Rabinovich discusses the YUI 3 Charts implementation, currently under development.
- Reid Burke: Building YAP Applications with YUI — YUI engineer Reid Burke discusses the Yahoo! Application Platform and how you can use it, along with YUI, to reach Yahoo!’s vast audience.
- Matt Sweeney: YUI 3 Performance — YUI architect Matt Sweeney reviews principles of high-performance web development and looks at how best to implement those principles in YUI 3-based projects.
- Satyen Desai: A Widget Walkthrough — YUI engineer Satyen Desai provides a detailed tour of the YUI 3 widget subsystem.
- Todd Kloots: Building Accessible Widgets with YUI 3 — YUI engineer Todd Kloots demonstrates the accessibility toolkit built into YUI 3.
- Chad Auld: Introducing PHP Loader — Chad Auld of Yahoo! introduces the YUI PHP Loader, a flexible tool for loading modular JavaScript and CSS projects.
- Eric Ferraiuolo: Web App Development with YUI 3 — Eric Ferraiuolo of Oddnut Software talks about the nuances of deploying real-world web applications using YUI 3.
- Ron Adams: Automated Integration Testing with YUI Test, Selenium and Hudson — Yahoo! engineer Ron Adams discusses the creation of automated QA workflows that combine YUI Test, Selenium and Hudson to automate JavaScript unit tests.
- Stephen Woods: Creating Beautiful Documentation with YUI Doc — Yahoo! frontend engineer Stephen Woods provides a guided tour to YUI’s documentation engine, YUI Doc. YUI Doc is language-agnostic and can be used to document a variety of project styles.
- Matt Snider: Introducing the YUI 2.8.0 Storage Utility — Matt Snider, the lead frontend engineer for Mint.com (recently acquired by Intuit), contributed the YUI Storage Utility in the 2.8.0 release. In this session, he provides an overview of the Storage Utility’s features and the nuances of the various storage backends.
- Luke Smith: Debugging in YUI 3 — YUI engineer Luke Smith discusses the fine art of debugging web applications, looking at general tools and techniques and providing a few specific hints about debugging in YUI 3.
Subscribing to YUI Theater:
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
#followfriday: YUI Developers on Twitter
November 20, 2009 at 12:09 pm by Eric Miraglia | In Development | Comments Off
The @YUILibrary account on Twitter is a good information source for those of us who follow the project. Many of the individual developers who write YUI code every day are now on the service as well, and I wanted to gather all those accounts together in a single post for the sake of convenience.
Here’s the formal list, which you can follow as a group, and here are the individual accounts:
- @admo: Adam Moore is one of the original YUI engineers; among many other things, he has written the YUI Event Utility, YUI Doc, and the original version of the YUI PHP Loader.
- @allenr: Allen Rabinovich built YUI 2′s Uploader Control and SWF Utility; he’s currently working with Tripp Bridges on the new YUI 3 Charts project.
- @caridy: Caridy is our Miami Bureau Chief and best known as the author of the Bubbling Library for YUI 2; we looked at his latest gallery contribution yesterday.
- @chadauld: Chad Auld is the author of Yahoo!’s Sideline AIR app for Twitter (built with YUI), and he’s driven the open-source release of the YUI PHP Loader.
- @davglass: Dav does too many things to enumerate here, but his 2009 focus has been the YUILibrary.com site and the YUI 3 Gallery.
- @dezziness: Satyen Desai is hard at work building out the YUI 3 widget foundation; he owns Calendar and Container in the YUI 2 world.
- @drdrace: Andres Narvaez works on the YUI Carousel Control.
- @g13n: Gopal Venkatesan is YUI’s Bangalore Bureau Chief and leads development on the YUI Carousel Control.
- @goonieiam: Gonzalo Cordero is a frontend engineer at Yahoo! who has been organizing our participation in BayJax meetups and has contributed work to the YUI DataTable project.
- @izs: Isaac Schlueter is developing the new YUI 3 AutoComplete Control and has taken over development on YUI Compressor.
- @ls_n: Luke Smith is a coder, scholar, and teacher who owns, among many other things, the YUI JSON Utility.
- @msweeney: Matt Sweeney is a YUI project architect and author of numerous components in both YUI 2 and 3, including the YUI 3 Node component. (He spoke at YUICONF 2009 about performance in YUI 3.)
- @slicknet: Nicholas Zakas works on YUI’s Test, Profiler, and Cookie utilities.
- @standardpixel: Eric Gelinas has contributed work on the YUI DataTable Control.
- @toddkloots: Todd Kloots is the author of the YUI 2 Menu Control; these days, he’s thinking hard about accessibility and ARIA and making sure that YUI 3 is as accessible as possible. [It's worth noting that Victor Tsaran (@vick08) is our special consultant on issues of accessibility.]
Note: As is the case with social networks generally, what people post on Twitter represents their own momentary whim or deeply held conviction, not that of Yahoo! or the YUI project.
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
YUI Theater — Isaac Schlueter: “Solving Problems with YUI 3″
November 20, 2009 at 9:52 am by Eric Miraglia | In YUI Theater | 1 CommentIsaac Schlueter (@izs) is developing the YUI 3 version of AutoComplete. In this YUICONF 2009 session, “Solving Problems with YUI 3,” he shows you how he’s working with the core YUI 3 toolkit to address the various challenges inherent in developing a complex widget.
If the video embed below doesn’t show up correctly in your RSS reader of choice, be sure to click through to watch the high-resolution version of the video on YUI Theater; the downloadable version is much smaller, optimized as it is for iPods, iPhones, and other handheld devices.
Other Recent YUI Theater Videos:
- Luke Smith: Events Evolved
- Todd Kloots: YUI 3 Sugar
- Dav Glass: Contributing to YUI
- Allen Rabinovich: YUI 3 Infographics
Subscribing to YUI Theater:
More from Isaac
Isaac’s tech talk with Matt Hackett from the September Bayjax event, “Server-side JavaScript,” is available with a full transcription on YUI Theater.
Share and extend: Bookmark with del.icio.us | digg it! | reddit!
Using YUI 2 and YUI 3 Together: Even Easier with Caridy’s Wrapper Utility
November 19, 2009 at 12:53 pm by Eric Miraglia | In Development | 2 CommentsThe YUI 3 Gallery got an interesting new addition today: Caridy Patino Mayea’s YUI 2 Wrapper Utility. Wrapper allows you to pull in YUI 2 modules from YUI 3 use() statements. Check out Caridy’s documentation for the Wrapper here.
How easy? Here’s a full example. All that we start with is the 6.2KB (gzip) YUI 3 seed file; Caridy’s Wrapper and the built-in YUI 3 Loader take care of the rest:
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.0.0/build/yui/yui-min.js"></script>
<div id="demo" class="yui-navset">
<ul class="yui-nav">
<li><a href="#tab1"><em>Tab One Label</em></a></li>
<li class="selected"><a href="#tab2"><em>Tab Two Label</em></a></li>
<li><a href="#tab3"><em>Tab Three Label</em></a></li>
</ul>
<div class="yui-content">
<div id="tab1"><p>Tab One Content</p></div>
<div id="tab2"><p>Tab Two Content</p></div>
<div id="tab3"><p>Tab Three Content</p></div>
</div>
</div>
<script language="javascript">
YUI({
modules: {
'gallery-yui2': {
fullpath: 'http://yui.yahooapis.com/gallery-2009.11.19-20/build/gallery-yui2/gallery-yui2-min.js',
requires: ['node-base','get','async-queue'],
optional: [],
supersedes: []
}
}
}).use('gallery-yui2', function(Y) {
Y.yui2().use("tabview", function () {
var myTabs = new YAHOO.widget.TabView("demo");
});
});
</script>
Check out the YUI 2 Wrapper and many others on the YUI 3 Gallery.
Share and extend: Bookmark with del.icio.us | digg it! | reddit!

Copyright © 2006-2012 Yahoo! Inc. All rights reserved. Privacy Policy - Terms of Service
Powered by WordPress on Yahoo! Web Hosting.


