The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Refactoring My PDCEntry Service

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brendan Tompkins

Posts: 158
Nickname: brendant
Registered: Apr, 2005

Brendan Tompkins is .NET Developer and founder of CodeBetter.Com
Refactoring My PDCEntry Service Posted: Jul 5, 2005 4:01 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Brendan Tompkins.
Original Post: Refactoring My PDCEntry Service
Feed Title: Brendan Tompkins
Feed URL: /error.htm?aspxerrorpath=/blogs/brendan.tompkins/Rss.aspx
Feed Description: Blog First. Ask Questions Later.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Brendan Tompkins
Latest Posts From Brendan Tompkins

Advertisement

Earlier today I was inspired by Jeff Atwood’s blog post on Software Rot:

Coding Horror: The Broken Window Theory

Don't leave "broken windows" (bad designs, wrong decisions, or poor code) unrepaired. Fix each one as soon as it is discovered. If there is insufficient time to fix it properly, then board it up. Perhaps you can comment out the offending code, or display a "Not Implemented" message, or substitute dummy data instead. Take some action to prevent further damage and to show that you're on top of the situation.

The article on “Urban Decay” he mentions is a must read, a fascinating topic, and very closely linked with something that should be called “Software Decay” but is also known as Software Rot.  I’m going to blog about something I’ve been thinking about “Root-Bound Software” and the associated process of “Software Weeding” soon, but Jeff’s post got me thinking about some potential broken windows in my my PDC Contest Entry Service.

So as not to let this service (since I expect it to be wildly popular) rot, I’ve done a bit of refactoring. Here’s what I’ve done:

  • Refactored the code that does the work into a reusable service, now the service itself is very lean and mean.
  • Added a REST endpoint, via an ASHX handler. The service can now be access via GET parameters:

http://www.wsmq.com/PDCService/PDCContestEntryRestEndpoint.ashx

Parameters: firstName, lastName, interests, blogUrl

  • Fixed spelling errors, Fixed a queuing bug, and improved formatting.

So, here’s my new entry.  BTW, two people managed to bang the service, before the REST interface was added.. Bil Simser and Leon Langleyben.. Way to go guys! 

-Brendan

I’m Blog’n my way to the PDC!

If you haven’t heard, Channel9 has started a contest where you can win a ticket to the PDC, including an airline ticket and hotel!  This is one amazing contest, and all you have to do to enter is have a blog, and post why you should win the prize.  So here’s my official entry:

blogging my way to pdc

Here's some information to help you get to know me better:

Why me?

Why do I want to go to the PDC? Because I love to blog! And I'm prolific! Here's some of my more popular blog posts links according to Google :

  • Brendan Tompkins
  • Brendan Tompkins
  • Brendan Tompkins : Dreading writing your "Blog'n to PDC" entry ...
  • Brendan Tompkins : A Simple InfoPath Web Viewer Control
  • Brendan Tompkins
  • What are my interests?

     Well, here’s a list of books that I'll probably be reading on the plane to LAX :

    Map of Bones Financial Management : Theory and Practice with Thomson ONE (Harcourt College Publishers Series in Finance) Good to Great: Why Some Companies Make the Leap... and Others Don't

    Did I type up all this ugly HTML for this Blog post myself?

    Heck no!  I’m lazy!  But that’s exactly why I need to go to PDC!  The PDC is all about the future, and in the future, we’ll all be using cool technology to do things like typing tedious, boring contest entries.  I’m getting a head start on the salad days, so I figured out how to use ASMX web service that Brendan wrote! To prove it, you can see that I'm on this list of other, lazy coders who would rather sit back and use a distributed Web Service to do their work!  

    Read: Refactoring My PDCEntry Service

    Topic: Portland Code Camp, July 23-24 Previous Topic   Next Topic Topic: Live Meeting 2005 Web Parts

    Sponsored Links



    Google
      Web Artima.com   

    Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use