More Muc Than You Can Handle

Handy Web Path Concatenation Code

Lot of web developement code is spent concatenating path snippets and I always hated having to deal with slashes. I wanted a function that was consistent with its return type, and very loose in its parameter requirements. I ended up with the following:

Test First:

The BDD style of testing is inspired (and pretty much copied) from JP Boodhoo’s Nothing but .Net class.

Here’s the code:

That was my first go at it. I have a feeling I might generalize the class to be a delimited string builder. Which would be nice because then the method won’t be static. Anyways, just thought I would share something that I think is concise but will be used a lot.