tubeshowcase●1,682,114 videos♡ My collection 0
← Learn to Code

Learn to Code51:02

It Really is Easier to Ask for Forgiveness (than Permission) • Naomi Ceder • GOTO 2019

GOTO Conferences ↗

From the creator

This presentation was recorded at GOTO Chicago 2019. #GOTOcon #GOTOchgo http://gotochgo.com Naomi Ceder - Chair of Python Software Foundation ABSTRACT It's a Pythonic maxim that "it's easier to ask for forgiveness than permission" and Pythonic code is written with a strong preference for attempting an operation and raising exceptions as needed. This contrasts with many languages which take a "look before you leap" approach where conditions, types, and values are checked in advance. This tendency to raise exceptions first and ask questions later strikes coders from other languages (and even some Pythonistas) as reckless, strange, and inefficient. Wouldn't it be "better" to do a little checking and avoid exceptions? Exceptions can't be intended to be used so frequently, can they? Surely raising so many exceptions results in slow and inefficient code? This talk will address all of those concerns. We'll show how and why Python's approach is a strength, not a weakness, which makes Python more expressive and flexible. We'll also see that raising exceptions is integral to Python, and underlies many common features of the language. Finally, we'll look at some simple tests that show that the Pythonic use of exceptions usually is faster [...] Download slides and read the full abstract here: https://gotochgo.com/2019/sessions/711 https://twitter.com/GOTOchgo https://www.facebook.com/GOTOConference https://www.linkedin.com/company/goto- http://gotocon.com #python #programming Lookin

Published 2019-08-20 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code