|
|
|
|
|
by randomdata
5043 days ago
|
|
Your code doesn't actually seem to do anything, so a comment would either be contradictory to the code, which is confusing, or explain why your code does nothing, which is silly. I would argue that in this case, it is far better to just understand the code and then fix it appropriately. A comment would leave you second guessing. def auto_increment
self.count += 1
end
(though, for the purposes of self documenting code, count probably is not a great variable name either) |
|