webos minitalk

22
CODE Training An EPS Company codemag.com/training WEB OS – AN INTRODUCTION Joseph Reynolds [email protected]

Upload: joe-reynolds

Post on 26-Jun-2015

502 views

Category:

Technology


3 download

DESCRIPTION

Joe\'s talk about webOS 3.x (enyo) at NHDNug on 8/18/2011

TRANSCRIPT

Page 1: webOS  MiniTalk

CODE TrainingAn EPS Companycodemag.com/training

WEB OS – AN INTRODUCTION

Joseph [email protected]

Page 3: webOS  MiniTalk

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

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

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

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

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

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

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

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

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

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

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

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

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

Final Gotcha

Page 17: webOS  MiniTalk

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

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

[email protected]

Page 19: webOS  MiniTalk

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

[email protected]

Page 20: webOS  MiniTalk

Check out our Podcast!

• CodeCast– The Late Night Show for .NET Developers– Companion Podcast to CODE Magazine

• codemag.com/codecast

Page 21: webOS  MiniTalk

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