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.
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
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".
DONT KNOW
lemme bookmark your site,its so cool,thanks.Capitals vs Rangers Live
Nice Info
Sonderposten This kind of blog always useful for blog readers, it helps people during research. your post is one of the same for blog readers. Restposten
Good One...
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
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
Its not the geostationary
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
Thanks for taking the time to
Thanks for taking the time to discuss this, I really feel strongly about it and appreciate finding out additional on this topic. If possible, as you acquire expertise, would you thoughts updating your blog with far more info? It is extremely useful for me. @ Spotting Between Periods
@ Best Pressure Washer
@ Kohler Kitchen Faucets
@ Kohler Kitchen Faucets
Nice one.
cheat mw3 I guess there are a lot of things their that can be bought.
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 Work
Good Work ! i like is site ! Thank you!
I loved the post a lot. This
I loved the post a lot. This is really great blog, I always find worth reading stuff here. Thanks to writer.
LED Color Spot Bulb
Nice Blog
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
Approach
That's a diferent approach. Why not?
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
Really awesome
i appriceate your thought .
Mayweather vs Cotto
Mayweather vs Cotto live
Mayweather vs Cotto live stream
Mayweather vs Cotto fight
Took a lot of time to read
Took a lot of time to read but I really found this very interesting and informative, thank you buddy for sharing. Book of ra online spielen
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.
Acheter monster beats by dre
Acheter monster beats by dre headphones.Our par casque dr dre à la vente sont chauds
beats by dre
Inventure India is a
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
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
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
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
Programmers' stuff
I love reading about programmers's stuff but reading your blog makes me think: Nah, I don't want to be one myself ;-)
Programmers' stuff
I love reading about programmers's stuff but reading your blog makes me think: Nah, I don't want to be one myself ;-)
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
perfect stories i get many
perfect stories i get many inspiration from you ... regards
ClickBet88.com Agen Bola Terpercaya Untuk Piala Euro 2012
hmm brillian idea guys.. you
hmm brillian idea guys.. you give also new inspiration for me..
Creating History Together With ArenaBetting Piala Eropa 2012
Nice Blog
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
microsoft office 2010
microsoft office 2010
cheap womens sandals
Thanks for your suggestion. I really appreciate that you took all this time to try and help us. Keep up the good work. Keep on taking action.
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
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
I love the layout of this
I love the layout of this blog! It is fantastic! Also you look a little bit like James Defrancio.how to get a six pack;
Good point
Good points here, thanks for the tips - maybe will save my developer a lot of headache in future staples projects.
This blog post was absolutely
This blog post was absolutely fantastic. When I used to work in electroplating they sometimes new orlando homes encouraged us to write, but I could never come up with something as well written as that.