Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Everybody Fails Sometimes.

DZone's Guide to

Everybody Fails Sometimes.

· Agile Zone
Free Resource

See how three solutions work together to help your teams have the tools they need to deliver quality software quickly. Brought to you in partnership with CA Technologies

Everybody makes mistakes, otherwise we would all write bug free code. For most of us a mistake can be fixed and doesn’t have too serious consequences.

When I first released the Pico Plugin Framework, to make sure that the framework doesn’t clash with itself I enclosed the class definition in an if statement with class_exists. Now that was fine, but I hadn’t counted on the fact that if there was more than one version of the framework installed then the possibly the wrong version of the class would be loaded and used which would lead to odd behavior. Such as putting in a debug statement and then having a scratchy head moment when the debugging statement is not called.

Rather than beating myself up too much about it I got back down to developer land, did some Googling and thinking and implemented a factory pattern. The it was all good and the world could go back to sleep knowing I had fixed the problem.

So what did I take away from all this? Just a reminder of one of my personal values. Everybody fails sometimes. What matters is how you recover, and deal with the failure.

Have you failed at something? But through perseverance overcome the problem and gone on to success? If so I would love to hear about it so why not leave a comment.

Discover how TDM Is Essential To Achieving Quality At Speed For Agile, DevOps, And Continuous Delivery. Brought to you in partnership with CA Technologies

Topics:

Published at DZone with permission of Chris Odell, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}