$bbtitle
Apple Stock: 204.19 ( 0.00 )
RSS RSS Twitter Twitter
Search:
AppleInsider.com Archives News Bytes Reviews Anonymous Mailer Submit Story AppleInsider Forums Mac Prices Polls Advertise on AppleInsider Contact AppleInsider
Save up to $300 on new MacBook Pros and up to $180 on brand new iMacs: Mac Pricing Guide updated Nov 27th (Find the best prices on Macs).
Wednesday, August 20, 2008

WWDC presenter talks iPhone development from .NET perspective

By Prince McLean

Published: 09:00 AM EST

At WWDC, noted author and cross platform development expert Kevin Hoffman presented a comparison of Apple's iPhone development tools with those available for Microsoft's Windows Mobile.

.NET Addict

Hoffman has written a series of books on Microsoft's .NET development frameworks and maintains The .NET Addict's Blog. He is relatively new to developing in Cocoa, but his understanding of both platforms gives him the unique ability to compare the two side by side.

At last year's WWDC, Hoffman presented a comparison of .NET vs. Cocoa. The session was so popular that he was invited back this year to talk about the mobile versions of both: Microsoft's .NET Compact Framework and Apple's Cocoa Touch, used in the iPhone and iPod touch.

Hoffman's presentation shed some light on the productivity and market potential programmers can expect when targeting iPhone development, and subsequently the code quality and quantity users can expect from mobile developers.

.NET CF vs iPhone SDK

For Windows Mobile development, Microsoft provides Visual Studio 2008 .NET CE 3.5 for development frameworks and SQLServer 2005 for database storage. Apple provides the UIKit for building graphical applications and includes SQLite on the iPhone.

Database Storage

According to an attendee's notes on the presentation, Hoffman noted that Microsoft's SQLServer "requires less hands on coding than SQLite," and that there's "more going on behind the scenes." On the iPhone, SQLite uses SQL query syntax and leaves "object relational mapping up to you. There's no CoreData" on the iPhone as there is in the Mac desktop environment.

Development Frameworks

On the other hand, Hoffman pointed out that while Cocoa Touch presents a consistent view-based controls hierarchy, the Compact Framework "steers you down the wrong path," according to the attendee's notes. Its "double click and code" design results in spaghetti that's hard to reuse, because form and form code are merged together.

Last year, Hoffman described the same principle with regard to their desktop equivalents: Microsoft's Visual Studio does not encourage MVC (Model-view-controller). It's too easy to stick code in views, for example, making development “spaghetti-friendly.” In contrast, Apple's Xcode “bakes in” MVC principles. There is no real choice in doing things in sloppy ways, and “that's a good thing.”

Graphics & Animation

Compact Framework includes DirectX Mobile, a 2D programmable graphics engine that is not easily available to controls. The iPhone uses Quartz 2D, which is available to controls.

CF's Direct3D is extremely low level and not hardware accelerated. Developers must write their own game loop. There is "no compromise between static forms and DirectX."

In contrast, the iPhone uses OpenGL ES. As with Core Animation, everything is a view on OpenGL, and graphics are hardware accelerated on the iPhone.

Different goals for WinCE and the iPhone

The differences between the two reflect different design goals at Apple and Microsoft, Hoffman pointed out. Compact Framework supports tall, wide, and small displays. Windows Mobile devices typically use a stylus and hard buttons versus the iPhone's touch screen. CF controls don't even have a double-click handler, while the iPhone doesn't have or need menus.

Layers of abstraction

Talking about hardware abstraction, Hoffman is reported to have said, "people assume that low level is bad," but described that you "can be close to the metal and write little code."

The iPhone presents a choice of layers to develop at, based on developers' needs, while with Microsoft's Compact Framework, there's "often no choice in layer available."

"If lower layers are bad, adding more layers on top won't help," Hoffman said, according to the attendee's notes. "Compact Framework is built on Windows Mobile, and shares too much in common with Win32." He described the design as a "palace on a trash heap."

Application deployment

Even once a project is finished, Hoffman is said to have pointed out that another big difference between the iPhone and Windows Mobile relates to how developers get their apps in the hands of users.

With Windows Mobile, you build an MSI (Microsoft Installer file) and distribute it to the customer yourself. They register the MSI with desktop ActiveSync, plug in the device and sync over the app. In most cases, they also need to perform an SQL 2005 install, along with an Compact Framework 3.5 install, as that software may not be up to date on the device. Afterward, there are additional steps on device itself required to install it.

The scaled-down computer environment of Windows Mobile devices means users can easily delete components of your apps, breaking them, and requiring extra support to figure out how to reinstall the missing components.

On the iPhone, developers simply build their app and send it to Apple. The iPhone has one source for deployment and shopping, so users are far more likely to find your app. Apple handles the financials, presents users with automatic access to the App Store, provides piracy protection using FairPlay DRM, and manages your marketing.

"Best mobile development platform ever"

Hoffman reportedly summed things up by contrasting Windows Mobile using a "crushed down version of Win32" with an "inconstant user experience," while the "iPhone is the single best mobile development platform ever." According to the attendee's notes, he also said that "writing Mac applications has made my Windows apps better."

Filed under : iPhone 20 Comments ] 
Story topics: Microsoft, iPhone 3G, Windows Mobile, iPhone SDK   Print ] [ Story Link ] 


Download Parallels 5.0 Today
Mac Poker players can play Full Tilt Poker for Mac and get 100% to $600 free with bonus code MP600, courtesy of Online Poker Mac
AppleInsider Features
Hot Forum Topics

Recent Articles
Black Friday Mac and iPod price guides: find the lowest prices
Black Friday Deals: Office, Fusion, Parallels, CS4, QuickBooks
Black Friday at Amazon: GPS units, cameras, printers, Blu-ray
Apple MacBook Pro prices slashed by up to $300, iMacs by $180
Apple posts tools for building TuneKit iTunes LPs and Extras
Apple domestic desktop sales strong, iPhone sales slow in China
Apple authorized resellers launch Black Friday sales early [Ux3]
Palm Pre users suffer cloud computing data loss
Apple sues one 'knock-off' maker, defends against another
iPhone users most likely consumers to pay for digital content
Apple's iPhone to be sold by largest U.K. retailer, Tesco
Apple seeks permanent injunction to prevent Psystar sales
Motorola passes Apple in brand loyalty among men - study
Apple and Live Nation debut iTunes live music program
Rival publishers rumored to align for iTunes-like magazine store
TV market looks to mimic Apple with cross-platform 'app store'
Users report issues with Apple's new Core i7-based iMac
AT&T continues to counter Verizon claims as Apple enters ad fray
Apple iPhone eats up 50% share of all mobile data traffic globally
End of iPhone exclusivity means boosted sales in Europe
Malicious worm attacks, steals data from jailbroken iPhones
Apple exec offers glimpse into App Store approval process
iPod touch camera rumors resurface with claimed spring release
iPhone to launch in South Korea at end of November
Smoking may void Applecare warranty due to "health hazard"
Inside Google's Android and Apple's iPhone OS as software markets
Apple's App Store approval process gets partially automated
TomTom to release iPod touch-specific GPS car kit
China Unicom expects 10% of 3G users on iPhone in 3 years
Steve Jobs e-mails terse response to upset Apple developer
Hack re-enables Atom processor compatibility for Mac OS X 10.6.2
Microsoft shareholders grill CEO about Apple, iPhone
Google outlines Chrome OS plans for netbooks
Sony announces iTunes competitor for music, movies, books
Apple investigates space-age fitness tracking technology
Web search statistics show Bing stagnant, Google growing
New apps said to make iPod touch more prominent in Apple stores
Piper: Apple tablet no more than $700, launch timing irrelevant
Major publisher preps for Apple tablet as delay, OLED rumors surface
AT&T faces setback in legal battle over Verizon ads [u]

AppleInsider Market Place

Sell your Laptop - working or not. Free shipping.: Get an instant online quote and sell your laptop today !

Believe in Office: Save Up To 25% on Office 2004 For Mac. Visit Our Site for Details!

IBackup - SMB Online Backup: IBackup is the preferred online storage and backup service of choice for SMBs for its ease of use, security and value. Offers automated backup and restore, file selection and securiy.

Download free software - everyday updated freeware files

 
Advertisements








AppleInsider RSS Feed
AppleInsider © 1997-2008
Please review our Privacy Policy.
Written/Edited/Compiled by the AppleInsider Staff.