Aside from reading books and attending community groups, one of the best things a developer can do improve their skills is read other peoples code. I have many projects on my machine that I check out and study any chance I get. Every time I poke around these repositories, I always come away inspired. (though there is no limit of WTF’s)
Here are a few I peruse from time to time: ...... [Show More]
...tle uses an XML based documentation format which is just fine for final docs, but not that great for scrabbling down notes and filling out information. For that, I’ve decided to use the using.cast leproject. org wiki, a site designed to hold tips and tricks for the Castle Project.
I’ve set up a simple system of tagging which allows people to search out stuff in need of documentation and then tag it when it’s complete. At that point, I plan on converting it into a patch for the official Castle documentation. In this way we can get the rapid prototyping of a wiki comb... [Show More]
This is it. The moment you've been waiting for. The series that has you periodically checking back to see if there is another instalment continues (since the frequency of my posts has you questioning whether the feed is working). Dependency Inversion for Dummies is back...
Previously...
When we started on this journey, early on, we were empowered with the knowledge of how ...... [Show More]
I gave a presentation last night at the Queensland MSDN User Group on Smart Client Patterns . We covered the following:
Coding to an interface and Inversion of Control .
I used Castle Windsor to demonstrate an IOC container.
I also used an Array Resolver extension for resolving constructors that take arrays.
Model View Presenter
Presentation Model / Model-View -ViewModel ...... [Show More]
...s in the MvcContrib. So I thought I’d hop in and write up a sample for anyone else interested in using these binders:
First, for some background information from the Castle website : http://www .castlepro ject.org/m onorail/do cumentatio n/trunk/us ersguide/s martcontro ller.html
These binders were originally created for Monorail, and outside of a few items, most of that documentation applies to using with MvcContrib .
I’m using the latest MvcContrib from the trun...... [Show More]
It is time for this months installment of Chicago Alt.Net meeting. You can register here and get more information from our new site (thanks Sergio) at www.chicagoalt.net . Meeting Information The Different Views of ASP.NET MVC 6:00 pm Pizza and networking time 6:30 pm The default ASPX view engine in ASP.NET MVC is fine and comfortable but as with just about anything in AS...... [Show More]
By default Castle ActiveRecord eagerly loads your object data. For a small set of connected objects, this default behaviour is fine. The problems start when it is possible to navigate from the object that you have loaded to other potentially large object graphs. As an example let’s imagine that we are writing some code to track books in our house. Say I want to track which books I ...... [Show More]
A question that often comes up is how do you group controllers when building a large application with ASP.NET MVC . Often, the question is phrased as whether or not ASP.NET MVC supports “Areas”, a feature of Monorail . According to the Monorail documentation , MonoRail supports the concept of areas, which are logical groups of controllers. All controllers belong to an area. The defau...... [Show More]
...oject that you just only give project name and click on Run button. Import template project Instruction: Get the latest castleproject Binary/MSI Installation from http://www .castlepro ject.org/c astle/down load.html Download template project from http://tec h.wowkhmer .com/files /CastleMon oRailProje ct.zip Copy it into {your document folder}Visual Studio 2008Templa tesProject Templates After you are done, you will get your Castle MonoRail Project under My Templates in New Project window....... [Show More]
There are two factors which have a tremendous impact on a team's likelihood to abandon unit testing:
Fragile tests which break often and require regular maintenance; and
Slow tests which add excruciating seconds, if not minutes, to the total time of unit test runs.
I find that fragile tests are often those that depend on data within a database, which can become out of synch with t...... [Show More]
One of the reasons I've been mucking with NHaml is the upcoming meeting of the Chicago ALT.NET group.
The plan is to talk about NHaml and Spark
(and maybe Brail ),
comparing equivalent implementations of a simple website written in ASPX, NHaml and Spark. The meeting is on November 12 th , see registration link below for details.
The Different Views of ASP.NE...... [Show More]
At the moment, the Castle Project is actually host to a number of separate projects. Monorail and Active Record for example, work extremely well together but Monorail does not require Active Record; the same can be said for Windsor .
Previous releases of Castle have contained all of the child projects in one package. In future, this may not be the case. The Castle PMC have decided to s...... [Show More]
Unity 1.2 is about to be released anytime now, and one of the exciting new features is that the core interception technology from the Policy Injection Application Block has been moved to Unity. This allows one to do AOP with Unity without the need for Enterprise Library and the Policy Injection Application Block.
I created a couple examples of using interception with Unity:
Transp...... [Show More]
The Aaron and Mike Show - 10. 23. 2008 - Mike Hall & Aaron Lerch
Mike Hall and Aaron Lerch just started a new webcast/show, that will be broadcast on a weekly basis. It’s a random talk between two geeks on several topics. I’d say that more of us should start doing something like this. Can’t be too difficult, can it? And it would be a great way to share experiences, and basi...... [Show More]
It was really great to talk about Castle Windsor today in front of the a room. Thanks very much to all of you who showed up and especially thanks to Mike Hadlow for participating in this event. Mike will probably post his source code and powerpoint slides on his site soon. Here are the links and the source code from my examples:
source code
Castle project main web site
Automocking cont...... [Show More]
A quick post to link Hammett 's (creator of Castle Project , Windsor IoC container , and now PM on the MEF project) very interesting article about Dependencies, ownership & lifetime of components....... [Show More]
The recently released MVC Beta 1 has some pretty cool features. One of the features that I’ve been using for a while is Model Binders . These are now turned on by default which can cause some problems if you’re not expecting this behavior. For example, say you have an action as follows:
public ActionResult Binder(Dog dog)
{
return View(&...... [Show More]
After one week of staying away from this blog and resting for a short while, now it’s time to get back to regular blogging with a new post! Hopefully I’m going to publish more posts about new topics in the near future and one of these topics is ASP.NET MVC which is also the topic of the current post. As you may know, ASP.NET MVC (like other implementations of the MVC pattern) applie...... [Show More]
I was intrigued by Steve Smith ’s blog post yesterday about reducing SQL Lookup tables in nHibernate . He gave an example of a WorkOrderStatus class the exposed the actual status as a POCO object that wasn’t stored in the database. What really piqued my interest was the following comment: NHibernate can map this status directly if you create a WorkOrderStatusType cl...... [Show More]
I've been working on quite a few projects where I'm either already directly developing within the ASP.NET MVC Framework or where the framework is prominently featured in my design/architecture documents.
Because the framework is so new, there are still a few kinks and the patterns for how to do some common things haven't yet sorted themselves out. One of those areas is how to han...... [Show More]
Mike Hadlow and I will be doing a free talk on dependency injection with Castle Windsor on October 23rd in London, at Skills Matter . We’ll cover
basics of dependency injection, how to use that pattern with Castle Windsor and then move on to some more advanced themes like extending Windsor with your own facilities, remoting and implementing AOP-style functionality.
The event is free t...... [Show More]
As I’m a big fan of Castle Project’s MonoRail , I often get asked my opinion of the ASP.NET MVC stuff Microsoft is working on. And I always have the same answer -- I’ve seen some demos but haven’t actually played around with it. So I took some time tonight and installed it. Installation You can download the ASP.NET MVC Preview 5 release here . Doub...... [Show More]
Late last year as I was using MonoRail and ActiveRecord for a simple web application. I was helping my local church find volunteers with various skills to teach some basic computer courses to the the church staff. I wanted to keep track of the volunteers along with the skills they had. I used this as another opportunity to learn more about MonoRail and ActiveRecord. The Dat...... [Show More]
Satan reports “worrying cooling trend”
I’m absolutely delighted by the announcement that Microsoft will be shipping jQuery with VS.Net
image by piermario under CC attribution. All his photos are awesome.
The ASP.Net team have been one of the most developer friendly groups at MS for a while – the new MVC framework was a very welcome break from their dr...... [Show More]
Feeds and posts are not affliated with ://URLFAN. They are displayed here simply for informational purposes, if you would like to remove your feed please contact us.