webos minitalk
DESCRIPTION
Joe\'s talk about webOS 3.x (enyo) at NHDNug on 8/18/2011TRANSCRIPT
About the Presenter
Joseph Reynolds
• Senior Software DeveloperEPS Software Corp.
About CODE & EPS Software Corp.
• Custom Software, Training, and Consulting– .NET, SQL Server, SharePoint,…– Specialists in converting to .NET– Object and Service Oriented Development– Database Development– User Interface/ Web• ASP.NET, WinForms, WPF, Silverlight, iPhone
EPS is Hiring!
• We are currently hiring all positions!– Project Management, Developers, Designers– Employees and Contractors– CODE Network
• Send us an email if you are interested or know someone!– [email protected]
Agenda
• What is webOS?• Where is it headed?• Developing• Debugging• Things to think about• Code (if we have time)• Demo a quick app
What is webOS?
• Introduced by Palm in 2009• Acquired by HP in 2010– The key asset and primary motivation for the
purchase of Palm by HP at this time• Runs on a Linux Kernel• Current versions– webOS 2.x (mojo): phones– webOS 3.x (enyo): tablets
What is the Future?
• webOS and Windows dual-booting on HP desktops and laptops– Sometime in 2012
• Phones – Pre3 imminently, others soon.
Developing in webOS
• 2 ways to develop– SDK– PDK
• Enyo PDK– Plug-In Development Kit– Geared towards game developers– Utilizes C\C++– Allows developers of games on other platforms to
port their software to webOS
Enyo SDK
• Primary development kit for webOS developers
• Utilizes JSON objects and JavaScript to create a UI and set up events and methods.
• Generates HTML5 and CSS3 to support the UI
IDE Concerns
• Eclipse– Mostly useful for mojo apps– Can theoretically be used for enyo
• Jetbrains WebStorm– Again, mostly useful for mojo– Somewhat more user-friendly than eclipse
• Notepad++– My preferred IDE
• Console2– Use to run command-line tools– Handle source control things
Command-Line Tools• Palm-Generate
– Limited to Mojo• Palm-Package
– Generate a package file, which can be installed on webOS devices• Palm-Install
– Install a package file• Palm-Launch
– Launch and installed app• Palm-Log
– Display Console Log info for webOS Apps• Palm-Run
– Package, install, launch and app, then log all the output to the console.– This is the single coolest command-line tool in the debugging arsenal.
Debugging with Chrome
• The main tool for debugging an Enyo app is Chrome
• Requires a couple of switches on the command line
• "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --allow-file-access-from-files --disable-web-security --enable-file-cookies
• I typically set up a shortcut from the desktop
Debugging via Emulator
• Once things are working in Chrome, you’ll want to test in an Emulator
• Uses Oracle Vbox• Use Palm-Run to send to the Emulator• Make sure you power down the emulator
after a debugging session, or you will lose network connectivity
• Fairly fast power-up time – nothing like Android Emulator.
Reasons to use webOS
• HP is backing this fairly heavily– By 2012, all desktops, laptops, and devices will
dual-boot webOS and Windows• The framework is easy to work with• There’s an awesome community of developers
working on cool stuff• It’s a lot of FUN!!!
Gotchas
• Tooling is rough– Notepad is cool, but intellisense would be nice!
• Palm-Generate is only for mojo– Not a big deal, but left me scratching my head
• Documentation is available, but not obvious– The API Reference at https://
developer.palm.com/content/api/reference/enyo/enyo-api-reference.html is awesome!
Final Gotcha
CODE Training
• CODE Magazine is now offering training classes!– On-site and remotely
• Various Topics Announced!– WPF & Silverlight– WCF– ASP.NET Ajax, MVC, jQuery,…– Azure– iPhone for .NET Developers– …
• Custom training and mentoring also available
CODE Training Coupon
• Get a discount of CODE Training classes• See the schedule at
www.codemag.com/training • To get the discount, email Christopher at
Free CODE Consulting
• You are also entitled to a free 1-hour consultancy if you need a recommendation as to what technologies to use in your project(s)– Also contact Christopher
Check out our Podcast!
• CodeCast– The Late Night Show for .NET Developers– Companion Podcast to CODE Magazine
• codemag.com/codecast
CODE TrainingAn EPS Companycodemag.com/training
Q&A
CONTACT US WITH QUESTIONS!
CODE/EPS Contact:[email protected]/codemagtwitter.com/codemagazine
Presenter Contact:
[email protected] facebook.com/JosephMarkReynolds
twitter.com/iddJoe
References
• Enyo API Reference• WebOS Wikipedia Entry• Download the SDK \ PDK• Palm Developer Center• http://techcrunch.com/2011/08/18/its-official
-hp-kills-off-webos-phones-and-the-touchpad/