DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Frameworks
  4. Yahoo's New JavaScript Framework: Will Cocktails Change Your Life?

Yahoo's New JavaScript Framework: Will Cocktails Change Your Life?

John Esposito user avatar by
John Esposito
·
Nov. 04, 11 · Interview
Like (0)
Save
Tweet
Share
6.06K Views

Join the DZone community and get the full member experience.

Join For Free

Yahoo caught some eyes recently with Livestand, their new lifestyle app for iPad.

Now they're promising something for developers: the platform and framework they used to create Livestand -- an original blend of hot client- and server-side technologies they (cleverly?) call 'Cocktails'.

The general thrust of the announcement is another 'write once, run anywhere' promise:

Going forward, Mojito and Yahoo! Manhattan will allow you to develop ONE app and deploy it on several devices to lower cost, increase agility and keep a uniform design across platforms (web, mobile, tablet). With the power of Yahoo! Cocktails, you’ll be able to build that app – deployable on several platforms –in the same time it currently takes to build each app individually.

The Yahoo User Interface (YUI) served as foundation for the project. Here's how Satyen Desai, principal software engineer for YUI, explained why YUI's modularity and environment-agnosticism are exciting for developers:

  1. YUI’s core abstraction layer provides a consistent API across all supported environments allowing Cocktails, and hence Livestand to deliver components which can run on both the server and in client browsers across both the desktop and mobile devices.

  2. YUI’s modular structure and dynamic loading support allow for well-encapsulated and highly granular components, promoting a high level of code reuse and maintainability for large-scale Cocktail applications, without burdening the end user with dependency management.

  3. Conditional loading allows YUI, and applications built on top of it, to deliver implementations and code specific to the target environment – so Cocktails can deliver mobile or desktop or server based implementations behind a consistent API.

  4. YUI’s application-level building-blocks provide the infrastructure to build robust, extensible apps efficiently, either on the client or on the server.

For data access, Cocktails is powered by the Yahoo Query Language (YQL) platform, which was originally designed to provide (super-decoupled) SQL-like access to all kinds of web data sources. Yahoo's Mirek Grymuza describes YQL like this:

YQL can be thought of as content multiplexer with a query interface...With YQL's flexible table encapsulation model, expressed through environment files, applications can bundle multiple table implementations in a decoupled manner from the user interface and the client application itself. This allows the application user interface to rely on established content data class, rather than on multiple content endpoints, each with its own semantics. This is a critical piece of abstraction, especially considering the need to manage thin client applications, which often run native code, relying on a software update cycle. The problem is particularly pronounced when this update is controlled solely at user discretion. With YQL, and in this distributed model, the binding with a content provider is encapsulated within YQL table.

 

The theme repeats: the more abstraction, the more agnosticism, the better.

Some open-source projects with similar aims have surfaced before: Joshfire attempts something like Cocktails, and FaxJs offers a nice JavaScript UI framework (with pure JavaScript API). (Yahoo promises to open-souce Cocktails in 2012, though, so maybe the distinction is moot.)

I can't tell how big this announcement really is. The promise is huge, but everyone makes pretty much exactly this promise. And the announcement is just an announcement, not an actual release..so there's nothing for the developer really to see, yet.

Thoughts?

mobile app JavaScript Framework

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Apache Kafka Is NOT Real Real-Time Data Streaming!
  • OpenVPN With Radius and Multi-Factor Authentication
  • Test Execution Tutorial: A Comprehensive Guide With Examples and Best Practices
  • Public Key and Private Key Pairs: Know the Technical Difference

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: