Geeks With Blogs
Billy McCafferty whatever (but really just .NET)

I've moved!  My new home can be found at http://devlicio.us/blogs/billy_mccafferty.

Billy



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 ......

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 ......

For the past year or so, Martin Fowler has included the pattern Model-View-Presenter, or MVP, in his upcoming addendum to Patterns of Enterprise Application Development. Due to apparent confusions between MVC and MVP, Fowler has now split this pattern into what he's calling “Passive View” (http://martinfowler.com/ea... ......

I've added a new article to CodeProject.com concerning NHibernate with multiple databases with either ASP.NET or .NET. The article can be found at http://www.codeproject.com/... Any and all feedback is certainly welcome. As an addendum, Hector Cruz has described an approach to connecting to multiple DBs on the same server ......

I believe the following is the fastest way to convert a non-typed list to a strongly typed (generic) list using C# .NET: public List ConvertToGenericList(IList listOfObjects) { ArrayList notStronglyTypedList = new ArrayList(listOfObjects); return new List(notStronglyTypedList.T... as T[]);} Note that this will fail if the non-typed collection ......

I finally got around to it... the whole shebang of NHibernate best practices with ASP.NET and Generics. The article, along with the related source, can be found at http://www.codeproject.com/... Your review, feedback and suggestions would be much appreciated! 3/3/06 UPDATE I've updated the article on Code Project to ......

Arguments abound for whether or not ASP.NET provides adequate MVC. On the other hand, many feel Page Controller and Front Controller are the way to go. Others feel the entire page model should be abandoned in the favor of something more attuned to Ruby on Rails such as Castle MonoRail. For me, I've always liked the page event model and feel user and ......

On a previous post, I mentioned my introduction to Model-View-Presenter (MVP). I've now gotten a chance to try it out on a new project and have been very pleased with the results thus far. MVP provides an approach for clean separation of concerns within the ASP.NET presentation layer without dismissing the page event model. MVP sees the code-behind, ......

I've been working on an article for the past few weeks concerning the usage of the Model-View-Presenter pattern with ASP.NET. The article has been completed and uploaded to http://www.codeproject.com/... I hope you find this article useful. Please feel free to raise your questions and/or concerns. Billy ......

NUnitAsp is a great tool for unit testing ASP.NET web pages. Although NUnitAsp tests are slow to run, they're especially useful for running “web smoke tests” on a nightly basis. (I mark every NUnitAsp class with [Category("Web Smoke Tests")] so that I can easily exclude them from my more frequent unit testing.) On many projects, authentication ......

4/28/06 Update: The NHibernate codeproject.com article wins ASP.NET article of the month. Woohoo!3/14/06 Update: See how this is used in a sample application at http://www.codeproject.com/... Hibernate.org has a great article on creating a generic DAO for Hibernate in Java. Below is what I use for the C# port. The ......

After using it for a couple of hours it looks stable and ready for use. Needless to say, it's nice to have it back in VS 2005 since the out-of-the-box refactoring support freezes the IDE 1/2 the time and takes at least a minute to complete the other 1/2 of the time. (I can finally get rid of all those extra C# using statements just taking up space!) ......

Suppose you have a “Project” object that has 0 or more “Attachment” objects in your domain. (The Project class exposes an IList of Attachments and the Attachment has a reference to “ParentProject.”) Now you'd like to introduce a new object called “Cabinet” which can also have a number of attachments associated ......

This post describes the use of Inversion-of-Control, or Dependency Injection, to promote loose coupling and convenient unit testing.---- Introduction In designing an object-oriented application, a major tenant of design is "loose coupling." Loosely, no mean for the pun, "loose coupling" means that objects should only have as many dependencies as is ......

Copyright © Billy McCafferty | Powered by: GeeksWithBlogs.net | Join free