In case you want to know what the value of the __$operation field means in a SQL CDC table, here ya go:
1 = delete
2 = insert
3 = update (before the update)
4 = update (after the update)
Well I hope you've enjoyed this series. Again, I wasn't aiming to answer every question around TDD, as I still have many myself. But rather I wanted to share my experiences in hopes that it might help someone else.
Also, I would really love some feedback on all this, so if you have questions or comments please let me know! . . .
When I first started using TDD, it was a struggle. My tests seemed as complicated as the actual classes I was trying to write, and I didn’t really feel like I was getting a lot of benefit from the tests.
When I would change some code that would cause a test to fail, I didn’t really have confidence in the test. So instead of . . .
When I first read about TDD (many years ago), one of the first things I saw was: write your tests first.
“What? This is stupid, I’m gonna go get a sandwich.”
That idea didn’t make sense to me, and I think that’s probably the reaction most developers who don’t use TDD would have.
How can you test something that doesn’t exist? Well, you . . .
Anytime you are going try something new, there should be a reason, right? You wouldn't just go out and spend your hard earned money on a can of New Coke unless you thought it was going to enhance your soft drink refreshment experience. You have an expectation that the taste could be better, so you try it. Maybe not a great example . . .
Recently another developer and I have had the privilege of working on a green field project - something that we developers don’t always get a chance to do. It has been fun, exciting, daunting, frustrating – and above all else, educational.
One thing that we wanted to try on this project, which we really haven’t done in the past, is unit . . .
(What a stimulating title) Here's a fun nugget I recently discovered when deploying our ASP.NET MVC application to our dev server. We have a very simple editor that allows you to do basic CRUD operations, that (of course) worked great on my box. When I deployed it, however, I couldn’t perform a delete when using FireFox. . . .