Hacker News new | ask | show | jobs
by taeric 4278 days ago
Seeing this makes me realize the beauty of CWEB. It lets you break up a piece of the code this way, but when it presents the code that is in "DoStuff" it explicitly tells you where else it is used.

That is, the concern with having a DoStuff method is that if it gains a new caller, it may have just gained new requirements. This will eventually pose a problem, especially when it is believed that one can edit functions in isolation to all of the expectations of existing call sites.

Explicitly listing the call sites, though, goes a long way to understanding why "DoStuff" does what it does.