-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@Gricha - one of the rules of agile programming - don't add placehold…
…er classes, don't anticipate. if you don't implement conditions yet, don't create placeholder classes. reasons for that: - agile projects often pivot, and you end up with a code full of placeholders that won't get ever used - placeholders make code harder to read, so there's a recurring cost to having them - the architecture may change before we get to implementing a given feature, and placeholder might not fit the new architecture I know we were two steps away from creating the conditions, but still - you should've waited with implementing the condition evaluator until the day you're building the conditions. **and even then** not create a separate class for that (because again - that's anticipating that future conditions will appear), but do it inline first, and once you see the code duplicated, move to create separate functions, and then finally - classes. If you do it another way (and you are doing it the other way around consistently), you end up with a code filled with empty classes, that's very hard to maintain and modify.
- Loading branch information
Showing
5 changed files
with
8 additions
and
51 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
05aff65
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kolinko thanks for great lesson. Following that - the transaction should not be named ConditionedTransaction but raather transaction and therefore - there should not be a list pf transactions as you proposed earlier