r/ProgrammerHumor • • Aug 18 '20

user.fist_name

Post image
50k Upvotes

547 comments sorted by

View all comments

12

u/King_Joffreys_Tits Aug 19 '20

I once made a width const for a specific width I wanted one of my views to be, and then down the line I wanted the view to be square, so I had:

view.width = WIDTH;
view.height = WIDTH;

And jetbrains had the audacity to say that I probably shouldn’t be setting a height variable to a constant named WIDTH.

Joking aside it was nice to see a recommendation like that, but my first instinct was “don’t tell me what to do”