DevDevin

  Home  |   Contact  |   Syndication    |   Login
  105 Posts | 0 Stories | 36 Comments | 29 Trackbacks

News

Archives

Post Categories

Blogworthy

Design Patterns

Recommended Books

October 2005 Entries

I attended the Seattle Code Camp this weekend (where I could) and had quite a bit of fun. In addition to learning a few things, I got to preview a bunch of upcoming technologies and meet a lot of distinguished developers in the area. For those of you who weren't able to attend or didn't see the same presentations I did, I'll just share some of my notes: Refactor! is a great tool that I already blogged about before, but they deserve a special plug since Mark Miller largely contributed to the event ......

Today I had a bunch of classes that I needed interfaces for and I wanted to find a tool that would generate them for me. This led me to the discovery of several refactoring tools available for .NET. Here they are: Net Refactorhttp://www.knowdotn... tool was able to generate an interface from my class, but unfortunately it was not smart enough to put that interface in the right project since my solution had multiple projects.) C# Refactoryhttp://www.xtreme-... ......

Know how to make an enum where multiple values can be assigned? Here is a silly example, but you'll get the point: [FlagsAttribute] public enum FileStatus{ None = 0, Open = 1, Edit = 2, Save = 4, Close = 8, Corrupt = 16, Busy = 32, Good = Open | Edit | Save | Close, Bad = Corrupt | Busy } Now rather than try to explain how this actually works myself, I'll just point you to a few good resources already out there: (Start by learning binary if you don't know it already: http://www.dark-logic.com/p... ......

I'm not implying that you shouldn't buy the full version VB.NET to C# conversion products if they have the functionality that you really need. However, I do think it would be silly not to take advantage of the free demo versions and/or the other free tools available for doing this if it will get the job done without having to purchase anything. So here are a few of the options I've found for converting VB.NET code to C# for free: TransKing (free demo version allows 600 lines of code per file)http://www.e-iceblue.com/ ......

The headache and horror of absolute and relative paths in the web world still haunts us, but it gets a little bit easier now with ASP.NET. Here is a helpful article that gives a good overview of your options: http://msdn2.microsoft.com/... However, there is one very important thing that it does not mention. There is a nice little method on the Page class called ResolveUrl. This came in handy today when I needed to get my application root without hard coding it. All you have to ......

I had been meaning to write something on the ASP.NET validation controls myself, and today I just got a hold of this introductory article on them: http://techrepublic.com.com... In most cases you can use these controls instead of writing your own custom validation code and also not have to duplicate it for both client-side and server-side checking. For instance, if all you want to do is make sure that a field is filled in you can use the “RequiredFieldValidat... ......