Albert Sweigart, 'Logging and Testing and Debugging, Oh My!', PyBay2017

preview_player
Показать описание
Description
Logging messages, unit tests, and using the debugger are best practices, but often left out of introductory programming tutorials. As a result, beginners come away with the idea that these time-saving features are somehow "advanced" or things to be learned later on. In this presentation, Al Sweigart dispels these notions by providing quickstart guides to Python's logging, doctest, and pdb modules.

Abstract
Logging messages, unit tests, and using the debugger are best practices, but often left out of introductory programming tutorials. As a result, beginners come away with the idea that these time-saving features are somehow "advanced" or things to be learned later on. In this presentation, Al Sweigart dispels these notions by providing quickstart guides to Python's logging, doctest, and pdb modules, including:

Why beginners (incorrectly) avoid these programming best practices.
The "if you're doing this" signs that you aren't using these best practices.
The 4 lines of code you need from the logging module.
The 4 lines of code you need from the doctest module.
The 2 lines of code you need from the pdf module.
How much time you'll save, not spend, by using these not-so-advanced modules.

Bio
Al Sweigart is the author of several programming books, including Automate the Boring Stuff with Python. He releases all of his books online for free under a Creative Commons license. He lives in San Francisco, and his cat weighs 12 pounds.

Рекомендации по теме
Комментарии
Автор

Albert Sweigart PyBay2018, where are you?? :D Great talk!

nassav
Автор

Hmm, I'm wondering how come he sounds, and almost looks, like the late Carl Sagan !
Thanks for great stuff, which I'm in need right now !!

hamjii
Автор

Changed my life, thank you soo much :)

Bbduyg
Автор

First commenter begins speaking and I’m finding his condescending voice mildly off-putting. Then his question turns out to be a statement that the talk didn’t include the details he is personally familiar with. Then I realize, hasn’t this guy been unable to control himself before? Yup. “Stop writing classes” 2012, he chimes in to argue relentlessly until a moderator has to step in, picking a bone with the speaker over the hypothetical situation in an example slide.

Whoever you are, consider saving it for a personal comment after the talk. Question and answer is an opportunity for people to be helped, not for you to consume their time uselessly griping. Embarrassing. Frustrating. Had to say something to discourage people from this rudeness.

josephknightcom