cross-posted from: https://lemmy.world/post/19849935
Anything that's not an integer or a range doesn't belong inside []. Much more readable to use zip, map, filter, etc. And more powerful.
[]
EDIT: that was meant for indexing lists. Strings inside [] for indexing ducts are fine.
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Anything that's not an integer or a range doesn't belong inside
[]
. Much more readable to use zip, map, filter, etc. And more powerful.EDIT: that was meant for indexing lists. Strings inside
[]
for indexing ducts are fine.