Timeline for How does breaking up a big method into smaller methods improve unit testability when the methods are all private?
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 20, 2019 at 20:49 | answer | added | Juan Carlos Eduardo Romaina Ac | timeline score: 0 | |
| Dec 20, 2019 at 19:49 | answer | added | gnasher729 | timeline score: 0 | |
| Dec 20, 2019 at 19:21 | answer | added | Roger | timeline score: 0 | |
| Dec 20, 2019 at 15:33 | answer | added | ACV | timeline score: 0 | |
| May 23, 2017 at 12:40 | history | edited | CommunityBot | replaced http://stackoverflow.com/ with https://stackoverflow.com/ | |
| Jan 18, 2016 at 19:28 | comment | added | Adrian773 | @guillaume31 Yes, the emphasis is mine. | |
| Jan 18, 2016 at 19:27 | history | edited | Adrian773 | CC BY-SA 3.0 | added (emphasis mine) |
| Jan 18, 2016 at 13:07 | answer | added | guillaume31 | timeline score: 0 | |
| Jan 18, 2016 at 12:53 | comment | added | guillaume31 | @Adrian773 is the emphasis on "it will become easier to test" yours or is it in the book ? | |
| Jan 18, 2016 at 7:39 | comment | added | Kilian Foth | It doesn't. However, the consequence is not "The authors are wrong and you shouldn't refactor." It's "You should refactor and make helper functions public". If you need many helper functions to achieve one module's task, almost always you can extract a more generic data processing helper module that is useful in itself, and should be tested separately. | |
| Jan 18, 2016 at 2:19 | history | tweeted | twitter.com/StackProgrammer/status/688908624912056320 | ||
| Jan 18, 2016 at 0:42 | answer | added | amon | timeline score: 11 | |
| Jan 18, 2016 at 0:30 | comment | added | Ixrec | That is a very good question. I suspect the answer is simply that the authors are talking about public functions or free pure functions so the problem doesn't arise, and for private methods it really doesn't help testability (though it does help plenty of other -abilities). | |
| Jan 18, 2016 at 0:22 | history | edited | Ixrec | CC BY-SA 3.0 | More specific title |
| Jan 17, 2016 at 23:13 | review | First posts | |||
| Jan 22, 2016 at 7:57 | |||||
| Jan 17, 2016 at 23:11 | history | asked | Adrian773 | CC BY-SA 3.0 |