Coding standards??? According to who's standards? My standards and your standards could be quite different, so I doubt there is any tool that can or could do a very good job of it. In a group of coders larger than 1 person that's what peer review does -- each coder review and analyzes the code written by the other coders to determine if the code meets company coding standards, whatever that is.
Ancient Dragon
Retired & Loving It
30,040 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
Somewhat at odds with Ancient Dragon: I think that coding standards are useful prior to peer review, because code that already meets the local/shop spec cuts down on noise during the review process.
Do I need a tool to enforce standards? Not so much. Even in a huge shop with lots of new coders, because a truly useful coding standard should fit on a single sheet of paper in easily readable print (with a 10 page full-service addendum including examples and reasoning) so even total newbs can get it right, at least after their first horrible review experience.
what do you find missing from your day to day coding
Clarity, cleverness (but not too clever), consistency, good unit tests and high output. (Though I usually manage at least two of the five and on good days four of them)
griswolf
Veteran Poster
1,165 posts since Apr 2010
Reputation Points: 344
Solved Threads: 256
>>Somewhat at odds with Ancient Dragon: I think that coding standards are useful prior to peer review,
I did not say code standards are not useful. Just the opposite. You can't have a peer review without them. My objection was for a tool that tris to enforce someone's coding standard on the world.
Ancient Dragon
Retired & Loving It
30,040 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
>>Somewhat at odds with Ancient Dragon: I think that coding standards are useful prior to peer review,
I did not say code standards are not useful. Just the opposite. You can't have a peer review without them. My objection was for a tool that tris to enforce someone's coding standard on the world.
Ok, on a more careful re-reading, I am indeed not even somewhat at odds with the elderly firebreather.
It might be kind of fun to try to create some kind of coding standards filter that could read the equivalent of the one-page company coding standards doc and emit a critique of my code... for any pair of 'company standards doc' and 'my code'. But imo it would end up being shelfware.
griswolf
Veteran Poster
1,165 posts since Apr 2010
Reputation Points: 344
Solved Threads: 256