Geeks With Blogs
Scott Muc Another .Net Developer Named Scott

Tips & Tricks to Boost Up Productivity with Claudio Lassala

The first set of sessions of the day didn't really interest me greatly. I enjoyed Camillo's style of presenting yesterday so I figured I would check out the session on productivity.

The first half covered many things that I already know and use. Using the quicklaunch bar, keyboard shortcuts, slickrun, sysinternal apps, folder organization were concepts/apps that I already follow/run.

There were a couple nuggets that I had never known though. One is great for capturing the text of a dialog box. So many times you see a cryptic error message and you want to copy the text and send it to someone. The text can't be highlighted, but you can still just hit CTRL+C when the dialog is active and the text in the dialog will go into the clipboard. Secondly, if you want to do a batch rename of files in a directory (common with images off of a camera) you can do a CTRL+A in Windows Explorer then hit F2. When you rename the first file, all files in the directory will be renamed with a counter appended to the name.

Behaviour Driven Design with Scott Bellware

Scott began the presentation emphasizing that Unit tests are documentation, and TDD is design. The rest of the session was spent explaining these points.

Keeping in mind that tests are documentation is something that must be thought about when writing tests. It was cool to see Scott go through some test code and clean it up so that its purpose was clear and concise. It was funny to see massive method names for the tests but it made sense. Instead of a test like GetOrderTotalTest it turned into A_10_Percent_Discount_Should_Be_Applied_To_All_Orders_Over_100_Dollars_Where_The_Customer_Has_Purchased_1000_Dollars_Of_Orders_In_The_Past. Who cares how long the method is since it's a test method not part of some API. It clearly states the business rule and the test will determine if the rule is being followed.

Another interesting point of about the testing approach is that it forces good code development. In order to make code testable it has to be loosely coupled from the data access code in order to be mocked and tested. With these ideas a little clearer I am looking forward to attempt some of these patterns.

Interaction based testing With Rhino Mocks with Oren Eini

This session went a little over my head. I've played with Rhino Mocks a bit a home but that was with the most trivial of examples. Oren is the author of Rhino Mocks so perhaps his pace was a bit fast because he knows it inside and out. Or it could have been that watching someone develop with Resharper was like watching a robot. The dude was that fast at using it.

Unfortunately I didn't get as much from this session as I would have hoped but that was because of my own limited knowledge in the area. The advantages of testing using mocks are the following: Dependency Injection, Inversion of Control, Programming to Interfaces, Separation of Concerns. The first two concepts are relatively new to me, but the second pair are things that I've been attempting to do but now have a better method of trying to design with those concepts in mind.

Table and Index Partitioning with Rick Heiges

Not really as practical as I had hoped for applications I work on but was interesting nevertheless. The session covered partitioning the data of a table for easy archive and potential speed optimizations. The discussion was more geared towards large databases so the tips didn't really pertain to Radio 3... unless we start adding billions of bands to our database.

Rapid development using Monorail with Oren Eini

I *heart* Monorail. The more I see Monorail in action and the more I play with it the more it seems like it's too good to be true. I'm ready to dump the page life cycle of webforms. Oren's first example of showing what was wrong with the whole Page_Load() event was something that I've sort of been questioning as well. Too much code goes there with too many different concerns.

Posted on Wednesday, May 16, 2007 8:40 AM Devteach 2007 | Back to top


Comments on this post: Devteach 2007 - Day 2

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Scott Muc | Powered by: GeeksWithBlogs.net