Page 1 of 1
Implementation "Clean Code" book rules
Posted: Tue Oct 04, 2011 9:14 am
by VladSun
I've been rereading "Clean Code" book recently, when an idea came to my mind - a tool that get's a file (ideally a single class) and check if all (or most of them) rules shown in the book are met

This tool could be used for a base refactoring guide for existing sources
I've already started implementing it, almost done the class/method/properties parser tool. Though, I don't have much time so any help (even software design ideas) are welcome.
Re: Implementation "Clean Code" book rules
Posted: Tue Oct 04, 2011 12:19 pm
by twinedev
Is that the book that has this image towards the beginning?
http://www.osnews.com/story/19266/WTFs_m
Re: Implementation "Clean Code" book rules
Posted: Tue Oct 04, 2011 3:00 pm
by VladSun
I haven't this picture in my book ... not sure ...
It's Robert C. Martin's book -
"Clean Code
A Handbook of Agile Software Craftsmanship"
Re: Implementation "Clean Code" book rules
Posted: Tue Oct 04, 2011 5:40 pm
by Weirdan
Could be done based on PHP_CodeSniffer I suppose.
Re: Implementation "Clean Code" book rules
Posted: Tue Oct 04, 2011 5:48 pm
by twinedev
VladSun wrote:I haven't this picture in my book ... not sure ...
It's Robert C. Martin's book -
"Clean Code
A Handbook of Agile Software Craftsmanship"
Yep that was the one I was previewing on Amazon.
Re: Implementation "Clean Code" book rules
Posted: Tue Oct 04, 2011 6:33 pm
by Christopher
Weirdan wrote:Could be done based on PHP_CodeSniffer I suppose.
I don't know, but it sounds like a great idea. Certainly CodeSniffer already has the parsing part done.