Posts

Showing posts with the label Practice

Tomb stoning on the Win7 Mobile Platform

Image
Tomb stoning is  the process of saving the data and state of your application when it’s terminated such that it can resume where it left off when it is started back up again. There are many cases where you application may be suddenly terminated on the phone. Examples include incoming phone calls or activation of the camera on the device. Tomb stoning is an essential feature that almost every application should support to avoid customer frustration with your application. Tomb stoning an application is fairly straightforward. Every application on the phone has its own permanent storage space on the device that is referred to as isolated storage. Classes for isolated storage can be found in under the System.IO.IsolatedStorage namespace. You can use these classes to store and reload the state and data for your application. In your App.xaml file, the events you should monitor for are the following: Application_Launching – Code to execute when the application is launching. This c...

The Sad Truth About Best Practices

Image
… is that most of the time, they won’t work for you or me. They worked for somebody, some time, in some situation, in the past. Sure, the idea of best practices is attractive. Supposedly you or I can follow along, obediently, and succeed using so-called best practices. Too bad it doesn’t work. For example, Jim Collins’ blockbuster business book Good to Great , published in 2001, featured 11 supposedly great companies. All of them did extraordinarily well on the stock market for 10-20 years. But by 2008, when Steven Levitt posted Good to Great to Below Average on Freakonomics, two of them had died. He wrote: Nine of the eleven companies remain more or less intact. Of these, Nucor is the only one that has dramatically outperformed the stock market since the book came out. Abbott Labs and Wells Fargo have done okay. Overall, a portfolio of the “good to great” companies looks like it would have underperformed the S&P 500. I don’t mean to criticize Jim Collins, his book, o...