~/talk

Refactoring PyChart

Talkat EuroPython 2011 · 2011-06-20..06-26· [data-visualization, python]
links:none on file
slides:none on file

Refactors PyChart by making imports explicit, turning package module imports into direct class imports, and packaging class imports into a single pypchart module; it isolates file/format handling into a separate canvas/file-object layer, removes entangled globals, and makes output generation embeddable instead of relying on Python's exit hook. Tests use the shipped demo suite as regression checks (visual comparison done manually). Output formats include PDF, SVG, PostScript, PNG and planned HTML5 canvas output. Key changes: removed global state, extracted file backend classes.

AI-written summary · about

  1. 0:00Refactoring PyChart
  2. 0:49Principles of refactoring
  3. 2:49Refactoring cycle - no interface change
  4. 4:01Refactoring with interface change
  5. 4:42Typical refactorings
  6. 8:31Why refactor
  7. 12:18Refactoring steps
  8. 16:43Separation of concerns
  9. 19:41Output generation
  10. 20:58Piechart
  11. 22:39Summary
~/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.