Re:Want cleaner code? Use the rule of six
by wpietri on Saturday September 24, 2022 @02:06PM
(#32965140)
This is my experience too. I love hiding detail for readability, but you have to hide the right details!
It's also definitely related to testability for me. If I'm pulling out the right details, then I'll often get a nice cluster of tests that pin down the higher-level concept in a way where it's both the production and test code that gets more readable.
It's also definitely related to testability for me. If I'm pulling out the right details, then I'll often get a nice cluster of tests that pin down the higher-level concept in a way where it's both the production and test code that gets more readable.