Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
5
Impact
~7k people reached

Dec
27
comment Design pattern for “operation on object allowed, only if object is in certain state”
Presuming the state pattern is being used as a model, the "failure" must be communicated to the user interface. For example, if you are attempting to loan a book which is already issued to somebody else the Book model will contain the logic to prevent it's state from changing. This might be via a return value (e.g. a boolean successful yay/nay, or status code) or an exception (e.g. IllegalStateChangeException) or some other means. Irrespective of the means chosen, this aspect is not covered as part of this (or any) answer.
Dec
26
comment Design pattern for “operation on object allowed, only if object is in certain state”
Am I missing something? This seems to permit calling all four methods, regardless of state, without a hint of how this setup is to be used for communicating to the calling methods that the apply() call was unsuccessful due to having already applied for example.
Dec
18
awarded  Popular Question
Dec
14
answered GIT and different versions of a project: what are the best practices?
Nov
23
comment GIT and different versions of a project: what are the best practices?
The link to a video that you provide does not appear to contain a video. Please amend your post to make finding the video clear.
Nov
14
comment Is there any “real” reason multiple inheritance is hated?
I suggest that your recent edit also has design issues. A plane "is a" vehicle which "has" features of a FlyingObject. For example, a plane and a bird both fly, but have different implementations (engine vs wings) - thus FlyingObject should be an interface.
Aug
19
awarded  Student
Aug
19
asked Standard practices for access control (design pattern)
Jun
18
comment How can I salvage my internship?
Another +1 for keeping a journal; the best thing I was ever taught is to keep a "captain's log" of day-to-day activities, thought-processes and decisions (even if they, ultimately, end up being the 'wrong' decision).
Mar
3
awarded  Tag Editor
Mar
3
revised data-mining wiki excerpt
added 134 characters in body
Mar
3
wiki created data-mining excerpt
Mar
3
suggested approved edit on data-mining tag wiki excerpt
Jan
6
awarded  Supporter
Jan
6
awarded  Teacher
Jan
6
answered How to write junit test case for the program