Scott Hanselman

Regulating Regular Expressions

October 25, '03 Comments [0] Posted in ASP.NET | Web Services | Tools
Sponsored By

It's OK to shamelessly plug yourself if you're introspective about it.  That's what I always say.  Roy posted Regulator and it is quite the studly Regular Expressions IDE.  A good addition to anyone's C:/UTILS.  With all these RegEx tools, I'm all set:

Regulate - Warren G
I'm tweaking
into a whole new era
G-Funk
step to this
I dare ya
Funk
on a whole new level

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Finishing what was Quite A Day to start what we will be Quite A Week

October 25, '03 Comments [3] Posted in PDC | DasBlog | Speaking | NUnit | Nant | XML
Sponsored By

Whew.  A big day. 

  • My third wedding anniversary.  Woo hoo!  My great-uncle says it's the first 50 that are hard.  After that, smooth sailing.  (Just noticed the date on my wedding site...FYI: We eloped on 10/24/2000, and had the big to-do later)
  • Had lunch with Jim Blizzard, Phil Weber and Andrew Brust who is in town talking to PADNUG via INETA.  I'll be returning the favor in NYC at the .NET UG in January.
  • Upgraded to dasBlog 1.4.3297.0, and what an upgrade it is.  On the admin site, reporting for Aggregator Activity, User Agents, Crossposting to Longhornblogs.com, ClickThrough Tracking, URL Rewriting, oy!  I was chatting with Clemens a few minutes ago and he had some ideas around presence that will blow your mind.  Maybe we'll write it next week...
  • With Patrick Cauldwell leading the way and some SERIOUS CodeSmith'ing, basically re-wrote XSD.EXE and generate instance test data, domain objects (Account, Payee, etc), domain messages/operations (GetAccountResponse, GetPayees), documentation, and our custom Voyager templates.  As Patrick said, there's SO much more to code generation than Strongly Typed Collections.
  • 99% perfected the build process and now just need to improve NUnit2Report to include things like the Computer Name, and support for multiple NUnit xml input files.  Anyone else got a better NAnt Build Task for this?
  • Told my CST407 class at OIT what the Final would be.  They were shaking in their boots. :)
  • Heading to PDC on Sunday at 9am.  My days are packed full until I leave Thursday and it'll be 98 degrees the whole time.  Schwing.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Checking post-conditions in SOA as (or more) important than checking pre-conditions

October 22, '03 Comments [1] Posted in Programming
Sponsored By

I agree with Clemens on the postcondition discussion.  At the risk of using two quickie "gun/bullet" analogies in a month, I offer this one to explain why checking post-conditions is as (or more) important as checking pre-conditions.

It's better to take the bullets out of the gun, than to wear a bullet-proof vest.

Too often message validation is considered a defensive manuever to protect one's self from bad input.  I believe this "knee-jerk" style of coding is an artifact of C and C++ where engineers always check input pointers for nulls and such. 

In a system that is constrained by contracts, you certainly know as much about the outgoing messages and inherent contract as the incoming, so there's no reason not validate the outbound messages.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

TicTacToe in 3.1 Languages

October 21, '03 Comments [0] Posted in XML
Sponsored By

I was cleaning up and I found these demos I used to do when showing off .NET Framework multiple language support.

·        TicTacToe in C#, VB.NET or J#

·        TicTacToe in C# for the Compact Framework

Feel free to use them in presentations and demos with attribution.   

You know, it would be fun if folks started translating TicTacToe into other languages so instead of a bunch of HelloWorld’s we had TicTacToe in all the .NET Framework Supported Languages…Cobol.NET TicTacToe anyone?

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

How to always launch Firebird in a new window

October 21, '03 Comments [1] Posted in Musings
Sponsored By

I converted Patrick to Firebird recently.  Firebird 0.7 came out this week, and I mentioned a peeve of mine was that it reuses its window when launching URLs.  To which Patrick said:

To always launch Firebird in a new window, put this stuff in your user.js file.

 user_pref("advanced.system.supportDDEExec", false);
user_pref("browser.always_reuse_window", false);

If you haven’t come to enjoy the wicked fast speed and elegant simplicity of Firebird, now is your chance.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.