Implementation "Clean Code" book rules

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Implementation "Clean Code" book rules

Post 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.
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Implementation "Clean Code" book rules

Post by twinedev »

Is that the book that has this image towards the beginning? http://www.osnews.com/story/19266/WTFs_m
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Implementation "Clean Code" book rules

Post 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"
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Implementation "Clean Code" book rules

Post by Weirdan »

Could be done based on PHP_CodeSniffer I suppose.
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Implementation "Clean Code" book rules

Post 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.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Implementation "Clean Code" book rules

Post 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.
(#10850)
Post Reply