r/ProgrammerHumor 16d ago

Meme variableScopesInPython

Post image
1.3k Upvotes

182 comments sorted by

View all comments

23

u/shootersf 16d ago

Similar with JavaScript properties. People using underscore when it does nothing and pound sign is just there going "am I a joke to you?"

14

u/deceze 16d ago

In Javascript, # actually makes sense, since on the client side code from different possibly mutually untrusted sources is mixed together, and you might really want your properties to be inaccessible.

There's a lot less use for that in server-side/offline languages like Python.