Beautiful Python Refactoring II - Conor Hoekstra - code::dive 2022
Vložit
- čas přidán 11. 12. 2022
- Beautiful Python Refactoring II
About the speaker - Conor Hoekstra
Conor (he/him) is a Research Scientist at NVIDIA working on array programming models and languages. He is extremely passionate about programming languages, algorithms and beautiful code. He is the founder and organizer of the Programming Languages Virtual Meetup, he has a CZcams channel and is the host of two podcasts:
• ADSP: Algorithms + Data Structures = Programs
• ArrayCast
Conor is also an avid conference speaker. You can find all of Conor’s conference talks here: github.com/codereport/Content... - Věda a technologie
Great talk, that was so insightful. Thanks Conor.
The digressions are just great !
Hearing Conor give a full talk about Python is almost like hearing him speak Polish
@code_report in 45:40 why not multiply the inner list instead list comperhansion
If you multiply the inner list, you'll get a list containing 15 times the same mutable list object. You won't be able to modify one later without changing the others, because there will be no other list.
The first multiplication is not a problem here, because strings are immutable in Python.
No way i am refactoring my loops into double-list-comprehensions, thanks
41:32 LOL