LA.NET [EN]

2008Archive

Dec 30

Happy New Year!

Posted in Trivia       Comments Off on Happy New Year!

I’m still recovering from Christmas but New Year’s already here. So what can I say? The only thing I can think ok is wish everyone a Happy New Year!

Read the rest of this entry »

Dec 26

In the lasts posts, we’ve started looking at some of the HtmlHelper extension methods that you can use to render controls on your forms (we’ve looked at several methods you can use to render HTML INPUT controls). Today we’re going to keep looking  at the extenders, but we’ll concentrate on how to generate forms on […]

Read the rest of this entry »

Dec 24

New features in ASP.NET 3.5

Posted in ASP.NET       Comments Off on New features in ASP.NET 3.5

I’ve just noticed that there’s a Wrox Blox by Wally which presents the new ASP.NET features introduced by .NET 3.5 Service Pack 1. If you want to know more about these features, then go ahead and read the blox.

Read the rest of this entry »

Dec 23

Merry Christmas to you all!

Posted in Trivia       Comments Off on Merry Christmas to you all!

Yep, it’s that time of the year again… I’d like to wish you all a Merry Christmas and a Happy New Year! And don’t forget to have fun, ok? :,,)

Read the rest of this entry »

Dec 22

Yesterday I was watching the last “decent” concert from Nightwish (ok, I really should have said their last concert where Tarja was the main singer). There is a good chance that you don’t know Nightwish. So, a quick recap is in order. Nightwish is a Finnish band which combines strong vocals (especially when they had […]

Read the rest of this entry »

Dec 19

MVC Design Gallery announced

Posted in ASP.NET, MVC       Comments Off on MVC Design Gallery announced

Scott Gu announced the new MVC Design Gallery today. He also talked about several changes that will be presented on the RC version of ASP.NET MVC.

Read the rest of this entry »

Dec 18

The MVC framework – refactoring the previous example

Posted in ASP.NET, MVC       Comments Off on The MVC framework – refactoring the previous example

In the last post we’ve seen a really simple example of how to use the existing HtmlHelper methods for building a simple form. We’ve also seen how to validate those results and how to pass them for further processing. to achieve that, we used all “low-level” methods provided by the framework (ie, we’ve resorted to […]

Read the rest of this entry »

Dec 18

The MVC platform – the HtmlHelper class (part III)

Posted in ASP.NET, MVC       Comments Off on The MVC platform – the HtmlHelper class (part III)

After the slight detour for introducing validation support, it’s time to go back to the helpers which you can use for generating HTML controls from your views. I think that the second post on the HtmlHelper class should have been more than enough for understanding how things work, so in this post I’ll just jump […]

Read the rest of this entry »

Dec 17

Today we’re going to look at the validation support introduced by the framework. Do keep in mind that we’re not talking about using validators like the one you have in the ASP.NET web forms world. Nop! here validators are only responsible for showing an error message to the user. In practice, this means that you […]

Read the rest of this entry »

Dec 16

The MVC platform – the HtmlHelper class (part II)

Posted in ASP.NET, MVC       Comments Off on The MVC platform – the HtmlHelper class (part II)

Today we’re going to keep talking about the methods associated with the HtmlHelper classes. In this post, we’ll concentrate on the extension methods defined on the InputExtensions.cs file that allow us to introduce several textboxes on a page (ie, HTML Input elements if you really want to  be picky). We’ll end up analyzing the three […]

Read the rest of this entry »

Dec 15

The MVC platform – the HtmlHelper class (part I)

Posted in ASP.NET, MVC       Comments Off on The MVC platform – the HtmlHelper class (part I)

After a long break, it’s time to go back to the MVC framework study. And today I’ll start from where I’ve stopped last time: the helpers. Today, I’m going to start talking about the HtmlHelper class which has lots of methods that you can use on your views for generating HTML. If you’ve downloaded the […]

Read the rest of this entry »

Dec 15

Asus Eee 1000h

Posted in Uncategorized       Comments Off on Asus Eee 1000h

The unthinkable happened: my wife’s laptop decided to retire itself ahead of time. So, I was left with the task of finding her a replace laptop for the cheapest price I could get. What happened? I’ve ended up buying a new laptop for me, which means that she is now a proud user of a […]

Read the rest of this entry »

Dec 11

Another cool interview with Medina Carreira

Posted in Trivia       Comments Off on Another cool interview with Medina Carreira

In Portuguese only.

Read the rest of this entry »

Dec 11

Book review: Practical .NET for the Financial Market

Posted in Books       Comments Off on Book review: Practical .NET for the Financial Market

A few months ago I was interested in learning more about the financial market and I’ve found this book at Amazon. The reviewers gave it a really good score, so I bought the book. What a waste of money! For starters, I was expecting (at a minimum) .NET 2.0 code. Unfortunately, everything is written in […]

Read the rest of this entry »

Dec 10

Is DDD for me?

Posted in DDD       Comments Off on Is DDD for me?

I think it’s really hard to present a definitive definition for Domain Driven Design. In my opinion, Domain Driven Design can be seen as a philosophy for developing applications based on specific domains and their logic where an ubiquitous language use is probably one of its most important features. If you’ve read Eric Evan’s book, […]

Read the rest of this entry »

Dec 08

One of the open source projects I’ve been following in these last months is the S#arp project (pronounced Sharp Architecture) started and coordinated by Billy McCafferty. According to the homepage, this framework “is a solid architectural foundation for rapidly building maintainable web applications leveraging the ASP.NET MVC framework with NHibernate”.  The framework adheres to the […]

Read the rest of this entry »

Dec 02

While I was reading the Essential Windows Communication Foundation book (from Addision Wesley), I found the following code (on a transaction required for a WCF service context): [OperationBehavior(TransactionScopeRequired = true,    TransactionAutoComplete = true)] public void Transfer( String from, String to, double amount){   try {     Withdraw(from, amount);     Deposit( to, amount);   } […]

Read the rest of this entry »

Dec 01

Velocity looks good

Posted in Velocity       Comments Off on Velocity looks good

So, I’ll probably get it and write some rambles about it in the next days…

Read the rest of this entry »

Nov 25

Subcontrollers and caching on ASP.NET MVC

Posted in ASP.NET, MVC       Comments Off on Subcontrollers and caching on ASP.NET MVC

I’ve just read two interesting posts by Steve Sanderson which show how to add these features to the current release of ASP.NET MVC. Really interesting, if you ask me…

Read the rest of this entry »

Nov 23

2011-01-12 11:31:56

Read the rest of this entry »

Nov 19

If you look closely at your bin folder, you’ll see that besides getting your project’s assembly, you’ll also have another assembly with the your_Assembly_name.Contracts.dll name. This assembly is known as the contract reference assembly and it only has the public “interface” of the types defined on your assembly and their respective contracts. Why do we […]

Read the rest of this entry »

Nov 18

Code contracts: the missing methods

Posted in C#, Design by Contract       Comments Off on Code contracts: the missing methods

In the last posts, I’ve been talking extensively about Code Contracts. If you’re a reader of this blog, you know that I’m hooked on it. I’ve just been reviewing the previous posts and I’ve noticed that I didn’t mention the Assert and Assume methods. Both are used for testing state and  assumptions on a specific […]

Read the rest of this entry »

Nov 12

Code Contracts and runtime rewriting

Posted in C#, Design by Contract       Comments Off on Code Contracts and runtime rewriting

Today we’re going to keep looking at Code Contracts. Until now, I’ve been concentrating essentially in presenting its use and mentioning how great it is to have static analysis (ie, have something that goes through your code at compile time and detects several places which might breaking existing contracts). Today it’s time to take a […]

Read the rest of this entry »

Nov 10

C# 4.0: named parameters

Posted in C#       Comments Off on C# 4.0: named parameters

After several failed tries, I finally managed to configure my home PC so that it runs the Server 2008 image (with the first preview of .NET 4.0) and just with a reasonable enough delay. Ok, since I”m finishing writing a book on C# 3.0 (with my good friend Paulo), I thought that I should start […]

Read the rest of this entry »

Nov 09

Code Contracts also supports are quantifiers (with several limitations, as we’ll see). This means that you can check a predicate against elements in a collection or interval. You can use the ForAll method for running a predicate over several elements maintained on an collection or interval. The Exists method will let you apply a predicate […]

Read the rest of this entry »

Nov 08

Code Contracts and compatibility with existing code

Posted in C#, Design by Contract       Comments Off on Code Contracts and compatibility with existing code

2011-01-12 11:31:25

Read the rest of this entry »

Nov 08

200 000 hits

Posted in Trivia       Comments Off on 200 000 hits

According to ClustrMaps, I’ve had 200 000 visitors on my blog since I’ve started using their product. Not bad since I never expected to hit the 100 000 mark. I would like to say thanks to Everyone who takes the time to visit this place regularly and contribute with comments on my thoughts about development […]

Read the rest of this entry »

Nov 07

Adding Code Contracts to your interfaces

Posted in C#, Design by Contract       Comments Off on Adding Code Contracts to your interfaces

[Update: I’ve changed the code so that the contract class implements the interface explicitly. This is required for getting static analysis. One more thing: the first release of the project has a bug and  even if you implement the interface explicitly, you won’t get static analysis.] One of the interest things Code Contracts lets you […]

Read the rest of this entry »

Nov 06

More on Code Contracts: out parameters and field access on preconditions

Posted in C#, Design by Contract       Comments Off on More on Code Contracts: out parameters and field access on preconditions

In this post we’ll keep looking at how Code Contracts can really help you improve your code. Today, we’ll see how one can use fields and out parameters in contracts. Lets start with fields. Ok, the title is a little misleading…you can use fields in your contract. But what happens when you need to define […]

Read the rest of this entry »