Hacker News new | past | comments | ask | show | jobs | submit login

> "The whole program" is obviously too big.

Of course.

> "every public method or function" is obviously too small.

Why "obviously"? If it's public, someone outside the class can call it. That's an external behavior.




If the class is only consumed in the context of one code unit (module, service, whatever) then the class itself is an implementation detail.


"every" being the operative word.

The "feel" for good code that comes with experience is not reducible in practice to a set of black-and-white rules.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: