Teach the old dog new tricks

I have an excellent manager who was once a master of procedural coding. Now he is faced with a management team that uses object-oriented programming in .NET and Java. He is struggling to understand the many models and terminology that we are discussing. I wonder what the members of SO survived by helping others in this transition.

I am also looking for examples of wonderful procedures โ†’ OOP that can show him how to rewrite procedural code as OOP. I gave it the opposite, that is, I took the OO code and turned it into a procedural one, but I am looking for code examples that may have used others that were effective for learning.

Finally, any books that people can recommend that are written for people going through this transition will be appreciated.

I was not sure if this was a community wiki. If so, I can change it.

Thanks!

+4
source share
3 answers

Martin Fowler Refactoring The book is all about how to take procedural code and reorganize it so that it is more object-oriented in small, manageable steps. I found this very useful for everything that you describe. If I remember correctly, all examples are presented in Java, but they are easy to apply to other environments.

+6
source

I never understood why people talk about OOP or a procedure as if they are mutually exclusive. I mean, in OOP you have classes, etc., but class methods are usually procedural in style. These are just fancy function calls. I have used C / Pascal for many years, and most of this material is still applicable in OOP languages. There will be enough examples in any intro version of Java or .NET to bring it to speed according to the basic OOP terminology.

+2
source

My best experience has been with code discussion. Assuming you have code reviews or project meetings, these are settings in which it is most likely that the constant will be the most reliable.

(Assuming you're doing OO design really well, and not just processing procedural code in namespace classes, but Fakler's book โ€œRefactoringโ€ will diagnose you well.)

Note. Not necessarily CW, IMHO.

0
source

All Articles