LA.NET [EN]

September, 2008Archive

Sep 30

Blogging pause

Posted in Trivia       2 Comments »

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 […]

Read the rest of this entry »

Sep 28

JQuery shipping with VS

Posted in ASP.NET, JQuery       Comments Off on JQuery shipping with VS

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 […]

Read the rest of this entry »

Sep 28

Silverlight 2 RC is out

Posted in Silverlight       Comments Off on 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.

Read the rest of this entry »

Sep 26

NHibernate and value objects

Posted in C#, NHibernate       Comments Off on 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 […]

Read the rest of this entry »

Sep 24

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 […]

Read the rest of this entry »

Sep 23

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 […]

Read the rest of this entry »

Sep 23

The MVC platform – the UrlHelper class

Posted in ASP.NET, MVC       Comments Off on The MVC platform – the UrlHelper class

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 […]

Read the rest of this entry »

Sep 22

Good book list

Posted in Trivia       Comments Off on 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 […]

Read the rest of this entry »

Sep 22

Installing iTunes on Windows Vista

Posted in Trivia       Comments Off on 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 […]

Read the rest of this entry »

Sep 22

The MVC platform – ViewPage and ViewUserControl classes

Posted in Uncategorized       Comments Off on 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 […]

Read the rest of this entry »

Sep 21

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 […]

Read the rest of this entry »

Sep 19

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 […]

Read the rest of this entry »

Sep 19

The MVC platform – the WebFormView class

Posted in ASP.NET, MVC       Comments Off on The MVC platform – the WebFormView class

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 […]

Read the rest of this entry »

Sep 19

The MVC framework – customizing the search locations

Posted in ASP.NET, MVC       Comments Off on The MVC framework – customizing the search locations

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 […]

Read the rest of this entry »

Sep 17

The MVC platform – view engines

Posted in ASP.NET, MVC       Comments Off on The MVC platform – view engines

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 […]

Read the rest of this entry »

Sep 16

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…

Read the rest of this entry »

Sep 16

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 […]

Read the rest of this entry »

Sep 16

Codeplex, SvnBridge and Tortoise

Posted in Tools       Comments Off on 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.

Read the rest of this entry »

Sep 15

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 […]

Read the rest of this entry »

Sep 12

PostSharp RTMed…

Posted in Tools       Comments Off on PostSharp RTMed…

PostSharp 1.0 is now  in RTM. Get it from here.

Read the rest of this entry »

Sep 11

The MVC platform – a more detailed view on how your filters are run

Posted in ASP.NET, MVC       Comments Off on The MVC platform – a more detailed view on how your filters are run

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. […]

Read the rest of this entry »

Sep 10

Fluent interfaces and routing

Posted in ASP.NET, MVC       Comments Off on Fluent interfaces and routing

Some interesting ideas on how to extend routing with a fluent interface approach based on query string values.

Read the rest of this entry »

Sep 10

The MVC framwork – model binders

Posted in ASP.NET, MVC       Comments Off on The MVC framwork – model binders

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 […]

Read the rest of this entry »

Sep 09

The MVC framework – The IActionInvoker interface

Posted in ASP.NET, MVC       Comments Off on The MVC framework – The IActionInvoker interface

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 […]

Read the rest of this entry »

Sep 08

Book review: The design of everyday things

Posted in Books       Comments Off on 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 […]

Read the rest of this entry »

Sep 08

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 […]

Read the rest of this entry »

Sep 05

First thoughts on LINQ To SQL

Posted in C#, LINQ       Comments Off on First thoughts on LINQ To SQL

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 […]

Read the rest of this entry »

Sep 05

Protected: DI frameworks

Posted in C#       Enter your password to view comments.

There is no excerpt because this is a protected post.

Read the rest of this entry »

Sep 05

Repositories, web apps and optimistic concurrency

Posted in ASP.NET, C#       Comments Off on Repositories, web apps and optimistic concurrency

Yesterday, I was looking at some code and I found something like this on a method that handles the confirm click of a web page which triggers an update on a specific domain object: var aux = Request.Form[“Id”] == null ?                                 new MyObject() :                                  rep.GetById(Request.Form[“Id”]); //update aux’s properties with the values from the […]

Read the rest of this entry »