Skip to main content
5 events
when toggle format what by license comment
Nov 19, 2018 at 7:25 comment added Flater the replenishStock could very well set the stock to an arbitrary high value That would (at best) still create a dud function with no meaning. While it does avoid exceptions and keeps the system working, that doesn't mean it's a good implementation. For example, consider that whatever arbitrarily high value you pick, your ebook may be listed as unavailable if it sells really well. I'm aware you can set it to an int value much higher than your servers could ever reasonably distribute copies of the ebook but it's the principle of the thing. It's still still violating LSP in spirit.
Nov 18, 2018 at 12:17 vote accept tenepolis
Nov 17, 2018 at 23:49 history edited Christophe CC BY-SA 4.0
added 382 characters in body
Nov 17, 2018 at 23:37 history edited Christophe CC BY-SA 4.0
added 382 characters in body
Nov 17, 2018 at 23:27 history answered Christophe CC BY-SA 4.0