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

Should be easy: in your git

Should be easy: in your git pre-commit hook, just do something to the effect of `grep -lR NOCOMMIT *`, and if you get anything back, make the commit fail. In any git repository, you can look in .git/hooks/pre-commit.sample to see how it would work.

Yeah, I didn't say it was

Jacob Singh's picture

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".

Good One...

ankur's picture

Thanks a lot for enjoying this beauty article with me. I am appreciating it very much! Looking forward to another great article. Good luck to the author! all the best! Kredit ohne Schufa

It might be able to at least

AnnaD's picture

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.

good

SAMEER's picture

 

I really like it! I'll always appreciate your brief sharing in this awesome stuffs sincerely, this discussion has put light on this topic. internet kasino
 

Its not the geostationary

jgurma's picture

Its not the geostationary that commonwealth moldiness be completely fused with communicator's views neighboring musing. So this is what happened with me, anyways its a talking toil, I revalue it. Thanks

free ecards

 

Nice one.

rajendra.'s picture

cheat mw3 I guess there are a lot of things their that can be bought.

want

Jennifar's picture

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

Nice Blog

Royal's picture

I like this concept. I visited your blog for the first time and just been your fan. Keep posting as I am gonna come to read it everyday. led video display

Good

Pankaj12's picture

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

Nicely presented collection

Nicely presented collection in this commerce, I designate to know this kindhearted of whatsis. The propertied of noesis is passable and the ending is eligible. Thanks for the song.

 

Inventure India is a

Invent's picture

Inventure India is a management consulting firm has an unparalleled depth of knowledge and resources combined with functional and industry expertise for geographical reach. We help leaders make distinctive, lasting and substantial enhancement to the performance of their organizations.
Top franchise in india
Franchising
Investment outside india

Useful sharing

lamee japtor's picture

www.jacobsingh.name/comment/I was very encouraged to find this site. I wanted to thank you for this special read. I definitely savored every little bit of it and I have you bookmarked to check out new stuff you post....    cell phone spy software

Nice tutorial

nelson japro's picture

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   @  |

jobs

rohit's picture

A perfect info source. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. IT Recruitment

It is nice to find a site

Maneesh Yadav's picture

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

Nice Blog

janiffer's picture

I like this concept. I visited your blog for the first time and just been your fan. Keep posting as I am gonna come to read it everyday. wine store

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.

I'm extremely loved for this

safasfafdsf's picture

I'm extremely loved for this weblog. Its an informative subject. It assist me extremely a lot to resolve some issues. Its chance are so wonderful and operating type so speedy. I believe it might be assist all of you.  Wheat Milling Machine

Good point

happypudge's picture

Good points here, thanks for the tips - maybe will save my developer a lot of headache in future staples projects.