jon trelfa presentation from desktop to web – getting it right

22
From Desktop to Web – From Desktop to Web – Getting it Right Getting it Right Jon Trelfa Adayana, Inc.

Upload: ajax-experience-2009

Post on 18-Jun-2015

610 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Jon Trelfa Presentation From Desktop To Web – Getting It Right

From Desktop to Web – From Desktop to Web – Getting it RightGetting it Right

Jon TrelfaAdayana, Inc.

Page 2: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Project GoalsProject Goals

• Migrate Mediaflightplan from the desktop to

a web-based application

• Provide a registration mechanism tied to the

student’s textbook

• Reduce or eliminate the ability to share a

license

Page 3: Jon Trelfa Presentation From Desktop To Web – Getting It Right

What is “Mediaflightplan”?What is “Mediaflightplan”?

• Media/Ad campaign planning simulation

software

• Target audience: College Students and

Professors

• Used in conjunction with a textbook

Page 4: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Basic WorkflowBasic Workflow

Page 5: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Goals of the SimulationGoals of the Simulation

• Target demographic gets the best

advertising coverage

• Campaign is within budget

Page 6: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Why?Why?

• Software piracy ~ 50%

• 1 CD -> all PCs in the lab

• Professor’s instructions included the

use of whiteout on reports to update

the student’s name

Page 7: Jon Trelfa Presentation From Desktop To Web – Getting It Right

• Software updates were expensive

• CDs distributed with books

• No internet updates• College network restrictions

• Internet not prevalent in the first

releases anyway

Page 8: Jon Trelfa Presentation From Desktop To Web – Getting It Right

DemoDemo

Version 4: Last desktop release(Version 1 was released in 1986)

Page 9: Jon Trelfa Presentation From Desktop To Web – Getting It Right

DemoDemo

Version 5: First Web Release: 2007

Page 10: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Advantages of V5Advantages of V5

• Significantly reduced piracy (increased sales!)

• Reduced maintenance/upgrade costs:

• V4->V5 upgrade ~20% cheaper than

desktop software upgrade

• 3 subsequent updates ~90% cheaper

Page 11: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Lessons Learned with V5Lessons Learned with V5

• Bandwidth

• Off-peak 5GB/month

• Peak – 60GB/month

• Performance

• Too many simultaneous users

caused timeouts

Page 12: Jon Trelfa Presentation From Desktop To Web – Getting It Right

• Click-wait-click (web 1.0) broke the workflow of

previous versions

• Colleges don’t like cookies

• Shared hosting model lasted 2 months

• Larger code base

• Limited Browser Compatibility (IE/Firefox only)

Page 13: Jon Trelfa Presentation From Desktop To Web – Getting It Right

DemoDemo

Version 6: Current Release: 2009(Ajax-ified)

Page 14: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Advantages over V5 - bandwidthAdvantages over V5 - bandwidth

V5

• 125KB per page

• Full page reload per

step

• Complete

Simulation: 12MB

V6

• 600KB initial

download

• XHR – 1KB each

• Complete

Simulation: 700KB

Page 15: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Advantages over V5 - UsabilityAdvantages over V5 - Usability

V5

• 1 Click –> 1 page

reload

• Limited keyboard

shortcuts

• Have to remember

where you left off

• IE/FF Only

V6

• No page reloads

• Keyboard shortcuts

similar to a desktop

application

• Immediate feedback

• All Major Browsers

Page 16: Jon Trelfa Presentation From Desktop To Web – Getting It Right

DisadvantageDisadvantage

• Had to rewrite the textbok

Page 17: Jon Trelfa Presentation From Desktop To Web – Getting It Right

V6 - TechnicalV6 - Technical

• Prototype/Scriptaculous

• Modalbox.js

• Blueprint CSS Framework

• CodeIgniter PHP Framework

• FamFamFam Silk Icon Set

Page 18: Jon Trelfa Presentation From Desktop To Web – Getting It Right

JavaScript TidbitsJavaScript Tidbits

• $ and $$ become slower as the document

becomes larger

• $(‘element’).select()

• Bound events are lost when you clone an

element

• $(‘element’).remove()

Page 19: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Browser issuesBrowser issues

• parseFloat().toLocaleString():

• FF: 1,024,123

• IE: 1,024,123.00

• Safari: 1024123

• Have to explicitly trap the Enter key in Safari or it

will submit whatever form you’re in

• IE8 Broke my IE-specific fixes

Page 20: Jon Trelfa Presentation From Desktop To Web – Getting It Right

AdviceAdvice

• Identify your IP before putting anything into

Javascript

• We use XHR calls to get the IP-related

data (calculation results)

• Try to hack your app:

• can it run standalone?

• Have I reduced the barrier of entry?

Page 21: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Please complete Please complete an evaluation. an evaluation.

Page 22: Jon Trelfa Presentation From Desktop To Web – Getting It Right

Question?

Questions?Questions?