This post originated from an RSS feed registered with .NET Buzz
by Paschal.
Original Post: Dispose and close or close without dispose
Feed Title: help.net
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/pleloup/Rss.aspx
Feed Description: .Net for mankind !
I just finished reading the comments on Rory's last post. And well I can admit I am confused.
The comments posted there make me think that nothing is absolute in the way you can deal with .Net coding. That sounds strange.
After all, computer programming should be an almost exact science, at least for the basic algorithms based on standard methods.
There, it seems that nobody agree on a common practice for something looking simple as closing a Sql connection?!?
Does it mean we have infinity of solutions for something simple? In this case, what's about complex things?
Other second thoughts are about the people writing books. I'm used to the idea that if you read a .Net bible written by some gurus on 'how to open and close Sql connections', this is bullet proof and quite an exact view of what I should do in my code. Again there reading Rory's blog make me think now the opposite, and yes this is really confusing.