Geeks With Blogs
Lee Brandt's Blog You're only as smart as your last line of code May 2009 Entries
Permanent Marker on the White Board
A friend of mine, Troy, showed me this a while ago, and I thought this is probably one of the best office tips EVAR. Have you ever been designing at the white board and accidentally wrote on it with a permanent marker? We use sharpies all the time for User Stories and it happened to me and I thought I was forced to live with the blue blemish on my whiteboard forever. Not true. Take a regular white board marker (preferably the same color as the permanent marker) and write right over the top of the ......

Posted On Friday, May 22, 2009 8:41 PM

Resharper Tip: Navigating to a type
Obviously, my Tip of the Day is not meant to be a DAILY thing, so I thought I’d just rename to R# Tip. This is a pretty common one, but it’s possible some people aren’t aware of it. For simple navigation, using ctrl+t or ctrl+shift+t can be invaluable. If you need to navigate to the file containing the Floogle type ctrl+t can get you there in a hurry. Hit ctrl+t and then type the name of the type you want to navigate to. You can also use capitalizxation to get you there faster. For instance, if you ......

Posted On Monday, May 18, 2009 6:43 AM

Conversation Starter: To Sproc or NOT to Sproc
With the flat response from the series so far, I thought I’d stir the pot a little. Again, I am not trying to start a flame war, I just want to share my opinion and start a conversation about it. I’ll start by saying that I am VERY comfortable using SQL. PL/SQL, T-SQL and even a bit of MySQL (ack). But after using NHibernate for the last year or so, I can honestly say that if I never write another sproc, I’ll be totally OK with that. I don’t think sprocs are evil, or ruin your application, for me ......

Posted On Thursday, May 7, 2009 7:44 PM

Use NHibernate (With Fluent NHibernate) To Test Your CRUD In One Line Of Code
It’s true, I swear. It’s very simple to test if you can (C)reate, (R)ead, (U)pdate and (D)elete objects using NHibernate, and Fluent NHibernate makes it one (fluent) line of code! Suppose we have an Employee object and we want to check that we can CRUD it AND reference to the Company (object) they work for in the mapping. It might look like this: 1: new PersistenceSpecification<... 2: .CheckProperty(x => x.FirstName, "Dave") 3: .CheckProperty(x => x.LastName, "Jones") 4: ......

Posted On Thursday, May 7, 2009 7:41 PM

Using Linq to Test Your Query Logic Without Touching The Database
That’s right, I said it, I’ve been doing it, and I abso-effin-lutely love it. A few months ago my co-worker, Troy, posted a question on Stack Overflow. We were doing integration testing on a project we were working on, and as the object graph grew larger, the code required to test query logic became painful. Since I am a sissy and don’t like pain, Troy asked the question on SO about how we might do it less painfully, and we got this answer, and it totally changed our TDD/BDD lives. The answer came ......

Posted On Thursday, May 7, 2009 7:28 PM

Updates, Updates, Updates
1) OK, so Coders4Charities went well. The .NET User Group Meeting went well. Now it’s time to take a (small) break. 2) Most who know me probably already know, but I’ve been assigned as regional mentor for INETA membership for Missouri and Kansas. That will be consuming some of my time to get my head around who my UG leaders are and what they need from me, as well as helping fledgling UGs get started. 3) I won Fourth Place in Community Credit for the month of April! I get a sweet pin clock. 4) I will ......

Posted On Monday, May 4, 2009 1:30 AM

Copyright © Lee Brandt | Powered by: GeeksWithBlogs.net