Friday, April 01, 2005
Code organization

I had plans to posting about code organization this weekend, and saw Scott Hanselman posted on the same topic. Moving to svn gave us a chance to really review how we were doing things, and we changed alot. In the past, projects I have worked on have always been very tightly coupled to the file system. Not that its a bad thing, well it is, you just don't notice it until you see the other side of the fence.

After trying to read pretty much everything thoughtworks on the subject, and really giving a ton of weight to the How to setup a development tree set of posts from Mike Roberts, we came up with a very generic structure that is similar to what Scott posted. It looks something like this :

(VC) = under version control

  • Solution Folder
    • .svn ;)
    • _versioning (VC)
    • build
    • lib (VC)
    • src
      • Project (VC)
        • _versioning (external)
      • Test Project (VC)
    • tools (VC)
    • buildfile.build (VC)

The tools folder carries complete versions of tools needed to build or run a given solution (eg : nant), and the lib folder houses all referenced dlls, which projects reference by relative path. In fact, everything about the setup is relative now, so a developer can go from creating a branch, to having the branch checked out to a new folder and built in under 10 minutes.

So how does your source tree look?



4/1/2005 3:04:18 PM (Eastern Daylight Time, UTC-04:00)
"When you go a resturant on the weekends and it's busy so they start a waiting list. They say Dufrane, party of two, table ready for Dufrane, party of two , and if no one answers they'll say the name again, Dufrane, party of two. Bu then if no one answers, they'll move on to the next name. Bush party of three. Yeah, but what happened to the Dufranes, No one seems to care, who can eat at a time like this? People are missing. You people are selfish. The Dufranes are in someone's trunk right now ,with duct tape over their mouths and they're hungry.That's a double whammy! We need help! Bush search party of three. You can eat once you find the Dufranes."
MH


Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):