Get access to the %ProgramFiles%\WindowsApps folder and view apps source code

One of my preferred ways to learn new things is to read source code written by other people. Specifically on Windows 8 Windows Store apps, I like to understand how some apps were developed, which APIs or libraries were used, and even how some page layouts were designed.

Continue reading

Posted in Windows 8 | Tagged , , , , , | 10 Comments

[Off-topic] Difference between a Teacher, a Trainer, and a Coach

In one of the mailing-lists I participate there is discussion going on about what motivates people to deliver training these days, which forked into another discussion about the difference about being a teacher, a trainer, and a coach, which I find very interesting.

Continue reading

Posted in Off-topic | Tagged , , , , | Leave a comment

Detect DEBUG build configuration via JavaScript in Windows Store apps

Update (2012-09-29): Now you can use the package WinRT-JsDebugSymbols available via NuGet instead of manually adding the code to your project, and will receive future updates.

One of the things I miss when developing Windows Store apps in HTML/JavaScript, is the possibility of using conditional compilation statements, in order to have different behavior depending on the build configuration selected when the project was compiled (e.g. Debug, Release, etc…), as we do in C# using #ifdef instructions.

Continue reading

Posted in JavaScript, NuGet, Windows 8 | Tagged , , , , , , | 3 Comments

Detect if the Debugger is attached via JavaScript in a Windows Store app

There are some cases where we want a block of o code or function to be executed only when we are debugging the application, usually to show detailed error messages that are intended only for the developer to see.

Continue reading

Posted in JavaScript, Windows 8 | Tagged , , , , , | 1 Comment

Global exception handling in Windows Store JavaScript applications

When an unhandled exception occurs in a Windows Store app, this application is terminated immediately, in a silent way and without showing any error message to the user. This is the default behavior, but we can change it, if we want to.

Continue reading

Posted in JavaScript, Windows 8 | Tagged , , , , | 1 Comment

Physical location of Windows Store applications and data on a PC

When developing Windows Store applications for the Windows 8, it’s important (or at least interesting) to know where the applications get stored after installing it through the Store, where all the files go when we write to the LocalFolder, RoamingFolder, and TemporaryFolder, and also where the values that we add to the collections LocalSettings and RoamingSettings are physically stored.

Continue reading

Posted in Windows 8 | Tagged , , , | 5 Comments

What does “use strict” do in JavaScript?

This is one of the questions I get frequently when delivering workshops on Windows 8 “Windows Store” application development using HTML, CSS and JavaScript.

Continue reading

Posted in JavaScript | Tagged , , , | Leave a comment

.gitignore file for Windows Store applications

When developing Windows Store applications (former “Metro Style”), these are generally the files that I don’t want Git to include in the repository:

Continue reading

Posted in Version Control | Tagged , , , | 1 Comment

Get the network machine name in a Windows Store app

When developing Windows Store apps that support receiving push notifications, besides getting the application ID and hardware ID, I also like to get other useful information about the machine/device that can ease the management of the push notifications service. The network machine name is one of these useful information.

Continue reading

Posted in .NET, JavaScript, Windows 8 | Tagged , , , , | Leave a comment

Get the version number of a Windows Store app

Recently, during the development of a Windows Store app, I needed to dynamically get the current version numbers of the app to show in the “about” screen.

Continue reading

Posted in .NET, JavaScript, Windows 8 | Tagged , , , , | Leave a comment

New naming for Windows 8 applications

In the beginning of August there were rumors that Microsoft was going to abandon the name “Metro” for describing the new kind of applications on Windows 8, and that was confusing, because they’ve been using this “Metro” term since they’ve first started talking about Windows 8.

Continue reading

Posted in Windows 8 | Tagged , , , , , | Leave a comment