webos minitalk
DESCRIPTION
Joe\'s talk about webOS 3.x (enyo) at NHDNug on 8/18/2011TRANSCRIPT
![Page 2: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/2.jpg)
About the Presenter
Joseph Reynolds
• Senior Software DeveloperEPS Software Corp.
![Page 3: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/3.jpg)
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
![Page 4: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/4.jpg)
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]
![Page 5: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/5.jpg)
Agenda
• What is webOS?• Where is it headed?• Developing• Debugging• Things to think about• Code (if we have time)• Demo a quick app
![Page 6: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/6.jpg)
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
![Page 7: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/7.jpg)
What is the Future?
• webOS and Windows dual-booting on HP desktops and laptops– Sometime in 2012
• Phones – Pre3 imminently, others soon.
![Page 8: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/8.jpg)
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
![Page 9: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/9.jpg)
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
![Page 10: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/10.jpg)
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
![Page 11: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/11.jpg)
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.
![Page 12: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/12.jpg)
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
![Page 13: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/13.jpg)
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.
![Page 14: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/14.jpg)
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!!!
![Page 15: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/15.jpg)
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!
![Page 16: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/16.jpg)
Final Gotcha
![Page 17: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/17.jpg)
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
![Page 18: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/18.jpg)
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
![Page 19: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/19.jpg)
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
![Page 20: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/20.jpg)
Check out our Podcast!
• CodeCast– The Late Night Show for .NET Developers– Companion Podcast to CODE Magazine
• codemag.com/codecast
![Page 21: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/21.jpg)
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
![Page 22: webOS MiniTalk](https://reader034.vdocument.in/reader034/viewer/2022042521/558cf4efd8b42a690f8b468f/html5/thumbnails/22.jpg)
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/