See The Structure Of Your Software At A Glance With Call Graphs From Code2Flow

The Python Podcast.__init__

Episode | Podcast

Date: Sun, 27 Feb 2022 21:00:00 -0500

<div class="wp-block-jetpack-markdown"><h2>Summary</h2> <p>As software projects grow and change it can become difficult to keep track of all of the logical flows. By visualizing the interconnections of function definitions, classes, and their invocations you can speed up the time to comprehension for newcomers to a project, or help yourself remember what you worked on last month. In this episode Scott Rogowski shares his work on Code2Flow as a way to generate a call graph of your programs. He explains how it got started, how it works, and how you can start using it to understand your Python, Ruby, and PHP projects.</p> <h2>Announcements</h2> <ul> <li>Hello and welcome to Podcast.__init__, the podcast about Python&#8217;s role in data and science.</li> <li>When you&#8217;re ready to launch your next app or want to try a project you hear about on the show, you&#8217;ll need somewhere to deploy it, so take a look at our friends over at Linode. With the launch of their managed Kubernetes platform it&#8217;s easy to get started with the next generation of deployment and scaling, powered by the battle tested Linode platform, including simple pricing, node balancers, 40Gbit networking, dedicated CPU and GPU instances, and worldwide data centers. Go to <a href="https://www.pythonpodcast.com/linode?utm_source=rss&amp;utm_medium=rss">pythonpodcast.com/linode</a> and get a $100 credit to try out a Kubernetes cluster of your own. And don&#8217;t forget to thank them for their continued support of this show!</li> <li>Subsurface Live is the cloud data lake conference, a virtual conference where data engineers, data scientists, data architects, and data analysts can gather and hear about cloud data lakes and the data ecosystem. Subsurface Live Winter 2022 includes keynote talks from Bill Inmon, the father of the data warehouse, Author of Deep Work Cal Newport, and several more from companies such as Dremio, AWS, dbt, and more. Subsurface will also have many breakout sessions featuring Pandas creator Wes McKinney, Apache Superset &amp; Airflow creator Maxime Beauchemin, and engineers from Apple, Uber, Adobe, Bloomberg, and more. Meet other data professionals and learn about the data technologies and practices helping companies meet their current and future data needs. Register today at <a href="https://www.pythonpodcast.com/subsurface?utm_source=rss&amp;utm_medium=rss">pythonpodcast.com/subsurface</a></li> <li>Your host as usual is Tobias Macey and today I&#8217;m interviewing Scott Rogowski about Code2Flow, a utility for generating &quot;pretty good&quot; call graphs for dynamic languages</li> </ul> <h2>Interview</h2> <ul> <li>Introductions</li> <li>How did you get introduced to Python?</li> <li>Can you describe what Code2Flow is and the story behind it?</li> <li>What are some of the ways that a program&#8217;s call graph might be used?</li> <li>How does the visual representation generated by Code2Flow help with exploring the structure of a project? <ul> <li>What are some of the alternative approaches/tools that might be used to gain similar insights?</li> <li>What do you see as the overlap in utility between Code2Flow and e.g. SourceGraph?</li> </ul> </li> <li>Can you describe how the Code2Flow project is implemented? <ul> <li>How have the design and goals of the project changed since you first began working on it?</li> </ul> </li> <li>Given that Code2Flow is implemented in Python, how have you managed the parsing/processing of the other languages that you support?</li> <li>Visualizing a complex program can quickly become very messy. How have you approached the layout of the output to enhance comprehension?</li> <li>What are some of the situations where Code2Flow will be unable to provide a full picture of a program&#8217;s call graph?</li> <li>What are some of the pieces of information that are unavailable due to the static analysis approach that you have taken?</li> <li>Can you describe the process of applying Code2Flow to a project? <ul> <li>Once the structure is on display, what are some next steps that an individual or team might take to analyze and act on the information?</li> </ul> </li> <li>Given the static nature of the output, how might Code2Flow be incorporated in a CI/CD system to provide insight into the evolution of a projects structure?</li> <li>What are the most interesting, innovative, or unexpected ways that you have seen Code2Flow used?</li> <li>What are the most interesting, unexpected, or challenging lessons that you have learned while working on Code2Flow?</li> <li>When is Code2Flow the wrong choice?</li> <li>What do you have planned for the future of Code2Flow?</li> </ul> <h2>Keep In Touch</h2> <ul> <li><a href="https://scottrogowski.com/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Website</a></li> <li><a href="https://github.com/scottrogowski/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">scottrogowski</a> on GitHub</li> </ul> <h2>Picks</h2> <ul> <li>Tobias <ul> <li>Taking Vacation</li> <li><a href="https://www.universalorlando.com/web/en/us?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Universal Studios, Florida</a></li> </ul> </li> <li>Scott <ul> <li>Service work</li> </ul> </li> </ul> <h2>Closing Announcements</h2> <ul> <li>Thank you for listening! Don&#8217;t forget to check out our other show, the <a href="https://www.dataengineeringpodcast.com?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Data Engineering Podcast</a> for the latest on modern data management.</li> <li>Visit the <a href="https://www.pythonpodcast.com?utm_source=rss&amp;utm_medium=rss">site</a> to subscribe to the show, sign up for the mailing list, and read the show notes.</li> <li>If you&#8217;ve learned something or tried out a project from the show then tell us about it! Email <a href="mailto:hosts@podcastinit.com">hosts@podcastinit.com</a>) with your story.</li> <li>To help other people find the show please leave a review on <a href="https://itunes.apple.com/us/podcast/podcast.-init/id981834425?mt=2&amp;uo=6&amp;at=&amp;ct=&amp;utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">iTunes</a> and tell your friends and co-workers</li> </ul> <h2>Links</h2> <ul> <li><a href="https://github.com/scottrogowski/code2flow?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Code2Flow</a></li> <li><a href="https://en.wikipedia.org/wiki/Colombia?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Colombia</a></li> <li><a href="https://github.com/scottrogowski/mongita?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Mongita</a></li> <li><a href="https://education.ti.com/en/products/calculators/graphing-calculators/ti-83-plus?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">TI-83</a></li> <li><a href="https://www.ruby-lang.org/en/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Ruby</a></li> <li><a href="https://www.php.net/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">PHP</a></li> <li><a href="https://en.wikipedia.org/wiki/Abstract_syntax_tree?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">AST == Abstract Syntax Tree</a></li> <li><a href="https://graphviz.org/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Graphviz</a></li> <li><a href="https://pylint.pycqa.org/en/latest/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Pylint</a></li> <li><a href="https://en.wikipedia.org/wiki/Robert_Frost?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">Robert Frost</a></li> </ul> <p>The intro and outro music is from Requiem for a Fish <a href="http://freemusicarchive.org/music/The_Freak_Fandango_Orchestra/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">The Freak Fandango Orchestra</a> / <a href="http://creativecommons.org/licenses/by-sa/3.0/?utm_source=rss&amp;utm_medium=rss" rel="noopener" target="_blank">CC BY-SA</a></p> </div> <img alt="" height="0" src="https://analytics.boundlessnotions.com/piwik.php?idsite=1&amp;rec=1&amp;url=https%3A%2F%2Fwww.pythonpodcast.com%2Fcode2flow-call-graph-episode-354%2F&amp;action_name=See+The+Structure+Of+Your+Software+At+A+Glance+With+Call+Graphs+From+Code2Flow+-+Episode+354&amp;urlref=https%3A%2F%2Fwww.pythonpodcast.com%2Ffeed%2F&amp;utm_source=rss&amp;utm_medium=rss" style="border: 0; width: 0; height: 0;" width="0" />