Marcin Hoppe

Sponsors

The Lounge

Wicked Cool Jobs

Syndication

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Visual Studio as an editor. Only an editor

Today I learned how Jean-Paul Boodhoo structures directories in his projects and compiles his code with NAnt. I use a similar approach so the posts reinforced my confidence that this is the right way to go (one might even say that such a layout is very ALT.NET-ish). What I liked the most, however, were not the folder structure ideas themselves, but an idea to use Visual Studio merely as a code editor (with ReSharper it might even be a really good editor).

The benefits, for me, include:

  • reduced compile time for large projects,
  • flexibility of code structure and layout,
  • ease of including and excluding folders with source code to compile for different targets (you can easily exclude test code, for instance).

What Jean-Paul suggests and that I haven't tried out yet is to use a single C# project to keep all the source code files (including tests, if I understood him well) and making a developer responsible for clean separation of components. It's worth noting that it doesn't force an entire project to be compiled to a single assembly. NAnt is really showing its flexibility in tasks like these.

I had a chance to use such an approach on two projects that I have been on and my experience is that delivery of those projects was a superior experience. Automated testing and deployment are much easier to set up when one abandons Visual Studio.

By the way, have you read an article "Does Visual Studio Rot the Mind?" by Charles Petzold? Absolutely fantastic piece of well-thought Visual Studio criticism.

P.S. Did anybody except for me noticed that Scott Hanselman is now working for Microsoft?


Posted 10-02-2007 2:45 PM by Marcin Hoppe
Filed under:

[Advertisement]

Comments

Joe wrote re: Visual Studio as an editor. Only an editor
on 10-02-2007 11:13 AM

Im not dismissing it, but Im a little skeptical of this approach.  What does a single project get you?  And how does it make automated testing and deployment easier?  And why the dislike (from everywhere) of Visual Studio?  Do we really want to go back to 1993 where nothing is integrated (I'm looking at you Clipper/Blinker).

Having said that, I have a tremendous amount of respect for JP, the CodeBetter guys and your co-bloggers on devlicio.us who all seem to advocate similar ideas., So what am I missing?

Scott wrote re: Visual Studio as an editor. Only an editor
on 10-02-2007 12:20 PM

For a while, I got so sick of Visual Studio 2003 that I switched completely to NAnt and EditPlus. It worked great. Eventually I got to the point where I needed intellisense in order to explore all the new namespaces and classes. But it is possible to work on .NET code without using anything but the compiler.

re: Hanselman - I went to his geek dinner in Redmond.

Jason Meridth wrote re: Visual Studio as an editor. Only an editor
on 10-02-2007 1:54 PM

They also got Phil Haack for the ASP.NET MVC Team.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)