Blog posts page 19 of 45

Returned from Redmond

It’s been an overwhelming few days listening and interacting with bright people from the .NET community and within Microsoft itself (wish I could say more but I can’t). Here are just a few of those names, I wish I knew them all but I was so busy listening to what they had to say I often forgot to ask for a card:

And from the Microsoft side of the fence

Extension methods illustrated

  • πŸ“…
  • πŸ“ 480
  • πŸ•™ 3
  • πŸ“¦ .NET
  • πŸ’¬ 6

Extension methods are a great new feature in the .NET Framework 3.5 that let you write new methods that appear to be part of existing classes without the need to subclass or modify them.

We can explain this in simple terms with an example. Here is a useful routine that takes a string and returns what it finds between two other strings that works just fine with .NET 2.0 and .NET 1.1.

Color schemes for Visual Studio

The default syntax color scheme in Visual Studio seems to be stuck in the 16-color era so once you’ve found your perfect font you are going to need a great theme to go with it.

Here is the theme I’m currently using at home (currently on a 42β€³ 1900Γ—1200 LCD TV until I can find space for my monitor) that a couple of people have asked for.

Heading to Redmond

I’ve been invited out to Microsoft HQ for a couple of days (October 22-23) which should be very interesting – more details on the what, why and how at a later date.

I will also be spending an extra day and a half in Seattle, perhaps taking in some of the sights of and maybe meeting up with a couple of on-line contacts for the first time.

Observations on Microsoft MVC for ASP.NET

Anyone who’s tried to develop large complex web sites with ASP.NET has likely run into many problems covering the page and control life cycle, view state and post backs and subsequent maintainability including the difficulty in creating automated unit tests.

Microsoft, taking a cue from the popularity of Ruby on Rails and subsequent .NET related efforts such as MonoRail, are embracing the model-view-controller (MVC) pattern and developing something more suited to web development than WebForms which aimed to make web development as similar to Windows development as possible (despite the major underlying differences in architecture).

Envy Code R Jeff Atwood scheme

Jeff β€œCoding Horror” Atwood published a nice round-up of coding fonts he’s been looking at lately in Visual Studio with his own color scheme.

For reasons best known to Jeff he went with 11 point this time (previously his scheme was published with 10 point) and used the older preview of Envy Code R neglecting to mention the italic-as-bold variant to get round the no-italics limitation of Visual Studio’s highlighting syntax editor.

October workshop at Guernsey Software Developer Forum

  • πŸ“…
  • πŸ“ 152
  • πŸ•™ 1
  • πŸ“¦ Guernsey

At the last meeting we decided to try hold a workshop in October where people brought in their laptops and development tools and we’d work through some samples together. Once done we would talk about it and show some of our own code to illustrate approaches (and possibly help with debugging ;-)

We would need to choose one or two subjects to focus on for the workshop in order that we might have some time to put relevant materials/sample to walk through together.

Refactoring shared libraries and public APIs

Refactoring is an essential process to keep code clean and elegant while it evolves. IDE’s offer common refactorings (although somewhat short of those prescribed in Fowler’s excellent Refactoring book and way short of the overall goals explained in Kerievsky’s Refactoring Patterns).

One limitation of existing tools is that they can only update references within your solution. When you are refactoring a shared library this is a problem, especially if it is your public API to the outside world.