Click here to close now.

Welcome!

.NET Authors: Liz McMillan, Elizabeth White, Pat Romanski, Jaynesh Shah, Carmen Gonzalez

Related Topics: Silverlight, .NET

Silverlight: Blog Feed Post

Windows Phone 7 Series – Initial Developer Impressions

You can choose to either develop for the platform in Silverlight or you can use the XNA toolkit

Windows Phone 7 Series (hereafter I'll just call it WP7) debuted a while ago at a press event but it's true coming out party was this past week at MIX 2010. This conference is a designer-developer hybrid conference and, of all the Microsoft development conferences I've ever attended, this has consistently been the most informative and exciting of the bunch.

In case you've been hiding under a rock this past week, Microsoft has been showing off WP7 and the development experience for it. I'm going to oversimplify here, but this is the basic idea: You can choose to either develop for the platform in Silverlight or you can use the XNA toolkit normally used for building XBox and PC games in C#. WP7 has all the trimmings including push notifications, rich GUI (hardware accelerated), rich audio, the full power of Silverlight's media control, and it even has Xbox live integration allowing you to unlock achievements by playing games on the phone. Development tool is standard Visual Studio and for the Silverlight model you can use Expression Blend 4 to build you GUI (and there are some fantastic new improvements in Blend 4).

I'm going to talk mostly about the Silverlight experience here since the last time I used XNA it was in beta and XNA has come a long way since then and I couldn't possibly do it justice. Your application is made of up pages (this concept should be familiar to SL3 developers), with each page acting like a specialized SL user control. These pages can have an application bar, which is similar to an iPhone tab bar control. The difference is that when you tap the elipsis ("...") on the WP7 app bar, the app bar expands without you losing context while the iPhone tab bar "more" button transitions you to a fairly bland table view controller. At this point you can do pretty much anything you would normally be able to do in Silverlight, but you also get things like raw access to audio from the microphone, pickers for all native types of data on the phone like contacts, etc and the ability to send e-mails and SMS - all the stuff you'd expect to have.

So, how does it feel to code for this thing and, more importantly, how does it compare to writing iPhone apps? First, let me preface this by saying that I've been writing iPhone apps off and on since before the SDK came out and we had to "fake it" with clever CSS and HTML and for the past few months I've been seriously writing heavy duty iPhone apps for real businesses. On many occasions over the past few months, I've said that developing for the iPhone was 'fun' and 'what coding should be like'. That said, I have also forcibly rammed my head into my desk out of frustration with certain aspects of the iPhone development process.

Writing apps that look and feel like iPhone apps that look just like every other iPhone application is a task that takes little to no effort. I can go from empty project to a data-driven table view controller on the iPhone in pretty much no time at all. I can also do the same thing on the WP7 tools in about the same amount of time. Where the two begin to diverge is when I want to start customizing. I won't go into painful detail here because I plan on making a bunch of blog posts about WP7 and comparing it to the iPhone later. There are a few points that I want to make, however:

Push Notifications

As I said, I plan on delving into individual topics as I blog more about this, but I wanted to bring this up specifically. Dealing with the App Store and with the Developer Portal in general on the iPhone is a headache at best. When you add into it the juggling, management, and eventual botching of certificates and provisioning profiles, the mess gets even worse. Now you add into it the debacle of getting certificates based on provisioning profiles that are used by your servers to send push notifications to registered iPhone devices and it can bring the strongest of men to weeping on his knees. From firsthand experience, the act of getting your first push notification to work on an iPhone/iPod touch application is akin to climbing mount everest and when you get to the top you're thinking, "#@*! I have to do this again!?" With Apple, the phone contacts Apple to get a notification token (assuming the application is using a provisioning profile configured for notifications), the token then has to be sent by the app's code to the app owner's server for storage. That server needs to be configured with the right certificates to that it can send a proprietary binary package of goo containing the notification to Apple's servers, which will eventually make its way down to your app. Trust me, getting this to work is a victorious moment, preceded by weeks of eye-gouging pain.

Here's how it works with WP7: App gets a unique notification URI that represents notifications for that app on that device. App sends the URI to the app owner's server. When you want to send a notification, HTTP POST the contents of that notification (XML payload) to Microsoft's notification server. That's it. Done.

Small side note here: I like that you can send unobtrusive toasts with WP7 far better than sending modal dialog boxes with iPhone, they feel more like the Palm Pre notifications than iPhone dialogs. There are no certificates and private keys to manage, there are no provisioning profiles to deal with, there are no certificates required to be present on the notification sending server and there is no management portal you have to go to in order to maintain this stuff. For the first time recent history, Microsoft took the "it just works" approach whereas Apple's is hideously and unnecessarily complex.

GUI Customization

I alluded to this earlier in the post. If what I want to do is display two rows of textual information in a table view cell, then the iPhone gives me that out of the box and my application will feel perfectly at home on the device. However, when I want to mix in some icons and some other gauges and indicators that might not fall into the existing line-up of controls, I quickly drop from feeling safe and secure to feeling like I'm back in the low-level Windows programming days of yore where everything I do needs to be a custom view with a custom render/paint method. It gets tedious, difficult, and time-consuming FAST.

Because WP7 lets me do all this stuff in Silverlight, I can use the advanced, composited, declarative UI to do truly remarkable things in very little time at all. I could make the cells in my table view (list view or grid in SL) have three rows and put whatever controls I want in there. Creating a type of UI that doesn't exist in the stock toolbox in Silverlight is easy... doing the same in the iPhone feels positively primitive by comparison.

Overall Experience

As you'll see in the blog posts I'm planning on doing, WP7 development is like a  breath of fresh air. It's funny, because I remember saying that when I first got my hands on the iPhone SDK and I was comparing iPhone development to Compact Framework for Windows Mobile. Cast aside all your preconceived notions about all previous versions of Microsoft mobile OS development - this is something entirely new. Also, keep in mind that when you build your mobile app in Silverlight, if you do it with a little forethought, you could potentially share 90+% of your code for an app that works on WP7, on a PC, and on a Mac.

I will still build apps for the iPhone, but only because people continue to want to pay me to do so. From now on, my mobile development for pleasure is going to be entirely WP7 based.

 

Read the original blog entry...

More Stories By Kevin Hoffman

Kevin Hoffman, editor-in-chief of SYS-CON's iPhone Developer's Journal, has been programming since he was 10 and has written everything from DOS shareware to n-tier, enterprise web applications in VB, C++, Delphi, and C. Hoffman is coauthor of Professional .NET Framework (Wrox Press) and co-author with Robert Foster of Microsoft SharePoint 2007 Development Unleashed. He authors The .NET Addict's Blog at .NET Developer's Journal.

@ThingsExpo Stories
The true value of the Internet of Things (IoT) lies not just in the data, but through the services that protect the data, perform the analysis and present findings in a usable way. With many IoT elements rooted in traditional IT components, Big Data and IoT isn’t just a play for enterprise. In fact, the IoT presents SMBs with the prospect of launching entirely new activities and exploring innovative areas. CompTIA research identifies several areas where IoT is expected to have the greatest impact.
The 4th International Internet of @ThingsExpo, co-located with the 17th International Cloud Expo - to be held November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA - announces that its Call for Papers is open. The Internet of Things (IoT) is the biggest idea since the creation of the Worldwide Web more than 20 years ago.
The Industrial Internet revolution is now underway, enabled by connected machines and billions of devices that communicate and collaborate. The massive amounts of Big Data requiring real-time analysis is flooding legacy IT systems and giving way to cloud environments that can handle the unpredictable workloads. Yet many barriers remain until we can fully realize the opportunities and benefits from the convergence of machines and devices with Big Data and the cloud, including interoperability, data security and privacy.
The Internet of Things is tied together with a thin strand that is known as time. Coincidentally, at the core of nearly all data analytics is a timestamp. When working with time series data there are a few core principles that everyone should consider, especially across datasets where time is the common boundary. In his session at Internet of @ThingsExpo, Jim Scott, Director of Enterprise Strategy & Architecture at MapR Technologies, discussed single-value, geo-spatial, and log time series data. By focusing on enterprise applications and the data center, he will use OpenTSDB as an example t...
The Internet of Things is not only adding billions of sensors and billions of terabytes to the Internet. It is also forcing a fundamental change in the way we envision Information Technology. For the first time, more data is being created by devices at the edge of the Internet rather than from centralized systems. What does this mean for today's IT professional? In this Power Panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists will addresses this very serious issue of profound change in the industry.
Scott Jenson leads a project called The Physical Web within the Chrome team at Google. Project members are working to take the scalability and openness of the web and use it to talk to the exponentially exploding range of smart devices. Nearly every company today working on the IoT comes up with the same basic solution: use my server and you'll be fine. But if we really believe there will be trillions of these devices, that just can't scale. We need a system that is open a scalable and by using the URL as a basic building block, we open this up and get the same resilience that the web enjoys.
We are reaching the end of the beginning with WebRTC, and real systems using this technology have begun to appear. One challenge that faces every WebRTC deployment (in some form or another) is identity management. For example, if you have an existing service – possibly built on a variety of different PaaS/SaaS offerings – and you want to add real-time communications you are faced with a challenge relating to user management, authentication, authorization, and validation. Service providers will want to use their existing identities, but these will have credentials already that are (hopefully) i...
All major researchers estimate there will be tens of billions devices - computers, smartphones, tablets, and sensors - connected to the Internet by 2020. This number will continue to grow at a rapid pace for the next several decades. With major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo, June 9-11, 2015, at the Javits Center in New York City. Learn what is going on, contribute to the discussions, and ensure that your enterprise is as "IoT-Ready" as it can be
Container frameworks, such as Docker, provide a variety of benefits, including density of deployment across infrastructure, convenience for application developers to push updates with low operational hand-holding, and a fairly well-defined deployment workflow that can be orchestrated. Container frameworks also enable a DevOps approach to application development by cleanly separating concerns between operations and development teams. But running multi-container, multi-server apps with containers is very hard. You have to learn five new and different technologies and best practices (libswarm, sy...
SYS-CON Events announced today that DragonGlass, an enterprise search platform, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. After eleven years of designing and building custom applications, OpenCrowd has launched DragonGlass, a cloud-based platform that enables the development of search-based applications. These are a new breed of applications that utilize a search index as their backbone for data retrieval. They can easily adapt to new data sets and provide access to both structured and unstruc...
An entirely new security model is needed for the Internet of Things, or is it? Can we save some old and tested controls for this new and different environment? In his session at @ThingsExpo, New York's at the Javits Center, Davi Ottenheimer, EMC Senior Director of Trust, reviewed hands-on lessons with IoT devices and reveal a new risk balance you might not expect. Davi Ottenheimer, EMC Senior Director of Trust, has more than nineteen years' experience managing global security operations and assessments, including a decade of leading incident response and digital forensics. He is co-author of t...
The Internet of Things is a misnomer. That implies that everything is on the Internet, and that simply should not be - especially for things that are blurring the line between medical devices that stimulate like a pacemaker and quantified self-sensors like a pedometer or pulse tracker. The mesh of things that we manage must be segmented into zones of trust for sensing data, transmitting data, receiving command and control administrative changes, and peer-to-peer mesh messaging. In his session at @ThingsExpo, Ryan Bagnulo, Solution Architect / Software Engineer at SOA Software, focused on desi...
SYS-CON Events announced today that MetraTech, now part of Ericsson, has been named “Silver Sponsor” of SYS-CON's 16th International Cloud Expo®, which will take place on June 9–11, 2015, at the Javits Center in New York, NY. Ericsson is the driving force behind the Networked Society- a world leader in communications infrastructure, software and services. Some 40% of the world’s mobile traffic runs through networks Ericsson has supplied, serving more than 2.5 billion subscribers.
While great strides have been made relative to the video aspects of remote collaboration, audio technology has basically stagnated. Typically all audio is mixed to a single monaural stream and emanates from a single point, such as a speakerphone or a speaker associated with a video monitor. This leads to confusion and lack of understanding among participants especially regarding who is actually speaking. Spatial teleconferencing introduces the concept of acoustic spatial separation between conference participants in three dimensional space. This has been shown to significantly improve comprehe...
Buzzword alert: Microservices and IoT at a DevOps conference? What could possibly go wrong? In this Power Panel at DevOps Summit, moderated by Jason Bloomberg, the leading expert on architecting agility for the enterprise and president of Intellyx, panelists will peel away the buzz and discuss the important architectural principles behind implementing IoT solutions for the enterprise. As remote IoT devices and sensors become increasingly intelligent, they become part of our distributed cloud environment, and we must architect and code accordingly. At the very least, you'll have no problem fil...
The Domain Name Service (DNS) is one of the most important components in networking infrastructure, enabling users and services to access applications by translating URLs (names) into IP addresses (numbers). Because every icon and URL and all embedded content on a website requires a DNS lookup loading complex sites necessitates hundreds of DNS queries. In addition, as more internet-enabled ‘Things' get connected, people will rely on DNS to name and find their fridges, toasters and toilets. According to a recent IDG Research Services Survey this rate of traffic will only grow. What's driving t...
Today’s enterprise is being driven by disruptive competitive and human capital requirements to provide enterprise application access through not only desktops, but also mobile devices. To retrofit existing programs across all these devices using traditional programming methods is very costly and time consuming – often prohibitively so. In his session at @ThingsExpo, Jesse Shiah, CEO, President, and Co-Founder of AgilePoint Inc., discussed how you can create applications that run on all mobile devices as well as laptops and desktops using a visual drag-and-drop application – and eForms-buildi...
The Internet of Things promises to transform businesses (and lives), but navigating the business and technical path to success can be difficult to understand. In his session at @ThingsExpo, Sean Lorenz, Technical Product Manager for Xively at LogMeIn, demonstrated how to approach creating broadly successful connected customer solutions using real world business transformation studies including New England BioLabs and more.
The recent trends like cloud computing, social, mobile and Internet of Things are forcing enterprises to modernize in order to compete in the competitive globalized markets. However, enterprises are approaching newer technologies with a more silo-ed way, gaining only sub optimal benefits. The Modern Enterprise model is presented as a newer way to think of enterprise IT, which takes a more holistic approach to embracing modern technologies.
Every day we read jaw-dropping stats on the explosion of data. We allocate significant resources to harness and better understand it. We build businesses around it. But we’ve only just begun. For big payoffs in Big Data, CIOs are turning to cognitive computing. Cognitive computing’s ability to securely extract insights, understand natural language, and get smarter each time it’s used is the next, logical step for Big Data.