On Tue, 3 Mar 2020 at 22:37, Warren Stephens <wsteph...@prognoshealth.com> wrote:
> rog, > > Very well said -- but everyone keeps talking about improving the > maintainability without talking about the "comprehensiblity". > > Look at the 2 things below. Which is more quickly comprehensible? We > cannot conceive of a way to have the upper one and still test each piece??? > I'm interested to try to understand why you feel you can't write tests for the former code by calling the top level entry point (presumably AAA in your example). I feel that so many testing decisions are only properly made in the context of the code itself. It's hard to talk usefully about such things without any actual examples. Perhaps you could provide some Go code that you'd feel that you'd be forced to split up in order to test (perhaps reduced in size or anonymized), so that we have something concrete to talk about? cheers, rog. > Warren > > AAA > BBB > www > CCC > xxx > yyy > DDD > zzz > > =========== > > AAA > BBB > www > CCC > xxx > yyy > DDD > zzz > > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/be59057f-bd56-4b57-9e23-3c59b1153a47%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/be59057f-bd56-4b57-9e23-3c59b1153a47%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAJhgacg_eTLDcO4%3DJ2PNAJTecreCVuRD2LwPSCa%2BOj8%3D273p%2BA%40mail.gmail.com.