Working With Legacy Code News Today : Breaking News, Live Updates & Top Stories | Vimarsana

Stay updated with breaking news from Working with legacy code. Get real-time updates on events, politics, business, and more. Visit us for reliable news and exclusive interviews.

Top News In Working With Legacy Code Today - Breaking & Trending Today

Still No Consensus On Testing Private Methods

Yesterday, while running a session at work on Rust, I offhandedly remarked ‘I think we can all agree that when writing unit tests, private methods shouldn’t be directly tested except in some special situations’ and to my suprise, I had thought wrong. A mini-debate erupted where various people argued mutually incompatible viewpoints. We quickly moved on from the debate but I was left a little embarrassed that I had misjudged the developer zeitgeist.

....

Sandi Metz , Test Driven Development , Stack Overflow , Private Methods Into , Always Test Private , Never Test Private , Test Private Methods , Extract Private Methods Into , Single Responsibility Principle , Working With Legacy Code , Michael Feathers , Practical Object Oriented Design ,