[Cs3] on code refactoring in visual studio and getters/setters

Mikhail Nesterenko mikhail at cs.kent.edu
Mon Feb 24 20:53:10 EST 2014


CS3 students,

There were a couple of questions after class.

1. Visual studio's (unlike Eclipse's) C++ refactoring capabilities
   are rather limited. However, Visual Studio provides renaming
   capability with a free ad-on to Visual Studio 2013

2. In particular it does not (even try to) automatically generate
   getter and setter functions. However, this might be a good thing
   as excessive use of getters/setters is a sign of poorly structured
   code and lack of encapsulation.

   Here is an article on that:

   http://typicalprogrammer.com/doing-it-wrong-getters-and-setters/

Thanks,
-- 
Mikhail


More information about the cs3 mailing list