# Wednesday, October 20, 2004
« DBA Must Haves IMHO First A Little About... | Main | Automated Testing and Bugs »

Note: For visitors of your site, this entry is only displayed for users with the preselected language English/English (en)

As part of an ongoing discussion with a developer (let's call him JDOAGD) I am paired with, I had the opportunity to discuss the importance of Error Handling within an application. The two sides:

  • Minimalist -- only at the UI layer, and only then when the code is likely to fail
  • Solid -- Assume errors can happen anywhere, and handle them gracefully at ALL layers of a multiple application.


There's a school of thought that when an error condition occurs, throw an error or bubble it up to the highest layer and handle it. OK, that's a strategy, but what happens when the top layer doesn't catch the error? Crash. Fortunately, I was able to demonstrate this fact to the developer today who adamantly insisted on handling it at the UI only. He forgot to handle it, and BAM!, a crash ensued.

I wish I felt this was isolated, but I have had the privledge of working with several hundred developers over the past 10 years, and I would guess error handling is one of the most overlooked aspects of an architecture. Of those hundreds of developers, I would venture error trapping and handling was considered an afterthought by 90% of them. Some examples:

  • Degrades performance, so why do it? (how about a dead app really performs slow)
  • The applicaion is for internal customers, so they are more forgiving than if we were trying to deploy for general release
  • What's error handling and logging?


I recall a project which I was brought into a few years ago. The 4 developers had spent a month learning the business rules involved, and were chomping at the bit to get started. When I came in, they mentioned they were ready to code. So, I asked a few obvious (or so I thought) questions so I too would know how to code with them.

  • What's the error handling strategy?
  • What's the data access strategy?
  • What's the physical architecture?
  • What type of security model are we implementing?
  • ...and many more.


Scary thing was, they didn't have an answer for any of them. The other scary thing was they were billed as “Expert Coders” and were billing at a significantly higher rate than myself. Had I less ethics, I would have asked for more $$ instead of pushing to resolve these issues. That whole project was “interesting” to say the least and someday I might write more about those experiences.

Back to today. So, since I am on their payroll, I listened to JDOAGD's reasons for not having error handling except on the UI layer. I watched him also forget to place any at the UI level he was so adament about it. I had the hook, and he finally saw the light. What was my point?

In a multiple developer environment, you can never assume the other develper using your code will trap the error (this is an encapsulation issue, which this same developer once vehemently added encapsulation was a bad thing. In a non-web environment, crashes kill the application. The browser is very forgiving!

Finally, internal or not, as developers we are serving customers. Without them, we'd have no jobs. It's important to ALWAYS give them the best possible user experience. Anything else is simply lazy and unprofessional.

Logging is a whole other issue, which I will save for a future session. For now, I'd love to hear other opinions and experiences in this area, so please, drop me a comment!

-- Daryl


 

Thursday, August 04, 2005 5:58:18 PM (GMT Daylight Time, UTC+01:00)
You can also take a look at the sites about casino on net http://casino-on-net.screwy-casino.com/
online casinos http://www.screwy-casino.com/
online casino gambling http://online-casino-gambling.screwy-casino.com/
slot machines http://slot-machines.screwy-casino.com/
roulette http://roulette.screwy-casino.com/
internet casino http://internet-casino.screwy-casino.com/
casino gambling http://casino-gambling.screwy-casino.com/
casino online http://casino-online.screwy-casino.com/
casino games http://casino-games.screwy-casino.com/
online casino http://online-casino.screwy-casino.com/
... Thanks!!!
Friday, August 05, 2005 3:43:25 AM (GMT Daylight Time, UTC+01:00)
Please visit the pages about stud poker http://www.poker-new.com/stud-poker.html
texas holdem strategy http://www.poker-new.com/texas-holdem-strategy.html
online video poker http://www.poker-new.com/online-video-poker.html
rules for texas hold em card game http://www.poker-new.com/rules-for-texas-hold-em-card-game.html
texas holdem tips http://www.poker-new.com/texas-holdem-tips.html
party poker bonus code http://www.poker-new.com/party-poker-bonus-code.html
free strip poker http://www.poker-new.com/free-strip-poker.html
hold em poker http://www.poker-new.com/hold-em-poker.html
video poker strategy http://www.poker-new.com/video-poker-strategy.html
video poker http://www.poker-new.com/video-poker.html
rules for poker games http://www.poker-new.com/rules-for-poker-games.html
go play poker http://www.poker-new.com/go-play-poker.html
texas holdem online http://www.poker-new.com/texas-holdem-online.html
celebrity poker http://www.poker-new.com/celebrity-poker.html
free poker game http://www.poker-new.com/free-poker-game.html
poker sites http://www.poker-new.com/poker-sites.html
poker strategies http://www.poker-new.com/poker-strategies.html
world series of poker http://www.poker-new.com/world-series-of-poker.html
poker hand rankings http://www.poker-new.com/poker-hand-rankings.html
poker hands http://www.poker-new.com/poker-hands.html
strategies for texas hold em http://www.poker-new.com/strategies-for-texas-hold-em.html
online poker game http://www.poker-new.com/online-poker-game.html
texas holdem http://www.poker-new.com/texas-holdem.html
video poker software http://www.poker-new.com/video-poker-software.html
rules for texas hold em http://www.poker-new.com/rules-for-texas-hold-em.html
free texas hold em http://www.poker-new.com/free-texas-hold-em.html
yahoo poker http://www.poker-new.com/yahoo-poker.html
gambling poker http://www.poker-new.com/gambling-poker.html
caribbean stud poker http://www.poker-new.com/caribbean-stud-poker.html
free video strip poker http://www.poker-new.com/free-video-strip-poker.html
- Tons of interesdting stuff!!!
Friday, August 05, 2005 12:17:18 PM (GMT Daylight Time, UTC+01:00)
Take your time to check out some helpful info about online casino poker http://www.poker-new.com/online-casino-poker.html
official poker rules http://www.poker-new.com/official-poker-rules.html
online video poker http://www.poker-new.com/online-video-poker.html
texas holdem tables http://www.poker-new.com/texas-holdem-tables.html
online poker tools http://www.poker-new.com/online-poker-tools.html
free texas hold em online play http://www.poker-new.com/free-texas-hold-em-online-play.html
free video poker game http://www.poker-new.com/free-video-poker-game.html
poker strip http://www.poker-new.com/poker-strip.html
texas hold em poker game http://www.poker-new.com/texas-hold-em-poker-game.html
free texas hold em poker http://www.poker-new.com/free-texas-hold-em-poker.html
free strip poker http://www.poker-new.com/free-strip-poker.html
texas hold em strategy http://www.poker-new.com/texas-hold-em-strategy.html
online poker http://www.poker-new.com/online-poker.html
video poker strategy http://www.poker-new.com/video-poker-strategy.html
video poker http://www.poker-new.com/video-poker.html
learn to play poker http://www.poker-new.com/learn-to-play-poker.html
rules for poker games http://www.poker-new.com/rules-for-poker-games.html
free poker tournaments http://www.poker-new.com/free-poker-tournaments.html
poker rooms http://www.poker-new.com/poker-rooms.html
texas holdem online http://www.poker-new.com/texas-holdem-online.html
how to play poker http://www.poker-new.com/how-to-play-poker.html
texas holdem poker game http://www.poker-new.com/texas-holdem-poker-game.html
free poker chip set http://www.poker-new.com/free-poker-chip-set.html
texas holdem software http://www.poker-new.com/texas-holdem-software.html
strip poker games http://www.poker-new.com/strip-poker-games.html
video poker games http://www.poker-new.com/video-poker-games.html
poker strategies http://www.poker-new.com/poker-strategies.html
poker tournament http://www.poker-new.com/poker-tournament.html
free poker games http://www.poker-new.com/free-poker-games.html
poker star http://www.poker-new.com/poker-star.html
...
Comments are closed.