Alec Lazarescu's Blog
Welcome to Alec Lazarescu's Blog
Sign in
|
Join
|
Help
Go
Home
|
Blogs
RSS 2.0
|
Atom 1.0
|
<
July 2010
>
Su
Mo
Tu
We
Th
Fr
Sa
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
This Blog
Home
Links
Tags
Creative
Functional Programming
Refactoring
SQL Server
T-SQL
Unit Testing
Archives
October 2008 (1)
September 2008 (1)
April 2008 (1)
February 2008 (6)
January 2008 (2)
October 2007 (1)
June 2007 (1)
February 2007 (2)
Browse by Tags
Creative
Functional Programming
Refactoring
SQL Server
T-SQL
Unit Testing
Syntactic Sugar for Thrown Exception Checking with Generics
Posted
Saturday, October 25, 2008 8:52 AM
by
alecl
::
1 Comments
Filed under
Unit Testing
,
Functional Programming
Using attributes like [ExpectedException] can obscure intent because they apply to the whole method instead of a specific call you're checking. To make intent totally clear and prevent unexpected bugs, you should wrap just the statement you're expecting
Read More...
Functional Programming and Unit Testing
Posted
Saturday, September 13, 2008 10:21 AM
by
alecl
::
0 Comments
Filed under
Unit Testing
,
Functional Programming
These code samples are from: http://www.ayende.com/Blog/archive/2008/06/06/Scratching-an-itch-NMemcached.aspx public class SystemTime { public static Func<DateTime> Now = () => DateTime.Now; } At first I was wondering what the point of that was.
Read More...
SQL 2008 Feb CTP6 Query Workaround
Posted
Saturday, April 05, 2008 3:56 PM
by
alecl
::
0 Comments
Filed under
SQL Server
If you're like me and always change the default install directories, you've probably run into this. A workaround is here . Share this post: Email it! | bookmark it! | digg it! | reddit!
Read More...
Good Overview of Types of Testing and TDD
Posted
Friday, February 22, 2008 5:58 PM
by
alecl
::
0 Comments
Filed under
Unit Testing
Test-driven development, Unit Test, VSTS, NUnit, TestDriven.NET, whats all this? Good Overview of Types of Testing and TDD Share this post: Email it! | bookmark it! | digg it! | reddit!
Read More...
Testing Theories Part 4 - TypeMock Isolator - The Dark Horse of Unit Testing?
Posted
Monday, February 18, 2008 8:17 PM
by
alecl
::
3 Comments
Filed under
Unit Testing
Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Testing Theories Part 3 - IoC Containers (Castle Windsor, Spring.NET), AutoMocking Containers
Posted
Monday, February 18, 2008 5:41 PM
by
alecl
::
4 Comments
Filed under
Unit Testing
Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Testing Theories Part 2 - Unit Testing with Inversion of Control Pro's/Con's
Posted
Monday, February 18, 2008 2:04 PM
by
alecl
::
4 Comments
Filed under
Unit Testing
Another in a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Testing Theories Part 1 - Classical vs Mock Testing
Posted
Monday, February 18, 2008 11:01 AM
by
alecl
::
3 Comments
Filed under
Unit Testing
I'll begin a series of posts that in no small part will serve as summaries/reminders to myself on various readings on the topic of automated code testing. Perhaps others will find them useful though. I can't take credit for any terribly creative conjectures
Read More...
Software Engineering
Posted
Wednesday, February 06, 2008 7:18 AM
by
alecl
::
0 Comments
What do software engineer's do? A well written description notably devoid of terms like "code monkey". Share this post: Email it! | bookmark it! | digg it! | reddit!
Read More...
Assigning Responsibilities
Posted
Monday, January 14, 2008 8:04 AM
by
alecl
::
1 Comments
Filed under
Refactoring
,
Unit Testing
It’s All about Assigning Responsibilities This example really hit home for me. I am faced with a very similar legacy code design where some processing takes place and an e-mail is sent out. My current tests consist of integration tests that outright send
Read More...
Philly Dot Net Code Camp
Posted
Sunday, January 13, 2008 7:33 PM
by
alecl
::
0 Comments
http://www.phillydotnet.org/ This Saturday I attended the Philly Dot Net Code Camp. It was very well organized, especially considering it was a free, volunteer run conference. I spent most of my time in the ALT.NET track and really found some excellent
Read More...
tempdb contention and trace flag 1118
Posted
Wednesday, October 17, 2007 4:54 AM
by
alecl
::
0 Comments
It has been recommended for SQL 2000 and 2005 to enable trace flag 1118 to disable mixed extent allocation. Recently a hotfix came out for SQL Server 2005 SP2 that resolved a potential contention issue with the flag itself: http://support.microsoft.com/kb/936185
Read More...
Creative Queries
Posted
Monday, June 18, 2007 4:26 PM
by
alecl
::
0 Comments
Filed under
Creative
,
T-SQL
,
SQL Server
Two interesting techniques I came upon: http://www.sqlteam.com/article/sql-sever-2005-using-over-with-aggregate-functions Retrieve aggregate data using OVER(Partition by ...) rather than doing another join http://weblogs.sqlteam.com/jeffs/archive/2007/06/12/60230.aspx
Read More...
Promises and Paradigms
Posted
Sunday, February 25, 2007 11:37 PM
by
alecl
::
0 Comments
Filed under
Refactoring
,
Unit Testing
I've always tried to make it a point to read a lot about the industry and constantly shifting and improving methods and best practices. Sometimes the buzz dies down after a bit -- I was particularly amused to find people tired of the lofty promises of
Read More...
Community
Posted
Sunday, February 25, 2007 11:03 PM
by
alecl
::
0 Comments
Ever since I started x86 programming, I've always found communities of individuals sharing knowledge and collaborating from the early days on local BBS's and FidoNet to forums and blogs today. It's quite ironic considering all the jokes about anti-social
Read More...