r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Sep 23 '19

[deleted]

20

u/nelusbelus Sep 23 '19

It could be, it could be that you mistyped it and it used the member's variable instead

0

u/[deleted] Sep 23 '19

[deleted]

9

u/fushuan Sep 23 '19

It's a warning, and not removing unused variables is horrible for maintaining the code. Don't write garbage code.

1

u/[deleted] Sep 23 '19

heh I was gonna say. I guess you could comment out unused vars, but why? Especially if you're jsut going to implement them in the next few hours, it's nice to have the autocomplete there without having to fuck around with comments