You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documents/inbox.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Today's session plan
2
2
3
+
- Clean up before moving on:
4
+
-**Stop reusing a single instance of `PurchaseInProgress` to represent the purchase in progress. Maintaining the state has already become too complicated!**
5
+
- The class and one of its properties have the same name. Improve this _somehow_.
6
+
- Make the lifecycle of the Purchase in Progress more obvious in the API. For example: Purchase.begin() returns PurchaseInProgress; purchaseInProgress.complete() returns PurchaseInfo.
7
+
- Can we compute `isPurchaseInProgress` without maintaining a separate state value?
3
8
- Print a receipt
4
9
- What happens if we have a total with no items? scenario
5
10
- Print the barcode with each item in the receipt
@@ -9,11 +14,6 @@
9
14
- Add a timestamp for the receipt
10
15
- Line up all the decimal points
11
16
- Defect: excessive whitespace when requesting a receipt for an empty Purchase.
12
-
- Clean up before moving on:
13
-
-**Stop reusing a single instance of `PurchaseInProgress` to represent the purchase in progress. Maintaining the state has already become too complicated!**
14
-
- The class and one of its properties have the same name. Improve this _somehow_.
15
-
- Make the lifecycle of the Purchase in Progress more obvious in the API. For example: Purchase.begin() returns PurchaseInProgress; purchaseInProgress.complete() returns PurchaseInfo.
16
-
- Can we compute `isPurchaseInProgress` without maintaining a separate state value?
0 commit comments