Skip to main content
9 events
when toggle format what by license comment
Jan 29, 2021 at 11:27 vote accept cowboydan
Jan 29, 2021 at 7:02 answer added Ethan McCue timeline score: 3
Jan 29, 2021 at 3:56 comment added cowboydan @Flater Let me rephrase the question: are empty interface implementations a code smell? Or is it context dependent?
Jan 29, 2021 at 2:06 comment added Flater [..] These are just some of many reasons why it's not that productive for two people to talk about their own interpretation of an unspecified requirement, because it's so very likely that things get lost in implicit translation.
Jan 29, 2021 at 2:06 comment added Flater [..] Additionally, there are real world considerations that change the design decision you might make. (a) Most automatics nowadays allow for tiptronic (i.e. human decision but automated shifting maneuver) (b) Does your code meaningfully distinguish between the implementation differences of a manual and automatic gearbox (i.e. the physical device, not the automatic gear shifter on top of it) (c) what about different automatic settings based on weather conditions? Do they affect shiftUp, or is the act of shifting a gear the same even though the decision at which RPM ro shift is different?
Jan 29, 2021 at 2:02 comment added Flater @cowboydan Your question in comments isn't meaningfully helpful. I mean that in the sense that you're asking about someone else's imaginary requirements about an already quite unspecified example with unknown requirements. But what Robert meant (correct me if I'm wrong) is that a shiftUp method would be largely the same in both an automatic and a manual car, as they both shift gears. It's more the decideToShiftUp logic that is different. This is why I mention that it's about imaginary requirements. You expect something completely different than Robert/me for what shiftUp would contain.
Jan 28, 2021 at 22:58 comment added cowboydan Ha - you're right indeed! Would you say that in the automatic transmission case it could be an empty implementation?
Jan 28, 2021 at 22:56 comment added Robert Harvey A manual transmission and an automatic transmission are both IShiftable. The difference is that one shifts automatically, while the other does not.
Jan 28, 2021 at 22:52 history asked cowboydan CC BY-SA 4.0