Browse by Tags
All Tags
»
C#
(
RSS
)
AOP
ASP.NET
ATLAS
Books
LINQ
MVC
NHibernate
Parallel Extensions
PLINQ
Trivia
WCF
WF
WPF
04 October 2008
RouteValueDictionary: abuse or elegance?
Today I was reading an old post by Mike Tauty about the RouteValueDictionary and I remembered some old discussions on the RouteValueDictionary class. As many others, Mike sees the RouteValueDictionary as an abuse of the new anonymous type feature introduced by C# 3.0. Me: well, I’m not so quick in saying...
Read More...
02 October 2008
Back to the basics: should I initialize my variables?
If you’re an old C++ programmer, then you know that you must always initialize your variables (this has been recommended by Scott Meyers in his Effective C++ book). Now, I must say that I don’t really have an opinion on this one. Generally, I tend do initialize all my (local) variables, though I’ve read...
Read More...
26 September 2008
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...
Read More...
24 September 2008
Leveraging extension methods for a better API
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 is good advice that I have...
Read More...
21 September 2008
Future projects: Portuguese C# book on LINQ
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 of the month...
Read More...
05 September 2008
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 have to inherit from...
Read More...
05 September 2008
DI frameworks
In these last days I’ve been looking at the S#arch with attention (and I’ve been having some cool discussions on its mailing list ) and I’ve noticed that it uses Ninject for DI. I’ve been looking at its docs and it looks promising: I like its fluent interfac approach for setting up the dependencies....
Read More...
05 September 2008
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 ? ...
Read More...
28 July 2008
More C# style trivia
In one of my last posts , I’ve said that I didn’t like the new recommendation of not using _ to prefix member fields. At the time, we all seem to agree that using hungarian was really a bad thing. So, I’ve searched the web and I’m putting here a link on the use of Hungarian notation by the man himself...
Read More...
15 July 2008
C# style conventions: more religious wars coming!
Yes, it's one of those posts where you either agree or disagree completely :) Anyway, after having a 15 minutes discussion with my friend Paulo (which, btw and as usual, disagrees with me) yesterday at 1AM, I've decided to write this post. The problem: MS recommends that variable names shouldn't...
Read More...
08 July 2008
How to see if a string contains another…
Ok, so you already know the answer, right? That’s why the String class has the Contains method. And it will work until you need to explicitly need to use a different StringComparison option than the one that is used by default. If like me, you know that Reflector is your friend, then you can just open...
Read More...
20 June 2008
The C# compiler is really smart, but…
I’m still not understanding why it won’t give me a warning when I create an internal class with a public method. Here’s an example: class MyInternalClass{ public void Test(){} //no compiler warning } Ok, at the end of the day, Test is really an “internal” method since the acessibility of...
Read More...
02 June 2008
Parallel Extensions June CTP is out
The Parallel Extensions CTP is out . It seems like now the PLINQ does no longer depends on the Thread pool. Instead of doing that, PLINQ now relies on the Task Parallel Library. Interesting...it's time to run some more tests...
Read More...
30 May 2008
Using Postsharp for solving the inexisting multi-inheritance problem
Well, not really... As you surely know, you cannot have mutiple inheritance in .NET. That really sucks. Yes, I agree that multiple inheritance might bring several problems but when applied correctly, it really helps. Don't believe me? Ok, take a look at WTL . Back to .NET...Since we can't use...
Read More...
20 May 2008
S#arp Architecture: first impressions
Today I've finally got some time to take a look at Billy McCafferty's S#arp Architecture . Comparing with the old NHibernate best practices project, I think it's fair to say that there are several important improvements. For instance, there's no longer a Load method that takes an instance...
Read More...
19 May 2008
Jon Skeet on the Mandelbrot benchmark
Man, you gotta love Jon Skeet ! Just read this post on a benchmark he performed on the generation of the Mandelbrot set between several single threaded and multithreaded approaches. Cool stuff!
Read More...
18 May 2008
LINQ To XML resume
I've thought it would be good to post an entry which aggregates all my LINQ To XML entries for future reference: LINQ To XML: I'm hooked! LINQ To XML: building documents with a functional approach LINQ To XML: working with documents LINQ To XML: navigating through the axis LINQ To XML: using...
Read More...
18 May 2008
LINQ To XML: applying LINQ expressions
Now that we know the basics, it's time to see how we can use this new API with LINQ. In this post, we'll start by seeing how we can filter an XML document and then we'll how easy it is to transform an existing XML tree into a different one. Lets start by defining an existing XML tree (we'll...
Read More...
12 May 2008
.NET 3.5 and VS SP beta1 goodies
You can get them from here (VS) and here (.NET). I'm reading what's new on Brad Abrams post and I'm really digging the new features:) For instance, having the format option working with JS code is simply cool! Another cool thing: the ScriptManager is able to combine scripts so there's...
Read More...
08 May 2008
C#, Java and closures
Jon Skeet published a really cool article on this topic. It's really good stuff, so go read it!
Read More...
More Posts
Next page »
Home
Contact
LA.NET [EN]
Ramblings about C#, .NET and Programming
RSS for Posts
Atom
RSS for Comments
Recent Posts
RouteValueDictionary: abuse or elegance?
Back to the basics: should I initialize my variables?
NHibernate and value objects
Leveraging extension methods for a better API
Future projects: Portuguese C# book on LINQ
Tags
AOP
ASP.NET
ATLAS
Books
C#
Cardspace
Gadgets
JQuery
LINQ
MVC
NHibernate
Parallel Extensions
PLINQ
PowerShell
Silverlight
Software
Tools
Trivia
WCF
WF
WPF
Archives
October 2008 (8)
September 2008 (31)
August 2008 (3)
July 2008 (25)
June 2008 (26)
May 2008 (30)
April 2008 (5)
March 2008 (11)
February 2008 (9)
January 2008 (15)
December 2007 (10)
November 2007 (20)
October 2007 (19)
September 2007 (29)
August 2007 (12)
July 2007 (20)
June 2007 (33)
May 2007 (44)
April 2007 (28)
March 2007 (27)
February 2007 (21)
January 2007 (37)
December 2006 (8)
November 2006 (17)
October 2006 (14)
September 2006 (5)
August 2006 (7)
July 2006 (4)
Search
Go
Community
Home
Blogs
Media
Groups
Email Notifications
Email Notifications
Go
News