this post was submitted on 27 Apr 2024
7 points (100.0% liked)

Memes and jokes about everything programming and CS

284 readers
15 users here now

For anything funny related to programming and software development.

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/ProgrammerHumor by /u/Same_Start9620 on 2024-04-27 14:18:17.

top 1 comments
sorted by: hot top controversial new old
[–] leggettc18@programming.dev 1 points 6 months ago

See, public variables sound easier until later you discover that more logic needs to happen when this variable changes. Maybe some logging or queueing up a database operation or something. Now you only need to change these function bodies instead of writing new ones and finding all the places that public variable was used in your code.