Gavin Greig (ggreig) wrote,
Gavin Greig
ggreig

  • Music:

Resourcefulness

How cool is Visual Studio 2005's handling of resources? FxCop picks you up on it if you're daft enough to use a string literal, and VS2005 itself offers to autogenerate a class that exposes the strings to code as properties. Combined with the great handling of internationalised resources, this promises to make our lives a lot easier.

Previously, creating and consuming resources in an internationalisable way has been - maybe not difficult, but definitely a bit painful and a lot of work.

Today, I created a handful of new resources and a couple of new resource files in side projects, including appropriate accessor classes in under ten minutes. I also scrapped our own pre-existing classes for doing the same job. They were good enough, but not quite as flexible as the autogenerated classes can be.

It's always satisfying to be able to reduce the amount of code we directly write and maintain.
Tags: software development, work
Subscribe

  • 20 Years

    On the first of October, it was 20 years since I started work at Insights, and today I got my fourth block signifying a period of 5 years…

  • Weekend - Peter Pan, Bon Scott and Sydney Padua

    It’s been a while since I wrote, you know, actual words here – nearly six months, which is my longest gap ever – so I thought I’d make a cursory…

  • Open Live Writer

    When I first started blogging, I used LiveJournal’s own facilities to edit my posts, but for many years now, I’ve used Windows Live Writer instead…

  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments