Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Python, DOT, and Visualising Legacy Code The Lazy Way
Search
John Chandler
June 03, 2011
Programming
0
13
Python, DOT, and Visualising Legacy Code The Lazy Way
Presentation to the London Python Code dojo in 2011.
John Chandler
June 03, 2011
Tweet
Share
More Decks by John Chandler
See All by John Chandler
Everything I've Learnt from Russel Winder's Talks, in 5 Minutes (A Tribute)
metaljoe
0
7
Snowboarding Saved My Software Career
metaljoe
0
4
Neurodiversity in Tech
metaljoe
0
47
Neurodiversity Lightning Talk
metaljoe
0
3
Tackling a Legacy Codebase with (Micro)Services
metaljoe
0
4
Regular Expressions
metaljoe
0
7
Testing Workshop - Part 1 (PyConUK 2011)
metaljoe
0
14
Testing Workshop - Part 2 (PyConUK 2011)
metaljoe
0
8
Test Driven Development (A Short Introduction)
metaljoe
0
3
Other Decks in Programming
See All in Programming
RubyGems on ruby.wasm
kateinoigakukun
0
120
JS RPCを理解する
yusukebe
5
280
The Final Frontier of Web Development: React Server Components vs Jakarta EE
ivargrimstad
0
110
TypeScriptでもLLMアプリケーション開発 / LLM Application In Typescript
rkaga
5
1.3k
TypeScript Custom GitHub Action Development Tips
peaceiris
2
290
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
280
Open standards for building event-driven applications in the cloud
meteatamel
0
230
Adding Security to Microcontroller Ruby
sylph01
1
160
Introducing Kotlin Multiplatform in an existing mobile app - Workshop Edition | AndroidMakers Paris
prof18
0
180
Enjoy Creative Coding with Ruby (RubyKaigi2024)
chobishiba
0
550
TypeScriptとGraphQLで実現する 型安全なAPI実装 / TSKaigi 2024
hokaccha
5
2.8k
戦略的DDDは重いのか? / Is strategic DDD heavy?
pictiny
3
2.1k
Featured
See All Featured
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
Designing the Hi-DPI Web
ddemaree
276
33k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Designing Experiences People Love
moore
136
23k
From Idea to $5000 a Month in 5 Months
shpigford
377
45k
[RailsConf 2023] Rails as a piece of cake
palkan
28
4.1k
For a Future-Friendly Web
brad_frost
172
9k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
104
6.7k
Teambox: Starting and Learning
jrom
128
8.4k
How STYLIGHT went responsive
nonsquared
92
4.8k
Designing for humans not robots
tammielis
247
25k
Adopting Sorbet at Scale
ufuk
69
8.6k
Transcript
Python, DOT and Visualising Legacy Code The Lazy Way (C)
John Chandler 2011
Legacy PHP Code! Noooooooooooooo!!!!
Deep Breaths. Visualise the Code.
Laziness Part 1: Use Python to Analyse Dependencies
Write a PHP Parser in Python? Or use a regular
expression... (include|require)(?:_once)?[ (]["']([^"']+)["']
Laziness Part 2: Use Graphviz to Draw The Diagram
Graphviz supports DOT. DOT is a graphing mini-language
digraph foo { node1 [label=“Node 1”]; node2 [label=”Node 2”]; node1
-> node2; }
$ dot -Tpng -O foo.dot
WTF. Looks like some refactoring to do
Source is available under GPL v3 from: http://www.bitbucket.org/metaljoe/qadpid