Composed Method Pattern

Msg #129624 on the extremeprogramming Yahoo! Group

Some people swear that they would rather see all the code in line,
rather than separated out into small methods. I think that the
in-line people should be prevented from breeding.
-- Ron Jeffries regarding the Compose Method pattern.

Haha!

Published 05-30-2007 1:59 AM by jop
Filed under:

Comments

# re: Composed Method Pattern

i think this kind of thinking was applicable during the early times when doing a procedure/method call took precious CPU cycles. doing things inline made stuff faster, depending on how many times that method is called in a tight loop or processing sequence. now that the performance overhead of doing a CALL/RET is almost negligible, it's much better to code for readability and maintainability than (barely better) performance.

Tuesday, May 29, 2007 6:22 PM by cruizer