Adding UML and 3 points

This commit is contained in:
Shashwath Udaya Kumar committed 2026-01-30 23:41:01 -05:00
1 parent 9bcc8af37d
commit 964e0e3c5e
5 files changed
+19 -2

No files matched your search

BIN
View File
Binary file not shown.
+5
View File
@@ -44,3 +44,8 @@ class Item:
def __repr__(self):
return "%s, %s, %s" % (self.name, self.sell_in, self.quality)
#The original code relied on a monolithic update_quality method with deeply nested conditional logic
#I implemented the Strategy Pattern, decomposing the complex conditional logic into separate classes
#Created a new strategy class rather than risking regression bugs by modifying the existing, messy if/else block.
+6
View File
@@ -0,0 +1,6 @@
{
"name": "python",
"lockfileVersion": 3,
"requires": true,
"packages": {}
}