this post was submitted on 06 Aug 2023
609 points (97.4% liked)

Programmer Humor

19728 readers
101 users here now

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.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 year ago (1 children)

As long as you do all your lookups with dicts or sets performance is pretty decent for smaller workloads.

[โ€“] [email protected] 1 points 1 year ago

Python is secretly a functional-paradigm language. If you're not making liberal use of comprehensions instead of loops (especially loops with LBYL conditions in them), you're doing it wrong.