Geeks With Blogs
Lee Brandt's Blog You're only as smart as your last line of code April 2008 Entries
The Benefits of Test-Driven Development
I am pushing myself down the TDD path. I say pushing because it is definitely a hard row to hoe. I'm not used to the test-first paradigm. I am getting better, but the purpose of this post is to talk about some of the benefits I have reaped from TDD, and help myself (and hopefully others) to learn why test-first development can help you code and your design. Stability Obviously, if you are writing a failing test, writing code to pass the test, confirming this every step of the way and your code coverage ......

Posted On Wednesday, April 30, 2008 1:17 AM

Coders 4 Charity ROCKS!
Just got home from Coders 4 Charity event here in Kansas City. I gotta tell you, it wasn't at all what I expected. I expected 2 intense, round-the-clock days of coding, with an ultimate frustration of not being able to see a full product in the end because of time constraints. That wasn't the case at all. Friday night lasted a little longer than I expected (we knocked off around 12); and Saturday was an early morning (and a late night), but it was an absolute blast! I met four great developers, and ......

Posted On Sunday, April 27, 2008 8:08 PM

Object Oriented Design Part I
I realize that this is probably WAY beginner stuff for most people who read these blogs, but I am giving these classes to some people who come from a structured programming background and it may help others in the same boat. I like to think I know OOD pretty well, but if you see something that you think (or know) is wrong drop me a comment (no flames please). In the Beginning... There was structured programming; and the developers saw that it was good. The coded and rejoiced at the marvels they created. ......

Posted On Tuesday, April 22, 2008 4:29 PM

Tools for .NET development
As I wander further into the landscape of Test-Driven Development and ASP.NET MVC, I find myself being pounded by tools. The Dependency Injection frameworks like StructureMap, Unity, NInject, Castle Windsor, Pico.NET and Spring.NET. It's also damn near impossible to do TDD without hitting a mocking framework like RhinoMocks, Moq, TypeMoq and NMock. Then, if you're serious about your enterprise-level development, you begin looking at code analysis and documentation generation frameworks. Now maybe ......

Posted On Sunday, April 20, 2008 10:32 PM

Using Active Directory as Role Manager Provider in ASP.NET
I would NOT have made it through the day if it hadn't been for this page. I am setting up a little application-ette to allow us to use our Active Directory as the single point of contact for employee information (Phone List, HR, etc). and using Active Directory for a role management provider is no joke, especially if your development box is Windows XP. Definitely take a look at the article if you need to use Active Directory as your roles manager source in an ASP.NET app. ~L ......

Posted On Thursday, April 17, 2008 5:19 PM

OK Geeks, I'm Not Afraid Of You
For a couple of weeks now, I've been blogging on GWB, but I've been playing it safe. I haven't posted much code. I haven't done any real tutorials. I've been afraid. I've been afraid that I will post a tutorial or some code and the community would rip me a new one. I had imaginings of code monkeys from everywhere telling me my code wasn't functional or elegant. But I'm done with that. I started this blog mostly to kinda chronicle things I learn, and hopefully help other people to learn with me. I ......

Posted On Wednesday, April 16, 2008 5:04 PM

How do YOU arrange your ASP.NET MVC app?
As I am learning about TDD and MVC, one thing comes up. How should I arrange my models, views and controllers? Of course, I know I need to set up the models view and cotrnollers folders for ASP.NET MVC, but what view actions should go into a controller? An example may help illustrate my question: In the default project template for an ASP.NET MVC app, you get a HomeController which has to actions in it: Index and About. Should the about really be an action on the home controller? I guess my initial ......

Posted On Monday, April 14, 2008 2:57 AM

Creating SSIS Package Error
Not sure why this happens, but I was trying to create an SSIS package on my work machine (this'll be my first SSIS package since DTS died), and recieved a weird error: Failed to save package file "C:\TEMP\tmp18D.tmp" with error 0x8002802B "Element not found" Turns out that this is due to MSXML6 not being registered. I found the solution here: http://forums.microsoft.com... Basically: To register MSXML 6.0. 1. From the Start menu, click Run. 2. Enter the ......

Posted On Thursday, April 10, 2008 4:46 AM

I Dig Digsby
I can't for the life of me find the blog entry that mentioned Digsby, but I am glad I read it. I downloaded it then, but it's been sitting on my desktop ready to try out for awhile, and I just finished installing it an playing a bit with the features. This is my new client. It does everything. MSN, AIM, Yahoo!, Jabber, ICQ, gmail (yes you can SEND emails through Digsby), twitter and more and more and more... I'm hooked. Enjoy! ~L ......

Posted On Thursday, April 10, 2008 1:29 AM

MSIT or MBA?
This is a question I have been asking myself on and off for about a year now. I have researched all the schools, and all the programs, and I have to make a decision. I want to continue my education, but I should I go for a Master's in a technical realm or a business one? I have pretty good technical skills, and I am learning so much just from reading books and blogs and going to .NUG meetings, so I think maybe my education should be toward an MBA. I think it might help to solidify my ability to talk ......

Posted On Sunday, April 6, 2008 2:36 PM

I Wanna Be Like Mike
Actually, I wanna be like ScottGu and ScottHa and Phil Haack, and.... well you get the idea. I have been thinking about things I want to accomplish in my career for awhile now. I have set out some goals for myself. Like Becky Isserman, I want to become an MVP. This is a bit longer road for me because, I have not been super active in the developer's community here. It's not that I don't want to, I just haven't figured out how. I haven't figured out how ScottGu and ScottHa and Phil manage to do it. ......

Posted On Sunday, April 6, 2008 2:23 PM

Test-Driven Development Sucks
For someone like me, who has never traditionally done test-driven development, it sucks. It's hard to get used to writing the test first, then when you write your test, it's easy to start writing the code to make the test pass and forget that you're doing TDD and just continue coding. It's also hard to know WHAT needs to be testing and HOW to test everything you need to, at the appropriate isolation level. To add to my frustration, I starting my first fully test-driven project (on my own) and learning ......

Posted On Friday, April 4, 2008 2:59 PM

A Place to Host Your Project(s)
Some of you may already know about it, but I found this great site that hosts projects.Now I know what you might be saying, "Yeah dude, there are plenty of places that host projects... ever heard of Codeplex?" But that's not what I am talking about. Assembla lets you make your project public or private, hosts your svn repo, hosts a Trac system for your project, sets up a wiki for it and allows you to "hire" people to work on your project with you. The place? Assembla. The free package offers 500Mb ......

Posted On Friday, April 4, 2008 2:22 PM

(IN)Active Directory
I have a small page I need to write for my company to list all empoyees. This in effect becomes the in-house phone roster. Makes sense, right? I though it'd be no problem. I know I can manipulate AD from an ASP.NET page, so I'll put together this app no problems. OK, my hubris got the best of me. I queried the AD Directory service no problem: DirectoryEntry server = new DirectoryEntry(); DirectorySearcher searcher = new DirectorySearcher(); searcher.SearchRoot = server; searcher.SearchScope = SearchScope.Subtree; ......

Posted On Thursday, April 3, 2008 1:13 PM

Dependency Injection Containers
I've spent the last week reading about Dependency Injection, and I think I may finally understand. First of all it is a type of Inverion of Control. Now .NET programmers see inversion of control all the time. Usually in the same place we encounter delegates: event handlers. The event handler actually controls the handling of the event and not the main program. But Dependency Injection is a step beyond. DI inverts control of the program so that a dependent object is injected into its dependant object. ......

Posted On Thursday, April 3, 2008 1:13 PM

What's with all the NEW stuff?!!??
As I get settled in at this new job, I begin to take stock of what the company wants to accomplish: a solid, extensible product with the longest possible useful life. Given the fact that this product will probably take 2-3 years (total) to develop, that means learning the newest stuff and looking at some technologies that have yet to be released. The new technologies coming out of Microsoft in the next six to twelve months is staggering. Beyond products (like Windows 2008, SQL Server 2008 and Visual ......

Posted On Thursday, April 3, 2008 1:11 PM

TDD, MVC, IOC/DI & ASP.NET (MAN! that's a lot of initials!)
I am creating a blog engine. Not because the world needs another, but because there are some techniques I want to learn about and creating this very straight-forward project will allow me to do that. First step was to create the project and start experimenting with Test-Driven Development inside MVC for ASP.NET. I started by searching for TDD MVC and ASP.NET which led me to this article by phil haack. While trying to put together some of my first tests, I had to use a mock object. The easiest way ......

Posted On Thursday, April 3, 2008 1:11 PM

New Job!
I started a new job this week. I will be helping to move existing applications to .NET. I think it'll be a blast. The guys (and girls) I work with all seem great so far. Right now just getting my toes into their current applications and architecture. Currently reading two books: re-reading Test-Driven Development in .NET and just starting Patterns of Enterprise Application Architecture. The test-driven book was awesome, but I need to go back and read it again and really dig into it ......

Posted On Thursday, April 3, 2008 1:10 PM

XML, XPath and XML Namespaces oh my!
I was just about to /mywrists today when I found this post. I wanted to post to this blog to say thanks to SteveX for posting it. I was trying to read a web.sitemap file in as an XML doc and work with it. I was screaming at my screen that I KNEW there were nodes matching my XPath (//siteMapNode) but it always returned 0 nodes. Thanks again to SteveX for savin' my life. :0) ~L ......

Posted On Thursday, April 3, 2008 1:10 PM

Kansas City, Where'd You Go?
Since it's early beginnings in 1821, Kansas City has been a hub for the nation. Being located at just about the absolute center of the country is definitely a major factor, but we also were the demarcation line between the old and the new. We were the supply center for the frontier, we were the crux of the railroad's journeys to every corner of the nation and we were the finish line for those escaping slavery. So why is it, that when something new in software comes out, we seem to get skipped? Don't ......

Posted On Thursday, April 3, 2008 1:08 PM

Copyright © Lee Brandt | Powered by: GeeksWithBlogs.net