News Feed
Sections




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

Brandon Savage:
When To Write Bad Code
January 29, 2013 @ 11:14:51

Brandon Savage has posted some of his thoughts on when it's okay to write bad code in your development lifecycle:

I've been there myself. I recently needed to prototype something. As I sat down to work on it, I had absolutely no idea how I was going to write the component I was working on. And so, I started working - without a plan, without writing tests, without designing an architecture, and without really knowing how the component was going to end up. You know what? The component came out working, but when I was done it was ugly. Totally ugly. The code was bad. But I had a solution, and a solution that worked.

He points out that sometimes, doing things "the right way" can stifle creativity and experimentation - two things that a developer needs to solve the problems they face day to day. He notes that refactoring is a part of their job and moving from a rough prototype to a finished product often improves this skill and can find issues not discovered before.

This does NOT mean that developers can push bad code into a repository. Nothing lives longer than temporary code; see to it that your finished code is always good.
0 comments voice your opinion now!
bad code opinion prototype experiment creative refactor


blog comments powered by Disqus

Similar Posts

Paul Jones' Blog: Universal Constructor Sighting "In The Wild"

PHPClasses.org: Lately in PHP, Episode 23 - Will it ever Matter if PHP Sucks?

NetTuts.com: Refactoring Legacy Code: Part 7 - Identifying the Presentation Layer

Chris Roane's Blog: Should PHP web programmers go to college?

Reddit.com: PHP.net gets a new design. Opinions divided


Community Events





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


language voicesoftheelephpant opinion api library package series tips deployment framework list interview bugfix podcast introduction install laravel symfony release community

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