CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jeremy D. Miller -- The Shade Tree Developer

Under the hood and working with .Net, TDD, Software Design, and Agile Stuff

Karma

If you're as big a fan of My Name is Earl as I am, you'll understand me when I say that Karma is punishing me today for the ASP code that I wrote circa 1998. I've been messing with some legacy ASP code that wasn't working in one environment, and had to resort to this

On Error Resume Next
' Do stuff
If err.Number <> 0 Then
  Response.Write "Number = " & err.Number & "<p>"
  Response.Write "Description = " & err.Description & "<p>"
  Response.Write "Source = " & err.Source
  err.Clear
End 

I've been bad mouthing ASP.Net lately at work and in user groups (and RoR is just so shiny and new), but give me ASP.Net over spaghetti code ASP and VBScript any day of the week.



Comments

Harris said:

Man that sent chills up my spine.  It's almost as bad as trying to debug JavaScript - but that's just my lack of experience with it...
# July 26, 2006 7:26 PM

Jeremy D. Miller said:

One word Harris:  JSUnit

Actually, Visual Studio.Net debugs Javascript fairly well.  Or grab the Firefox dev tools that let you manipulate Javascript on  a running page.
# July 26, 2006 9:15 PM

cmyers said:

Jeremy,

I've been reading about ATLAS a lot lately, and was underwhelmed. I started digging in tonight and... wow. It has the potentially to completely change how ASP.NET is developed (i.e. toss out the whole server-control, post-back, page-control-lifecycle, viewstate crap).

get this:
1.) Real, honest-to-god objects on the client side, hooked declaratively (or programmatically if you swing that route) together, easily unhook-able and test-able.

2.) Complete separation of concerns w/r/t view and "presenter" (which, for the most part, goes away, or exists in a limited form). All model access is done through web services or these quasi-services thing they have in ATLAS

3.) Much easier to integration test since there's not a lot of random bits of JS lying around, it's all bundled into 'components' which you can isolate, mock-around (JS is the premiere mocking language, after all), and test.

The MS hype, like normal, focuses on passing DataSets around using SqlDataSource (UGH!) and fancy drag-and-drop panels and auto-complete textboxes, but those are just marketing gems, the core technology is actually very exciting.

You can have your pure, unadulterated HTML tags (yes, true input type=text tags!) without (much) asp:Foo junk going on.

We're doing a big TDD, IoC, MVP project right now and it's going really well, but the rubber-meets-the-road between ASP.NET and HTML is still somewhat challenging to code, let alone test (--- oops, I mean Test, let alone code :) ).  I have high hopes that ATLAS will help solve a lot of the nasty problems facing TDD ASP.NET coders today.  ATLAS is not just AJAX hype, it's so much more ON TOP of AJAX.

Call me kool-aid drinker, but I think we may have a winner here. Don't give up on ASP.NET completely yet.
# July 26, 2006 10:09 PM

David said:

Oh, there's plenty of spaghetti ASP.NET out there too. And, although RoR leads you in the right direction, there are a lot of people who still do layered apps wrong wrong wrong.
# July 27, 2006 5:15 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Jeremy D. Miller

Jeremy began his IT career writing "Shadow IT" applications to automate his engineering documentation, then wandered into software development because it looked like more fun. Jeremy previously worked as a systems architect building mission critical supply chain software for a Fortune 100 company and learned agile development practices as a .Net consultant at ThoughtWorks, one of the pioneers of agile development. Jeremy is the author of the open source StructureMap (http://structuremap.sourceforge.net) tool for Dependency Injection with .Net and the forthcoming StoryTeller (http://storyteller.tigris.org) tool for supercharged FIT testing in .Net. Jeremy's thoughts on just about everything software related can be found on his weblog "The Shade Tree Developer" at http://codebetter.com/blogs/jeremy.miller, part of the popular CodeBetter site. Jeremy is a Microsoft MVP for C#. Check out Devlicio.us!

This Blog

Syndication

News

All opinions expressed here constitute my (Jeremy D. Miller's) personal opinion, and do not necessarily represent the opinion of any other organization or person, including (but not limited to) my fellow employees, my employer, its clients or their agents.

About Me

"Best Of" Compendium

StructureMap (Dependency Injection for .Net)

StoryTeller (Supercharged Fit)

Build your own Cab

TestDriven

MVP