Timeline for Is it a bad practice to have an interface method to tell whether it can handle an object?
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 25, 2021 at 20:47 | comment | added | Cort Ammon | +1 It depends on what you want to NOT do, and how much you are willing to pay for code that doesn't do it. Your fire alarm example is great. Reminds me of Ian Malcom from Jurassic Park: "Yeah, yeah, but your scientists were so preoccupied with whether or not they could that they didn't stop to think if they should." | |
Oct 25, 2021 at 2:45 | history | answered | gnasher729 | CC BY-SA 4.0 |