News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Round Table #1 Should Exceptions Ever be Used for Flow Control?
March 28, 2013 @ 10:20:39

On the NetTuts.com site today they've posted the transcript of a panel discussion they had with several developers about exceptions and whether or not they should be used for flow control.

I'm pleased to release our first ever round table, where we place a group of developers in a locked room (not really), and ask them to debate one another on a single topic. In this first entry, we discuss exceptions and flow control.

The opinions vary among the group as to what exceptions should be used for (even outside of the flow control topic). Opinions shared are things like:

  • Exceptions are situations in your code that you should never reach
  • Errors cause Failures and are propagated, via Exceptions.
  • So, essentially, exceptions are an "abstraction" purely to model the abnormality.
  • Personally, I envision exceptions more as "objections."
  • Exceptions like this should be caught at some point and transformed into a friendly message to the user.

There's lots more than this in the full discussion so head over and read it all - there's definitely some good points made.

0 comments voice your opinion now!
roundtable exceptions flow control panel discussion


blog comments powered by Disqus

Similar Posts

CIO Magazine: PHP, JavaScript, Ruby, Perl, Python & Tcl Today: The State of the Scripting Universe

Jamie Hemmett's Blog: Tips for PHP User Groups

Ibuildings techPortal: DPCRadio: Database Version Control without Pain

Community News: PHP version control to move to git

Voices of the ElePHPant: It's the Booze Talking #5 - PHP Community...again (Part #2)


Community Events

Don't see your event here?
Let us know!


interview symfony2 laravel series introduction php7 conference api framework community podcast opinion extension performance voicesoftheelephpant example version library xdebug release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework