Dan O
Sep 22, 2023

--

Yeah, I have a junior programmer friend that just used your article in order to explain to me that she needed to learn to remove all of her loops!! because she was not using what made Python special. (like generators!)

specious introduction of a generator to remove a loop, or adding a function merely to convert a loop into a comprehension are just a terrible ideas!

I would agree that finding ways to remove nested loops, or ways to convert naturally simple loops into comprehensions is a good idea. but that is about it. The rest of the ideas here feel more like anti-patterns to me.

--

--

Dan O
Dan O

Written by Dan O

Startup Guy, PhD AI, Kentuckian living in San Fran

No responses yet