Learn You Node with VS Code

Node.js may not be the “new” hotness, but it’s still pretty hot, and getting hotter all the time. Whether you’re a .NET developer who’s still on the fence about JavaScript, or just haven’t gotten around to taking a look at Node, now is a pretty good time to do so, and in this post, I’ll show you a nice combination of tools that make learning Node easy and fun, namely nodeschool.io and the new Visual Studio Code editor.

What is Node.js?

On the off chance that you’ve found your way here, but don’t know what Node.js is, Node.js (sometimes referred to simply as Node) is an execution environment for JavaScript code, based on the V8 JavaScript runtime from Chrome. It’s designed to be fast, lightweight, and efficient. You can use node to write server applications in JavaScript, from real-time chat apps, to web APIs, to full web applications. While Node itself is pretty simple, with a [limited, but want another word] API set, it ships with NPM, the node package manager, which provides a fast and easy way to install packages, which are collections of functionality wrapped up in such a way as to make them easy to add to your Node projects. Node packages are available to facilitate all kinds of applications, including MVC-style routing engines, template engines, unit testing and more.

Continue reading Learn You Node with VS Code

Windows Store App Template to Live Data in 3 Easy Steps

One of the things that I like about building Windows Store apps using Visual Studio 2012 is the availability of several rich and useful templates. One of my favorites is the Grid App template, which demonstrates how to build an app with a hub page listing grouped items in a ListView control, a group details page, listing information about each group, and an item details page, for information about specific items.

Continue reading Windows Store App Template to Live Data in 3 Easy Steps

Quick Hits Issue #5: Resources for App Developers and User Groups

In this issue, I’ve got some great resources for app developers, as well as for user groups:

Get up to Speed on HTML, CSS3, and JavaScript

If you’ve done some web development, but want to kick your skills up a notch, check out Learn HTML5 with JavaScript & CSS3 Jump Start Training, a course from Microsoft Virtual Academy. The course covers HTML Semantic Markup, CSS3 Selectors, Layout and Animation, JavaScript Core and DOM Interaction, and more.

Continue reading Quick Hits Issue #5: Resources for App Developers and User Groups

Building Back-end Data and Services for Windows 8 Apps: OData – Part 2

In part 1 of this post, I showed how to create a SQL database in Windows Azure, create a schema for adding leaderboard functionality to a game, create an Entity Framework model for the database, and then create and test a WCF Data Service on top of the model that provides a rich REST-style interaction model with great query support via OData. If you have not yet read part 1, you should do so before continuing.

Continue reading Building Back-end Data and Services for Windows 8 Apps: OData – Part 2

W8WIL #7: Uniquely Identifying Items in the Grid App JS Template

In this installment of Windows 8: What I’ve learned, I’ll discuss a bug in my app that came from a poor understanding of the underlying template I’d built on.

Getting Started with a Template

To jump start the development of my Windows Store app, Community Megaphone, I used the Grid App JavaScript template, shown below:

Continue reading W8WIL #7: Uniquely Identifying Items in the Grid App JS Template

Windows Store apps and 3rd-party JavaScript Libraries

If you’ve attended one of my talks on building Windows Store apps with HTML5 and JavaScript, you’ve heard me say that although the default for our app templates is to use the WinJS library for providing rich databinding, controls, and a great look and feel that makes your app fit into the Windows store ecosystem, we also support the use of 3rd party JavaScript libraries as well, with a few caveats.

Continue reading Windows Store apps and 3rd-party JavaScript Libraries

Everything You Ever Wanted to Know About Windows 8 Game Development…

…but didn’t know to ask.

OK, perhaps not everything…but certainly all the options for developing great games on Windows 8.

Bob Familiar, who manages some of my fellow Technical Evangelists on our East Region team, managed to find time between updating SharePoint and emailing Excel files to do some really thorough research on the state of game development for Windows 8, and shares his results on his blog:

Continue reading Everything You Ever Wanted to Know About Windows 8 Game Development…

Exploring HTML5 Canvas: Part 7 – Optimizing Animations

[This is part 7 of an ongoing series of posts examining the HTML5 Canvas element. In Part 1 of this series, I introduced Canvas and prepared a template to make further explorations a bit simpler, and also introduced JsFiddle, a neat tool for experimenting with and sharing web code. In Part 2, I demonstrated the ability of Canvas to allow your page background to shine through, and showed you how to render simple shapes on the drawing surface. In Part 3, I showed how to draw paths and text in Canvas. In Part 4, I showed how to transform the drawing context and scale, rotate, and skew your drawings. In Part 5, I introduced basic animation concepts, including the animation loop. In Part 6, I demonstrated some techniques for managing multiple animated shapes in your Canvas implementations.]

Performance Matters

As you start working with HTML5 Canvas, one of the things that you may discover is that the more things you’re drawing, the more likely it is that you will run into performance issues, particularly if your code is not optimized. This is also true the larger your canvas gets, which may especially impact full-screen games or similar implementations.

Continue reading Exploring HTML5 Canvas: Part 7 – Optimizing Animations

Microsoft DevRadio: Developing a RockPaperAzure Windows 8 app

Abstract:
In today’s episode Developer Evangelists Andrew Duthie, Brian Hitney and Peter Laudati recap the “Rock, Paper, Azure” – (#BeatTheGu) challenge from this year’s TechEd as well as how they built a Windows 8 App for the competition. Tune in for this lessons learned session on what considerations and features Andrew took into the design of the app. Continue reading Microsoft DevRadio: Developing a RockPaperAzure Windows 8 app

Exploring HTML5 Canvas: Part 6 – Managing Animated Shapes

[This is part 6 of an ongoing series of posts examining the HTML5 Canvas element. In Part 1 of this series, I introduced Canvas and prepared a template to make further explorations a bit simpler, and also introduced JsFiddle, a neat tool for experimenting with and sharing web code. In Part 2, I demonstrated the ability of Canvas to allow your page background to shine through, and showed you how to render simple shapes on the drawing surface. In Part 3, I showed how to draw paths and text in Canvas. In Part 4, I showed how to transform the drawing context and scale, rotate, and skew your drawings. In Part 5, I introduced basic animation concepts, including the animation loop.]

The Part Where Things Get Messy

ManagingShapes1_7Now that you know how to get a shape moving across the screen, you’re probably wondering what’s next. Well, the truth is that the animation code we looked at in the previous installment of this series was fairly primitive, and if we tried to scale it to an animation or game with many shapes, we’d be writing a LOT of repetitive code, and we’d soon end up with a very messy batch of spaghetti.

Continue reading Exploring HTML5 Canvas: Part 6 – Managing Animated Shapes