Reply to Re: Best Coding Practice

Your name:

Reply:


Posted by Sanders Kaufman on 08/25/07 03:24

Jerry Stuckle wrote:

> No, refactoring is changing the implementation without changing the
> interface.
>
> IOW, you change HOW you do things, but not WHAT you do. You changed the
> interface.
>
> An example of refactoring would be to change a class so that it gets its
> data from a relational database instead of a flat file. The function
> calls (interface) remain the same, but the code in the functions
> (implementation) changes.
>
> Refactoring in OO would mean you would not have to change anything
> outside of the class itself.

Ahh - so when I had to use new kinds of parameters - I was rewriting.
But if I'd made it all zero-impact on how it's used, it would have been
refactoring.

I don't get it. I can repeat it and rephrase it. But I don't get it.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация