3 ms·
One (maybe stupid?) reason why I really like getter/setters has nothing to do with encapsulation, but that it makes it easier to search for places where a varia
by coffeeaddicted 14y ago
One (maybe stupid?) reason why I really like getter/setters has nothing to do with encapsulation, but that it makes it easier to search for places where a variable is changed. Often you have lots of getFoo and little setFoo functions - so just searching for "Foo" will return lots of results while "setFoo" helps me finding those faster.
- Too 14y agoMost editors with an indexer solves that automatically with "find all references". They can usually even order by "read occurrences" and "write occurrences"
- coffeeaddicted 14y agoVS2010 and C::B both don't seem to allow that ordering. So not a solution for me, but certainly could be other IDE's support that.
- eru 14y agoA only slightly more complicated regex can look for Foo on the left-hand side.