2011-01-12 11:28:33
2008Archive
2009 MVP Award
Well, it seems like my MVP got renewed for another year. Cool! Thanks a lot MS!
Blogging pause
Well, sort of…ok, here”s the deal: I”ve been having problems on my leg for several months now. After spending some time siting, I have lots of problems getting up…It”s as if the muscle won”t stretch….Initially, fibrosis was the most viable option, but it seems like that is not the problem… It seems like it may […]
I”ve just read on Scott”s blog that JQuery is going to be shipped with VS. This is simply fantastic! I”ve been a fan of JQuery for some time now. It”s impossible not like its amazing flexibility and simplicity…and now we”ll have intellisense on VS and it looks like the future client side controls of ASP.NET […]
Silverlight 2 RC is out
I was keen on Silverlight more than a year ago, but unfortunately I”ve stopped studying it since I just had to work in other areas. It seems like now is the time to pick up where I left since Scott has announced the release of SL 2.0 R.
NHibernate and value objects
I do love NHibernate but there’ some things that keeps bothering me: value objects. Yes, NH does support it, but it seems like it’s impossible for having inheritance mapping when you decide to use them. There are some scenarios where inheritance makes sense, even when you’re thinking about value objects. For instance, lets think about […]
Much has been said about extension methods. Some love it; others see them as evil. Good discussions have been made on when to use them (and when not to use them). Greg Young had a good post on when you might want to use them whenever you control the code of a class (btw, that […]
More flame wars on the way
Today is ranting day again. So let”s get started, ok? A couple of weeks ago I had an interesting discussion on Fredrik”s Who”s to blame, Microsoft and/or .Net Community post comment section. If you”ve read the comments, you already know that I”m a firm believer in self education and that you (the developer) are always […]
Today we’re going to start looking at the “famous” (well, most of the time I call then infamous, but the one we’re looking today is cool) helper classes introduced by the MVC platform. We’re going to start with one of the most important ones: the UrlHelper class. As you’ve seen, you’re be able to access […]
Good book list
I”ve noticed today that J.D.Meier has published his reference book list. This is the kind of list I enjoy because I”m always looking for good reading references. I”ve read some of them and I can confirm that those are good books (so I guess I”ll just take my chances and start reading the other ones […]
Installing iTunes on Windows Vista
This is a note to self: next time, before installing iTunes don”t forget to “activate” VBScript by registering the vbscript.dll on an elevated privilege command line: regsvr32 vbscript.dll I”m putting this here because I know that I”ll end up forgetting it again in a few months whenever I need to install it on another PC […]
The MVC platform – ViewPage and ViewUserControl classes
Today we’ll concentrate on the final process related with the view generation. As we’ve seen in the last post, the WebFormView is responsible for instanting the page (or user control) required for rendering the HTML sent back to the client. Lets start with the ViewPage class…It extends the traditional ASP.NET Page class and it will […]
Ok, I can finally mention this on the open…in the last months I”ve been working with my friend Paulo on what is supposed to be the 1st Portuguese book on LINQ with C#. We”re well on the way to complete the 1st phase of the project and should start the reviewing stages by the end […]
Steve Smith has an interesting post with a suggestive name: “Codebehind files in ASP.NET MVC are evil”. So, it seemed appropriate to write a response with the title “Codebehind files in ASP.NET MVC *are not* evil”. I just couldn’t resist it :,,) Technically, they must be there for you to get intellisense on your aspx […]
So, after a long walk we’ve finally reached the WebFormView class. This class is responsible for instantiating a view (which may be an ASP.NET page or a user control) and generating the output that is going to be sent to the client. The class implements the IView interface which was reintroduced in this last preview […]
In the last post, we’ve seen what view engines do and how the WebFormViewEngine is responsible for initiating the properties that specify the places where the views (ASP.NET pages and user controls) are supposed to be located. At the time, I mentioned how you could register your own engine, but I forgot to point that […]
In the last post of the series, we’ve seen how PartialViewResult and ViewResult actions will end up using the response sent back to the client. We’ve also seen that these classes expose several properties that need to be set in order for them do to their work and that the Controller base class introduces several […]
Ok, I shouldn”t have, but the truth was that I ended up buying a new notebook. It”s a Toshiba and it looks great…at least on paper, that is :,,) I guess that this means that now I don”t really have many excuses for not blogging more often…
In the last post we’ve seen how ActionResult derived classes will encapsulate the return values of action methods. Today, we’ll talk about two special types of action results: the PartialViewResult and ViewResult action result classes. The PartialViewResul introduces most of the logic used when redering a view (to me, view is something that generates info […]
Codeplex, SvnBridge and Tortoise
I’ve only noticed today, but it seems like now it’s official: you can use Tortoise to access Codeplex projects.
In the last post we’ve seen how the ControllerActionInvoker ends up using the ActionResult class returned from your controller methods in order to generate the response that is sent back to the client. Today, we’ll take a look at the existing ActionResult classes and see what each of them do. Lets start with the base […]
PostSharp RTMed…
PostSharp 1.0 is now in RTM. Get it from here.
In one of the previous posts, we’ve seen how controller action methods are executed. At the time, we didn’t really dig deep into the code so today we’ll see how all those actions filters are setup in order to set up a calling stack that garantees that your filters are run in the correct order. […]
Some interesting ideas on how to extend routing with a fluent interface approach based on query string values.
In the last post of the series, we’ve seen how the default ControllerActionInvoker is responsible for performing the hard work associated with the execution of the specified action method. At the time, we’ve also seen that parameter values that are passed to the action method are recovered through the use of a model binder. A […]
Today we’ll keep looking at the source code of the ASP.NET MVC platform. In a previous post, we’ve talked about the Controller lidycle and on what goes on when a controller is instantiated and its Execute method is called (btw, if you haven’t already, you should take a look at this post which explains why […]
Book review: The design of everyday things
Ok, before you ask, the answer is no, I did not received a review copy of this book :,,) Today I”ve finished reading this entertaining book by Donald Norman. Even though the book is a bit outdated (ok, IPods, blackberries, etc. have come out for a long time now and none of them are mentioned […]
A few days ago (ok, more than one month ago:),,) I’ve written a post about the Controller class where I’ve presented its main responsibilities. With the latest release of the platform, there has been some refactorings and now you’ve got another class on the hierarchy chain of your controllers. IController –> ControllerBase –> Controller I”d […]
In these last couple of days I’ve also been busy looking at LINQ To SQL. By now, I’m able to have some opinions on it. First, the things I liked the most…LINQ To SQL is PI (ie, Persistence Ignorant) which is great (at least, that is what I think). This means that your classes won’t […]