Beautiful Python Refactoring II - Conor Hoekstra - code::dive 2022
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- 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 TH-cam 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/cod...
Hearing Conor give a full talk about Python is almost like hearing him speak Polish
Great talk, that was so insightful. Thanks Conor.
The digressions are just great !
No way i am refactoring my loops into double-list-comprehensions, thanks
@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.
41:32 LOL