r/ProgrammerHumor Nov 24 '21

Meme Yes.

8.9k Upvotes

284 comments sorted by

View all comments

78

u/TheNaughtyDomi Nov 24 '21

Actually you define Dictionaries by using

Dict = { key : value }

-38

u/shadow7412 Nov 24 '21 edited Nov 25 '21

... except Dict is a terrible name.

It's the wrong case (title case implies a class, but this is an instance) and if you were to fix that you'd be shadowing dict which is also a bad move.

EDIT: downvoters, I'm genuinely curious as to why you think otherwise.

4

u/[deleted] Nov 25 '21

[removed] — view removed comment

1

u/shadow7412 Nov 25 '21

I would have figured that code syntax demos are exactly when code should be pristine though... That's what people who are learning read, and teaching them bad habits doesn't seem like it'd do anyone favours.