chinhdo

Stories kicked by chinhdo

Transactional File Operations in .NET (without TxF)(transactionalfilemgr.codeplex.com)

submitted by chinhdochinhdo(395) 1 year, 11 months ago

.NET Transactional File Manager (now an open source project on CodePlex) can effectively turn any file system into a transactional file system. Does not require Transaction NTFS (TxF). Supports file copy, move, delete, append, write, etc. read more...

add a comment |category: |Views: 124

tags: another

Going Lazy<T> with System.Lazy(www.dimecasts.net)

submitted by dwhittakerdwhittaker(13.1k) 2 years ago

Taking a look at the how to use the System.Lazy namespace in .Net 4.0. One of the pretty cool new nuggets inside the .Net 4.0 framework is System.Lazy and System.Lazy. What System.Lazy brings to the table is a way to create objects which may need to perform intensive operations and defer the execution of the operation until it is 100% absolutely needed. read more...

add a comment |category: |Views: 609

tags: another

Top 5 new features of Visual Studio 2010 and .NET 4(www.dailycoding.com)

submitted by rsonirsoni(930) 2 years, 1 month ago

Discusses the new features of Visual Studio 2010 and .NET 4 read more...

add a comment |category: |Views: 922

tags: another

SQL Server - Using SET NOCOUNT ON(beyondrelational.com)

submitted by jacobsebastianjacobsebastian(3639) 2 years, 1 month ago

This post explains the advantages of using SET NOCOUNT ON in stored procedures. A must read for SQL Server developers and DBAs read more...

add a comment |category: |Views: 636

tags: another

Who Knew Domain Validation Was So Hard?(codethinked.com)

submitted by john2021john2021(600) 3 years, 3 months ago

Justin continues searching for the best place to put domain validation logic. read more...

add a comment |category: |Views: 340

tags: another

Wrap Unit Tests in Transactions(chinhdo.com)

submitted by chinhdochinhdo(395) 3 years, 3 months ago

The key to writing good unit tests that interact with the database is making sure that the data is in a known state before and after the test. System.Transactions makes this very easy. read more...

add a comment |category: |Views: 7

tags: another

Catch, Rethrow and Filters - Why you should care?(blogs.msdn.com)

submitted by N1MBL3N1MBL3(10) 3 years, 3 months ago

A very common pattern in the usage of managed exception handling is that of catching an exception, inspecting it's type and rethrowing it once you realize it was not the exception you wanted to handle. read more...

add a comment |category: |Views: 11

tags: another

You're Doing It Wrong(codinghorror.com)

submitted by spoulsonspoulson(327) 3 years, 3 months ago

Templating tends to break down because it forces you to treat code and markup as two different and fundamentally incompatible things. We spend all our time awkwardly switching between markup-land and code-land using escape sequences. They're always fighting each other -- and us. read more...

add a comment |category: |Views: 373

tags: another

Using C# "Yield" for Readability and Performance(ytechie.com)

submitted by SuperJasonSuperJason(2740) 3 years, 3 months ago

I must have read about “yield” a dozen times. Only recently have I began to understand what it does, and the real power that comes along with it. I’m going to show you some examples of where it can make your code more readable, and potentially more efficient. read more...

add a comment |category: |Views: 818

tags: another

Algorithm to Detect Blank Images(chinhdo.com)

submitted by hexyhexy(325) 3 years, 8 months ago

Nice piece of code to help with detecting blank images. read more...

add a comment |category: |Views: 202

tags: another

Have Your File Operations Participate in Transactions Today(chinhdo.com)

submitted by chinhdochinhdo(395) 3 years, 8 months ago

By implementing IEnlistmentNotification, you can have your file operations (copy, delete, write, etc.) participate in transactions without requiring Transactional NTFS (TxF), which only works on Vista and Windows Server 2008. Working code included. read more...

add a comment |category: |Views: 24

tags: another

Put IDataRecord.GetOrdinal Method to Good Use(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 3 months ago

IDataReader.GetOrdinal can help improve code maintainability with little cost. read more...

add a comment |category: |Views: 71

tags: another

Try/Catch Blocks Can Hurt Performance Significantly(chinhdo.com)

submitted by chinhdochinhdo(395) 4 years, 3 months ago

Over at Programmers Heaven.com, there’s an interesting article on the potential performance impact of try/catch blocks. The article concluded that the average cost of a try/catch block is essentially nothing (sorry there’s no author information on the post), and that .NET/C# programmers should not think twice about using try/catch blocks. The author is right that a try/catch block has essentially zero cost. However, like most coding performance issues, exceptions and try/catch blocks do not have performance implications until they occur in some type of loop. read more...

9 comments |category: |Views: 54

tags: another

Vista SP1: Terminal Services /console switch no longer working(west-wind.com)

submitted by PeterRitchiePeterRitchie(1505) 4 years, 3 months ago

One caveat of installing Vista SP1 if you use Terminal Services. read more...

add a comment |category: |Views: 15

tags: another

Dual Monitors for Developers(blog.jrpsoftware.com)

submitted by rplantrplant(750) 4 years, 4 months ago

Let's face it, a multiple monitor setup is the only way to go for a software developer, or any other computer professional these days. If you are still using only a single monitor, you are not working at your full potential. read more...

8 comments |category: |Views: 38

tags: another

Happy 2nd Birthday DotNetKicks(dotnetkicks.com)

submitted by gavinjoycegavinjoyce(25.7k) 4 years, 4 months ago

DotNetKicks.com is 2 year old today. A big thanks to everyone who has contributed to the community. read more...

3 comments |category: |Views: 3

tags: another