Showing posts with label Windows 8. Show all posts
Showing posts with label Windows 8. Show all posts

Thursday, 4 October 2012

Be Mobile or Be Cloudy

There are two spaces in the dev world for a dev to touch on right now that can not be ignored. If you do ignore them, you are accepting legacy status within a year.

Be a mobile dev OR Be a cloud dev.


Cloud: A visible mass of condensed water vapor floating in the atmosphere, typically high above the ground


Everyone is talking cloud this and cloud that. If you aren't at least having a play in this new world at home then you are already falling behind.

This should be something additive. It will work with what you know and be a logical progression, just as classic client server gave way to the storm that was web development.

Everyone has an offering. Amazon was first and they did ok. Google wants all your data and pretty much has it. I work for Microsoft so you'd expect that to be why my suggestion for a starting place is Azure.

In actual fact, it is Azure but not because I work for them.

If you are a .NET developer and you want fluid transition in to this new buzz word filled world of cloud then there is no better option than Azure.

Moving to any cloud is not just a matter or spinning up a few servers and copying your code over. Designing for this new environment is key. Take what you have and move it to a truly scalable model with infrastructure as a service and advanced app monitoring.

Stay tuned and join me on my 90 day adventure to build an Azure based application.


Mobile: A decorative structure that is suspended so as to turn freely in the air

There are also a bunch of major options if you go down this path. Google has Android. Apple has the mainstream iOS platform. Microsoft gives you Windows 8.

Having written apps for all of these players, there are good and bad things about all of them.

My bet is on line of business apps that don't appear on app stores at all but get consumed inside businesses to do everyday work.

Designing for a mobile platform is as distinct and must be as purposeful as designing for the cloud. You don't just move code. You don't just swap out your presentation layer. There are considerations made for user experience on such portable but tiny devices. Then there is how you handle data down and uploads across 3G+. There are many restrictions to grasp but these strong guidelines can be used to quickly build for these platforms, if not fought at every turn.

.NET devs again will find the Win8 app leap more of a small step.

Whatever mobile experience you bring with you or gain in the adoption of this kind of programming and design, it will help you in building leaner and friendlier applications.

My posts on getting started with Win8 dev are here.


There will always be legacy apps. Just don't be a legacy software developer.

Sunday, 2 September 2012

Preparing for Win8 App Excellence Labs

While running Win8 Application Excellence labs, I have seen developers hit similar situations each time, that take time away from the labs that could be used for more user experience (UX) and technical feedback.

These labs are sponsored by Microsoft Evangelists and executed by Microsoft Premier Field Engineers. We are trained and experienced in what a Windows 8 application built in the New User Interface should look like and behave.

The purpose is to enable developers as they prepare their applications for submission to the Windows Store.

You will hear people say that the labs are there to grant early access via developer tokens but this is not the case. Our primary purpose is to communicate a common understanding of the design guidelines (both technical and user experience) that make up the new Win8 user interface and underlying technology.

Over time, I have built up a list of useful links to help developers get their apps in to shape so they are most of the way there when they hit App Excellence labs or for when they submit to the store themselves.

Here are some links to help devs on their way to a well built and well design Win8 app...



Friday, 15 June 2012

Presenting at the Premier Field Breifing


Today was a day for Canberra Premier Field Engineers to share their knowledge with an open house, at our second Premier Tech Briefing for this financial year.


My colleagues were out in technical force and dressed like Microsoft ninjas. I got to wear my Swarovski crystal Microsoft shirt which was I admit, a highlight.

Jimmy Fitzsimmons presented on Windows 8 Dynamic Access Control as Steve Moore, the Lync genie spoke in an opposing room.

Imtiaz Khan then gave a SCCM 2012 Tech Overview, while Grant Holliday and I did a joint session on Agile Development with Visual Studio and Team Foundation Server 2012.

There were wild cheers; huge amounts of delicious food; virtual graffiti of another engineer's face as a demo; and a free autographed book from our local published TFS guru.

We had a fantastic turn out with attendees from 25 organisations from across Canberra.

The immediate feedback has been very positive.





Next time, we will have a full dev stream. Stay tuned.

A Lifetime of Events




Last week, I sat with a developer in an effort to solve an issue with broken Suspend-Resume handlers in Metro. The developer told me that he was getting inconsistent behaviour with his Suspend handlers and that he suspected a bug in the Metro framework.

When I got him to repro the bug, showing me how the error was caused and what the resulting output was, I found that he was not suspending and resuming but instead, suspending and on-launching.

He was exiting the application.

Metro triggers the suspend handler at that point. Suspend handlers run when you exit the application. Exit can be either suspending and leaving for a bit or quitting the application forever.

Now, one thing you should know about the Suspend handler is that it is paired with the Resume handler. If you can not see the Resume handler being called subsequently, after you add code to the Suspend handler then you are putting it in the wrong place.

The developer I was helping was putting his code in the wrong place. He was assuming that if he told Application.Current to persist something then it was so for as long as he waited to relaunch the application. He was wrong.

Web developers don't seem to hit this learning point but desktop developers do. It happens because they don't live inside life cycles. They have never been forced to understand that objects have lifetimes and you have to interact within the rules of that world.

When this developer called the Suspend handler and traced the persistance back to a file that stored the serialised version of his data, he assumed that it would be there when he started the app again.

That is an incorrect assumption.

Application lifetime lasts for the a the amount of time that the application is current. That means that when you launch it and when you exit it, the application is live. Outside of those boundaries, Metro does not guarantee anything. Files persisted to storage by the Application object are not always there and not always called the same thing. If it goes to disk, it could just as well go to memory and it is then just as fleeting.

There are matching pairs when it comes to exit-entrance handlers. With Suspend, you can count on Resume. With Exit, you can count on Launch.

Don't assume anything will be consistent, outside of the lifetime that your event belongs to.

If you want to ensure data or state persist then you must explicitly handle that persistence when it does not obey Application lifetime.

Sunday, 3 June 2012

Windows 8 and Metro Development



Before we go any further... oh wait, let's start first. So before we start, let's get one thing clear:

Windows 8 and Metro are not one in the same thing. Windows 8 is an operating system. Metro is a tablet focused environment that runs on top on Windows 8.

When we talk about Metro development, we are talking about a set of design principles that are primarily focused on tablet and ARM devices and the powerful set of development tools that .NET now offers.

In the same way that iOS dictates that you will live inside it's pome ecosystem, Metro is guiding its developers through tools, libraries and UX guidance how to easily produce an application that is friendly to the touch world and still plays well with mouse and keyboard.

One thing I love about iDevelopment is that Apple has pulled the level of developers up again in to a world where you can wield the power of your respectable language with the aid of the brilliant Cocoa framework.

Metro is offering you the same thing but with the benefits of living in the Microsoft universe with access to a pool of technology, consumers and a development framework that is proven in all environments from the enterprise world to small teeny systems.

For developers, there is so much noise around Metro that it's hard to know where to start.

Start here...

Metro dev == (all things .NET) + WinRT + WinJS

Do not be overwhelmed. It's easier than walking in to a new language; going from desktop to web development; or learning graphic design skills. There are simple starting points that allow an attainable entry point.


Create a default project and then make changes to it and see how simple it is to start and produce a good looking, easy to use and robust application.

After running Microsoft Metro App Excellence Labs for over 2 dozen applications, I can only say that the less you fight the world presented to you by Visual Studio and the easy-to-interpret design principals, the better your app will be. As with all new interactive experiences, you may try to make it act like something you know better but it actually works better to let it be itself.

This is an echo of the advice I gave about writing iOS apps. Work with your environment. Learn what it does well and use it. Reinventing the wheel is self-validation for hackers.

Go forth and Metroply!

Friday, 25 May 2012

Premier Tech Briefing 2012


Premier Tech Briefing 2012 – Friday 15th June

Come and join us for the Mid-Year Premier Tech Briefing 2012. Learn from the best as Microsoft Premier Field Engineer’s (PFE) show you their tips and tricks learnt from the field.

Arrival/Registration and Breakfast – 08:00am to 09:00am

Please arrive at the venue with enough time for registration.

Session 1 – 09:00am to 10:30am

Option 1 - Windows 8 Dynamic Access Control

Presented by a Microsoft Premier Field Engineer. A first look into Windows 8 Dynamic Access Control – Everything you thought you knew about securing a file system is about to change!

Option 2 – Deploying Lync 2010!

Presented by a Microsoft Premier Field Engineer. A deep dive into how to get the most out of a Lync 2010 deployment.

Session 2 – 10:40am to 12:10pm

Option 1 – SCCM 2012 – Introduction to SCCM 2012

Presented by a Microsoft Premier Field Engineer (PFE) A deep dive into the new features of SCCM 2012 – All your questions answered!

Option 2 - Agile Development with Visual Studio and Team Foundation Server 11

Presented by a Microsoft Premier Field Engineer. We will take a ride through an example project and show you how an agile team can efficiently prioritise, plan, and deliver high quality software. We will also take a look at the valuable set of new features and capabilities that Visual Studio 11 and Team Foundation Server 11 bring to agile teams.


Venue: Microsoft Canberra - Level 2, 44 Sydney Avenue, Barton

Registration


To register, please emails damadden@microsoft.com

For any questions please contact me. I hope to see you there!

Acknowledge Me

Apple started a user experience trend many iOSes ago when it accepted Settings changes and did not ask for confirmation. Once the chang...