~/talk

Refactoring PyChart

links:none on file
slides:none on file

Argues that no tests no refactoring and shows refactor steps applied to PyChart: make imports explicit, turn module imports into class imports, consolidate public classes into a single module, encapsulate color generation, and extract file handling from canvas classes. Removes global state and the exit-hook that prevented embedding, and adds an HTML5 canvas output. Uses the existing demo suite as tests, performs changes manually (tries Eclipse and PyCharm but relies on hand edits), and notes the project is unchanged since 2006.

AI-written summary · about

  1. 0:00Introduction to refactoring
  2. 0:51Core principles and workflow
  3. 4:43Strategies for refactoring
  4. 7:24Analyzing the PieChart library
  5. 10:42Applying refactoring steps
  6. 16:46Refining file handling
  7. 20:58Real-world usage and tooling
  8. 25:31Q&A and closing thoughts
~/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.