Blog posts page 8 of 44

Six great new features at Xbox.com

It’s been quite a while since xbox.com had a major update and today sees the launch of the new version with a clean new look and a whole host of new features that our teams here at LIVE engagement have been working on.

There are a whole great new set of features, my favorites are below… note that some of these are not available in non-LIVE locales.

Enums – Better syntax, improved performance and TryParse in NET 3.5

  • đź“…
  • đź“ť 495
  • đź•™ 3
  • 📦 .NET
  • đź’¬ 10

Recently I needed to map external data into in-memory objects. In such scenarios the TryParseTryParse methods of Int and String are useful but where is Enum.TryParseEnum.TryParse? TryParseTryParse exists in .NET 4.0 but like a lot of people I’m on .NET 3.5.

A quick look at Enum left me scratching my head.

Anatomy of a good bug report

Working on the .NET Framework was an interesting but often difficult time, especially when dealing with vague or incomprehensible bug reports.

Head to Bing, Google, official support sites and bug database if you have access to it (Microsoft Connect, Bugzilla for Firefox etc.) to see if others have run into this issue. Searching for the error message can yield good results but remove elements of the message specific to your project (e.g. class names, property names etc.)

Include for LINQ to SQL (and maybe other providers)

  • đź“…
  • đź“ť 672
  • đź•™ 3
  • 📦 .NET
  • đź’¬ 12

It’s quite common that when you issue a query you’re going to want to join some additional tables.

In LINQ this can be a big issue as associations are properties and it’s easy to end up issuing a query every time you hit one. This is referred to as the SELECT N+1 problem and tools like EF Profiler can help you find them.

Creating RSS feeds in ASP.NET MVC

  • đź“…
  • đź“ť 592
  • đź•™ 3
  • 📦 .NET
  • đź’¬ 5

ASP.NET MVC is the technology that brought me to Microsoft and the west-coast and it’s been fun getting to grips with it these last few weeks.

Last week I needed to expose RSS feeds and checked out some examples online but was very disappointed.

MacBook Pro 256GB SSD upgrade experience

I wanted an SSD for some time and finally caved in. Armed with credit card, screwdriver and trusty MacBook Pro I fitted a sweet SSD and decided to document the experience.

There are a bewildering number of options out there. Budget, as always, dictates the combination of speed and size available.

My top 5 free VS 2010 extension picks

The Visual Studio Gallery is already home to 533 tools, controls and templates for VS 2010 and this number is sure to grow once VS 2010 hits RTM and people get to grips with the extendable new editor.

Don’t forget to check out The Visual Studio Blog for more tips, tricks and tools.

MacBook Pro two year check-in

  • đź“…
  • đź“ť 770
  • đź•™ 4
  • 📦 Apple
  • đź’¬ 2

It’s been an interesting couple of years with nothing but a maxed-out MacBook Pro 17″ as my only home machine.

The hard drive died but time machine held my hand. At ALT.NET Seattle 2009 my backpack took a dive that left a dent in one corner. The battery was replaced and I roped GrinGod into obtaining a replacement UK-style \ key from the UK after some frantic typing.

LINQ to SQL tips and tricks #3

  • đź“…
  • đź“ť 925
  • đź•™ 5
  • 📦 .NET
  • đź’¬ 3

Another set of useful and lesser-known LINQ to SQL techniques.

LINQ to SQL supports stored procedures for retrieving entities, insert, update and delete operations, as you know. But you can also use them to perform lazy-loading of navigation properties.

Origins of a love affair

From an earliest memory of a cream colored box emblazoned with letters, mostly black — some red, came an owl proclaiming allegiance to the BBC.

This small box sat silently, patiently even, in our classroom for the best part of a year. On the few occasions our teacher was brave enough to flip the switch the machine would chirp into life with it’s two-tone beep and would state on capital white letters on a black background that it was BASIC. At this point the teacher would key-in the mythical incantation of CHAIN ""CHAIN "" — handily jotted on a nearby note — and feed the beast a cassette tape.