Start Using a Debugger With Your Python Code
<p>Are you still sprinkling print statements throughout your code while writing it? Print statements are often clunky and offer only a limited view of the state of your code. Have you thought there must be a better way? This week on the show, we have Nina Zakharenko to discuss her conference talk titled “Goodbye Print, Hello Debugger.”</p>
<p>We talk about how to get started debugging your code by adding a single keyword. Nina discusses the differences between debugging on the command line vs using the tools included with an Integrated Development Environment(IDE). She also shares tricks and best practices. If you haven’t seen Nina’s conference talk, it’s a great starting point. </p>
<p>We also talk about working through the last 18 months and how to recharge your creative batteries. We briefly discuss two other presentations Nina gave about CircuitPython and getting started with electronics and Python.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/python-debugging-pdb/">Python Debugging With pdb</a></p>
<p>In this hands-on course, you’ll learn the basics of using pdb, Python’s interactive source code debugger. pdb is a great tool for tracking down hard-to-find bugs, and it allows you to fix faulty code more quickly.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:01:46 – Follow up on PyCascades 2021 and 2022</li>
<li>00:02:45 – Election to the PSF Board</li>
<li>00:05:06 – Current levels of burnout</li>
<li>00:09:09 – Possible ways to recharge</li>
<li>00:12:18 – Goodbye Print, Hello Debugger</li>
<li>00:14:46 – What are the types of things you can examine the state of?</li>
<li>00:18:01 – Where to start?</li>
<li>00:22:37 – Sponsor: Sentry</li>
<li>00:23:39 – Why is debugging not shown as often in Python?</li>
<li>00:26:49 – Debugging in VSCode</li>
<li>00:29:37 – Adding breakpoints in Flask or Django Templates</li>
<li>00:31:32 – What is pdb and how does it compare to ipdb?</li>
<li>00:39:40 – What are common debugging mistakes?</li>
<li>00:43:50 – Video Course Spotlight</li>
<li>00:44:48 – Why include a disclaimer about the talk?</li>
<li>00:46:13 – Where did you learn about debugging?</li>
<li>00:49:23 – Nina’s conference talks about CircuitPython</li>
<li>00:58:33 – What are you excited about in the world of Python?</li>
<li>00:59:51 – What do you want to learn next?</li>
<li>01:04:02 – Social info</li>
<li>01:04:27 – Thanks and goodbye</li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://www.nnja.io/">Nina Zakharenko - Personal Website</a></li>
<li><a href="https://2021.pycascades.com/">PyCascades 2021</a></li>
<li><a href="https://www.python.org/psf/membership/">Python Software Foundation - Become a Member</a></li>
<li><a href="https://www.youtube.com/watch?v=5AYIe-3cD-s">Nina Zakharenko - Goodbye Print, Hello Debugger! - PyCon 2020</a></li>
<li><a href="https://docs.python.org/3/library/pdb.html?highlight=pdb#module-pdb">pdb — The Python Debugger: Python 3 Docs</a></li>
<li><a href="https://ipython.org/">IPython: Interactive Computing</a></li>
<li><a href="https://pre-commit.com/">Pre-commit: A framework for managing and maintaining multi-language pre-commit hooks</a></li>
<li><a href="https://www.pythonmorsels.com/">Python Morsels: Write better Python code in 30 minutes each week</a></li>
<li><a href="https://realpython.com/python-debug-idle/">Find & Fix Code Bugs in Python: Debug With IDLE: Real Python Article</a></li>
<li><a href="https://realpython.com/courses/python-basics-code-bugs/">Python Basics: Finding and Fixing Code Bugs: Real Python Video Course</a></li>
<li><a href="https://www.youtube.com/watch?v=35mXD40SvXM">Light Up Your Life With Python and LEDs - PyCon 2019 - YouTube</a></li>
<li><a href="https://www.youtube.com/watch?v=GnteZjiHVdA">More Fun With Hardware and CircuitPython - IoT, Wearables, and more! - PyCon 2021 - YouTube</a></li>
<li><a href="https://circuitpython.org/">CircuitPython: The easiest way to program microcontrollers</a></li>
<li><a href="https://circuitpython.org/board/circuitplayground_express/">Circuit Playground Express by Adafruit</a></li>
<li><a href="https://www.microsoft.com/en-us/garage/profiles/device-simulator-express/">Device Simulator Express: A VS code extension</a></li>
<li><a href="https://github.com/microsoft/IoT-For-Beginners">IoT for Beginners - A Curriculum</a></li>
<li><a href="https://nostarch.com/big-book-small-python-projects">The Big Book of Small Python Projects - Al Sweigart</a></li>
<li><a href="https://www.kregtool.com/shop/pocket-hole-joinery/pocket-hole-jigs/kreg-pocket-hole-jig-320/KPHJ320.html">Kreg® Pocket-Hole Jig 320</a></li>
<li><a href="https://learn.kregtool.com/learn/conquer-cuts-adaptive-cutting-system/">Conquer your cuts with the Adaptive Cutting System</a></li>
<li><a href="https://twitter.com/nnja">Nina’s Twitter</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/python-debugging-pdb/">Debugging in Python With pdb</a></li>
<li><a href="https://realpython.com/courses/pandas-dataframe-working-with-data/">The pandas DataFrame: Working With Data Efficiently</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
Creating an Interactive Online Python Conference for PyCascades 2021
<p>How do you create a virtual conference that retains the interactivity of an in-person event? What are the tools needed for talk submissions, ticketing, and live hosting? Can you find those tools written in Python?
This week on the show, we have several of the organizers of the PyCascades 2021 conference. They share the process of restructuring a Python conference to meet those challenges.</p>
<p>Nina Zakharenko and Seb Vetter are co-chairs, and Ashia Zawaduk is the conference program chair. PyCascades will be held online from February 19th through 21st, with a day of virtual social events, one of live-streamed talks, and another of mentored sprints.</p>
<p>We discuss ways to recreate the elusive feel of the “hallway” track virtually. They share advice about submitting a talk proposal and ways that you can volunteer for conferences. </p>
<p>Tickets are available now. PyCascades is looking for additional sponsors. If you work for an organization that can help, get in contact with them.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/speed-python-concurrency/">Speed Up Python With Concurrency</a> </p>
<p>Learn what concurrency means in Python and why you might want to use it. You’ll see a simple, non-concurrent approach and then look into why you’d want threading, asyncio, or multiprocessing.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:01:53 – Introducing the organizers</li>
<li>00:03:27 – Structure and vision for the Conference </li>
<li>00:06:50 – Tools for a virtual conference</li>
<li>00:10:34 – Creating a virtual hallway track</li>
<li>00:12:32 – Testing the platform</li>
<li>00:14:33 – How does a virtual event change the type of audience?</li>
<li>00:15:54 – Opening up the range of available speakers and topics</li>
<li>00:19:35 – Tips for finding success in submitting talk proposals</li>
<li>00:24:28 – Sponsor: PyCharm</li>
<li>00:25:10 – How can someone assist at this and other conferences?</li>
<li>00:26:40 – Preparing first time speakers</li>
<li>00:28:29 – How did each of you get involved?</li>
<li>00:36:13 – Video Course Spotlight </li>
<li>00:37:18 – Currently scheduled talks</li>
<li>00:43:01 – Mentored Sprints for Diverse Beginners </li>
<li>00:49:37 – User groups and meetups</li>
<li>00:52:23 – PyCascades sponsors</li>
<li>00:57:02 – What are you excited about in the world of Python?</li>
<li>01:02:39 – Callout: Get Your Tickets and thanks </li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://2021.pycascades.com/">PyCascades 2021</a></li>
<li><a href="https://2021.pycascades.com/about/team/">PyCascades: The Team</a></li>
<li><a href="https://2020.pycon.org.au/">PyConline AU 2020</a></li>
<li><a href="https://www.youtube.com/c/PyConAU/videos">PyCon AU: YouTube Channel</a></li>
<li><a href="https://pretalx.com/p/about/">pretalx: From Call for Papers to schedule – build your conference!</a></li>
<li><a href="https://github.com/pretalx/pretalx">pretalx: GitHub</a></li>
<li><a href="https://pretix.eu/about/en/">pretix: Event Ticketing Software</a></li>
<li><a href="https://github.com/pretix/pretix">pretix: GitHub</a></li>
<li><a href="https://venueless.org/">venueless: Host Your Events Online </a></li>
<li><a href="https://github.com/venueless/venueless">venueless: GitHub</a></li>
<li><a href="https://nextdayvideo.com/">Next Day Video</a></li>
<li><a href="https://www.python.org/psf/grants/free-resources/">Resources for Virtual Events: PSF</a></li>
<li><a href="https://nnja.medium.com/the-ultimate-guide-to-memorable-tech-talks-e7c350778d4b">The Ultimate Guide To Memorable Tech Talks — Nina’s series of posts with lots of advice on giving excellent tech talks.</a></li>
<li><a href="https://2021.pycascades.com/about/volunteer/">Volunteer at PyCascades</a></li>
<li><a href="https://pycolorado.org/">PyColorado 2019</a></li>
<li><a href="https://2021.pycascades.com/program/schedule/">PyCascades 2021: Schedule</a></li>
<li><a href="https://mentored-sprint-for-diverse-beginners.readthedocs.io/#">Mentored Sprints for Diverse Beginners at PyCon US 2020: readthedocs</a></li>
<li><a href="https://realpython.com/podcasts/rpp/8/">Episode 8: Docker + Python for Data Science and Machine Learning With Tania Allard</a></li>
<li><a href="https://pyladies.com">PyLadies</a></li>
<li><a href="https://www.meetup.com/PSPPython/">Puget Sound Programming Python (PuPPy): Meetup</a></li>
<li><a href="https://2021.pycascades.com/sponsors/our-sponsors/">PyCascades: Sponsors</a></li>
<li><a href="https://2021.pycascades.com/sponsors/become-a-sponsor/">Become Our Sponsor: PyCascades</a></li>
<li><a href="https://www.twitch.tv/nnjaio">nnjaio: Nina’s Twitch Channel</a></li>
<li><a href="https://www.twitch.tv/alsweigart">AlSweigart: Twitch Channel</a></li>
<li><a href="https://www.twitch.tv/anthonywritescode">anthonywritescode: Anthony Sottile Twitch Channel</a></li>
<li><a href="https://www.twitch.tv/crazy4pi314">crazy4pi314: Dr. Sarah Kaiser Twitch Channel</a></li>
<li><a href="https://www.twitch.tv/thelivecoders/about">TheLiveCoders: Twitch Channel</a></li>
<li><a href="https://www.twitch.tv/microsoftdeveloper">MicrosoftDeveloper: Twitch Channel</a></li>
<li><a href="https://www.oreilly.com/library/view/architecture-patterns-with/9781492052197/">Architecture Patterns in Python: O’Reilly</a></li>
<li><a href="https://realpython.com/podcasts/rpp/7/">Episode 7: AsyncIO + Music, Origins of Black, and Managing Python Releases</a></li>
<li><a href="https://www.youtube.com/watch?v=Xbl7XjFYsN4&t=2s">import asyncio: Learn Python’s AsyncIO #1 - The Async Ecosystem: YouTube</a></li>
<li><a href="https://wagtail.io/">Wagtail : The Powerful CMS for Modern Websites</a></li>
<li><a href="https://realpython.com/podcasts/rpp/159/">Episode 159: Volunteering, Organizing, and Finding a Python Community</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/django-portfolio-project/">Getting Started With Django: Building a Portfolio App</a></li>
<li><a href="https://realpython.com/courses/formatting-python-strings/">Formatting Python Strings</a></li>
<li><a href="https://realpython.com/courses/speed-python-concurrency/">Speed Up Python With Concurrency</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>
S12:E5 - How to not get bogged down in technical debt (Nina Zakharenko)
In this episode we’re talking about technical debt, with Nina Zakharenko, Principal Cloud Developer Advocate at Microsoft. Nina talks about what causes technical debt, what can happen when it gets out of control, and how we can mitigate the accumulation of that debt.
Show Links
Partner with Dev & CodeNewbie! (sponsor)
Technical debt
Hanson
HTML
Yahoo! GeoCities
Java
Python
The Recurse Center
Mainframe computer
COBOL
Technical Debt: The code monster in everyone's closet
Style guide
PEP 8
Unit testing
Code review
Git
Microsoft Azure
Visual Studio Code
PyCon US
The Ultimate Guide To Memorable Tech Talks
CFP
Open source
Nina Zakharenko
Nina Zakharenko is a developer advocate, software engineer, pythonista, & speaker.
What happens when a Silicon Valley technologist works for the government | Matt Cutts
What if the government ran more like Silicon Valley? Engineer Matt Cutts shares why he decided to leave Google (where he worked for nearly 17 years) for a career in the US government -- and makes the case that if you really want to make an impact, go where your help is needed most.
Hosted on Acast. See acast.com/privacy for more information.
The Director's Cutts
For many years Matt worked on defending the quality of Google's web search results, and you may know him as the creator of the first version of SafeSearch.As Paul noted on the show, he was seen as one of the few people with whom ordinary folks could communicate about the often inscrutable world of Google search results and rankings. You can read his blog here.
In 2016 Matt joined USDS, initially at the Department of Defense. Since 2017, Matt has served as the USDS Administrator and is responsible for setting the overall direction and strategy for projects. He has worked on everything from Healthcare.gov to online services for veterans to fraud prevention at the IRS.
Topics discussed on this episode:
The 1993 comedy film Dave, in which Kevin Kline plays a presidential body double who manages to fix government and melt the steely heart of Sigourney Weaver.
Open source as an ever growing trend, even inside of big government.
Which organization has more meeting and process, Google, or the US federal government?
See Privacy Policy at https://art19.com/privacy and California Privacy Notice at https://art19.com/privacy#do-not-sell-my-info.
#219: Take a Python tour of duty at the United States Digital Service
See the full show notes for this episode on the website at talkpython.fm/219
#115 Dataclass CSV reader and Nina drops by
Topics covered in this episode:
[play:1:03] Great Expectations
[play:5:01] Using CircuitPython and MicroPython to write Python for wearable electronics and embedded platforms
[play:11:58] How to Rock Python Packaging with Poetry and Briefcase
[play:14:59] awesome-python-security 🕶🐍🔐 , a collection of tools, techniques, and resources to make your Python more secure
[play:18:20] pydbg
Extras
Joke
See the full show notes for this episode on the website at pythonbytes.fm/115
#100 The big 100 with special guests
Topics covered in this episode:
poetry
Anthony pylama and radon
Nina Tools for teaching Python
Dan My favorite tool of 2018: “Black” code formatter by Łukasz Langa
Brett A Web without JavaScript : Russell Keith-Magee at PyCon AU
Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Extras
Joke
See the full show notes for this episode on the website at pythonbytes.fm/100
Recode Decode: Matt Cutts
Matt Cutts, the acting administrator of the U.S. Digital Service, talks with Recode’s Kara Swisher about how his team is trying to modernize government agencies and make services like Medicare and veterans’ benefits more user-friendly. Cutts spent nearly 17 years working at Google before he joined the USDS under President Obama, but says that the organization’s mission has not changed under President Trump, and its work has remained nonpartisan. He explains how even simple technological tweaks — like a progress bar or web forms — can make a huge difference for the beneficiaries of the USDS’s work, and shares his pitch for an ambitious goal that would make everyone’s life easier: “Get rid of the paper.”
Learn more about your ad choices. Visit podcastchoices.com/adchoices