Skip to main content
4 events
when toggle format what by license comment
Mar 19, 2020 at 9:58 comment added gnasher729 What exactly are you gaining by this? (Obviously "follow SRP" and "delegate to the interface" are not gaining anything).
Mar 18, 2020 at 10:19 comment added πάντα ῥεῖ @NavjotSingh Regarding writing suitable unit tests (as you mention them in your Q) it isnt overkill but just separating responsibilities, and allows you to provide mocks.
Mar 18, 2020 at 10:17 comment added Navjot Singh This is a solution which I also had in mind, but it is just an overkill. Here a variable is translated to an entire class and you had an extra interface as well. Imagine having many such classes, it will just fill the namespace with small classes that essentially just hold variables.
Mar 18, 2020 at 10:09 history answered πάντα ῥεῖ CC BY-SA 4.0