~/talk

How to Lift Your Tech Debt Curse with the Magic of the Open-Close Principle

name:Dor Amram
links:none on file
slides:none on file

Claim: apply the Open-Closed Principle to refactor fragile Python production code without changing behavior, using small, tested steps. The code example transforms a single get_payment function into a DateRange dataclass, an Order parameter object, extracted helper methods, a notification decorator, and a location-specific subclass for discount logic. Refactoring shrinks the long method, shortens the parameter list, removes magic numbers, and preserves results after each change. Recommended tooling: dataclass and parameter object, extracted methods and tests.

AI-written summary · about

  1. 0:00Introduction and story
  2. 2:14Tech debt curse explained
  3. 3:18Code smell examples
  4. 7:35Refactoring for clarity
  5. 13:15Refactoring principles
  6. 15:45Open-Close Principle
  7. 17:33Conclusion and simplicity
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.