By AlanM on
2011-09-24T15:45:59
|
By AlanM on
2011-09-24T15:31:00
I have updated some snippets that I use quite a lot when I want to add an event to a class. You can download the VSI file from CodeCharm.com.
|
By AlanM on
2011-07-05T20:01:29
I tend to be a little lazy. Hey, I’m a programmer! I will work very hard to make sure that I don’t have to do anything automatable more than once. Anyway, I rely on the compiler to tell me when I’m doing something that isn’t allowed. My compiler let me down. And I suffered through a couple of hours of a very weird problem. I had been trying out a new model for user interfaces on the Windows Phone 7, and part of that model relies on some interfaces using generics. I’m a big fan of generics – they help me avoid boxing/unboxing, keep strongly-typed collections and so on. The model is multi-platform; it’s the basis for programs that I intend to deploy on Windows, Windows Presentation Framework, Web, Silverlight, and Windows Phone 7 platforms. And… I use ReSharper a lot. It’s a fantastic tool, and I wish I’d been using it a long time ago. So when ReSharper suggested that I refactor...
|
By AlanM on
2011-06-24T17:35:25
Looks like I had my VS not completely connected to the TFS server. Poking around at the Credential Manager, the TFS Administration Console, and the VS Team Explorer connections seems to have cleared it all up. I was able to successfully get Moq installed using NuGet into my test project.
|
By AlanM on
2011-06-24T16:55:08
Trying out Team Foundation Software and the Agile MSF thingy that comes with it. Problem right now? I’m trying to do TDD, and create a new pattern. (Because I can! Stop asking questions!) So I need to create a mock. I would like to use Moq. I’ve used NMock before, but Moq seems to have a stronger following. Problem? I’m also using NuGet to get Moq installed into the project. And I get this fun, unhelpful message:  “persons” is the name of the server. Yes, I...
|
By AlanM on
2011-06-09T10:08:02
Micro review of MSDN Magazine, June 2011 http://msdn.microsoft.com/en-us/magazine/hh227291.aspx
Editor's Note: The Best of Times
I agree that there is still much more to come as a developer. Things are really starting to get kind of mature. Is this the golden age of development? Maybe. Only history will know for sure.
Cutting Edge: Invariants and Inheritance in Code Contracts
Using Contracts sounds like it would be a key part of good Domain Driven Design (DDD) which also sounds like it is the methodology to use for modeling complex business scenarios. Invariants are key to making sure that objects are always in a valid state. I remember reading early MFC samples that did this explicitly; at the entry to every method was an Assert that the object was in a known good state. ...
|
By AlanM on
2011-04-10T13:21:38
Reading on Safari (thank you, mobile version on Windows Phone 7!) So far… it’s helpful as an introductory text. Reading in print: Visual Studio Magazine ( http://visualstudiomagazine.com/) 6 Tips of Separation: Take ViewModel for a Spin and Unit Test Your Silverlight Apps by Benjamin Day Good arguments for MVVM, but a little light on Adapter implementation (not sure his implementation is quite how Adapter should be used) which is the primary test target. Also a little light on how this will be used in more complex scenarios. Improve Authentication with Windows Identity Foundation by Peter Vogel Good starting points for introducing WIF into your apps. ...
|
By AlanM on
2010-12-13T20:39:16
I created an XSLT for viewing Visual Studio 2010 Database Project *.sqlpermissions files as an HTML table.
|
By AlanM on
2010-10-18T10:15:20
Just a quick note endorsing IcoFx as an icon editor. It's free, and it's very good! I plan to use it for all (well, nearly all!) of my icon editing needs.
|
By AlanM on
2010-10-10T19:33:32
A little bit of serendipity here. Yesterday, I decided to commit to writing a to-do app for Window Phone 7, based mostly on my favorite task-management tool, Todoist. (BTW – if you don’t already have a system you love, you should check this one out. And, no, I’m not compensated or associated with the company in any way.) So I set up a new page for my Todoist for Windows Phone 7, and a new forum for feedback, etc. And today, Scott Hanselmann tweeted (again) about the Windows Phone 7 Developer Launch, …  ...
|