Blog Stats
  • Posts - 18
  • Articles - 0
  • Comments - 583
  • Trackbacks - 69

 

August 2006 Entries

Ruby-on-Rails Capabilities in ASP.NET

It's great to see that ASP.NET tools are finally surfacing that leverage the same code-generation capabilities as Ruby-on-Rails. ASP.NET ActionPack (http://www.codeplex.com/Wi... is one such example that builds data-access and presentation scaffolding. Like RoR, ASP.NET ActionPack will automatically build admin screens for all your basic CRUD fuctionality; unlike RoR, ASP.NET ActionPack will even look for foreign keys within your DB schema and provide drop-down options...

Wrapping C# Events with Accessors

It is a given that private members should be wrapped with public accessors for proper encapsulation of class data. But it is common to see people publicly declaring events, such as with public event EventHandler SomeEventExposingHimself;. Essentially, this is the same as exposing a private member to the world without accessors, such as with public string SomeStringThatYouShouldNotH... Any subscriber listening for the event is now tied directly to the actual class member. C# makes...

 

 

Copyright © Billy McCafferty