Project idea: Commit safety for developers

The problem

Programmers are like bad criminals in cop movies.  We just like to leave clues everywhere.  Most of the time, we work much like writers, from the outside in.  Develop an outline, stub out the parts which we might get to, and then fill in the core pieces, followed by the extremities.  If you're lucky you get a quick review and edit and then off to the press.  

Often though, we leave in little todo messages like "@todo: Actually write this function" or "@todo: make sure you check for a security hole here".  Or unprofessional error messages like "oops, something didn't work" or even worse "idiotic user doesn't know how to read instructions and forgot to use lower case".  And sometimes, I've been guilty of leaving debug code in which is there for me to look at what is happening in the code, but should never be accessed by others.

In my 13 years of reading other peoples' code, I don't think I'm alone here.

Ever seen "An unexpected error has occurred" or "Oops, shouldn't have gotten here" in an application... yeah, the dev needed this.

The proposal

An extension to your version control system of choice and/or your continious integration tool which checked code for various patterns and stopped commits from going in, or releases from going out based on those patterns.  It would require a little learning, but I could train myself to write "NOCOMMIT: This is a fake error message" where required.  And then adding in the debugging commands for different frameworks and languages wouldn't be too hard.

Just a nice small utility to prevent those accidental screw ups which can be expensive mistakes later on.

If you'd use something like this +1 in the comments or twitter.

I will most likely not be coding this up, but if someone does, please post a link here as a comment.

 

Tags: 

Comments

Yeah, I didn't say it was

Yeah, I didn't say it was hard :)

But it would be nice to have a project which had presets for different frameworks, allowed you to override it, showed you nicely formatted lists, etc...

Something everyone would just turn on because "why not".

It might be able to at least

It might be able to at least prevent bringing in the breaking commits using a pre-update hook on whatever shared repository you all push to. It can look for commits that modify the config file made by certain developers, or it can look for commits touching that file that don't mention for special keyword in the live chat download message.

want

It seems so common that clients don't want to pay for something that may (even in another form) end up on d.o, and developers don't have time to work on things that are not income-generating. comforter sets

Good

This post is exactly what I am interested. we need some more good information. Please add more good information that would help others in such good way. compare prices

Nice tutorial

I have been searching for quite some time for information on this topic and no doubt your website saved my time and I got my desired information. Your post has been very helpful. Thanks. | @  cell phone listening   @  |

It is nice to find a site

It is nice to find a site about my interest. My first visit to your site is been a big help. Thank you for the efforts you been putting on making your site such an interesting and informative place to browse through. I'll be visiting your site again to gather some more valuable information. You truly did a good job... Pagerank Backlinks

Vom Fremden zum Bekannten es

Vom Fremden zum Bekannten es nur zwei Monaten, aber habe immer gefühlt, dass die Qualit?t und die Qualit?t dieser Marke von Kleidung gut sind, und bereits gekauft haben, http://www.peutereyonlines.com haben ein paar Stücke, die auch Mitglied der Bande, würde immer darauf achten, die Bewegungen von zufriedenen-Wen auch m?chte die Gelegenheit nutzen, um Zhang Coupons mit dem Einsatz zu verdienen, aber leider in diesem Monat zu sehr damit besch?ftigt, peuterey , nicht genug auf der Hoffnung, dass im n?chsten Monat verdienen sehr zufrieden-Wen in einer gro?en Verbesserung der Service-Feierlich Wort für zufriedene Hause, wird gesch?tzt, ist wirklich hei? Vertrieb und Kunde ist ein bisschen langsam, aber die Haltung ist immer noch sehr h?flich.