David Ramsey
Posts: 34
Nickname: dlramsey
Registered: Apr, 2002
|
|
Re: Back to school for class...
|
Posted: Feb 6, 2004 9:22 AM
|
|
You'll find this sort of code in shops that had heavy Structured Analysis and Design backgrounds. These shops often did Fortran or C for many years. Later they switched to C++ on PCs and developed code using MS Dev Studio. Now Dev Studio is a powerful tool... if you are well versed in OOAD and OOP. If you're not, you end up thinking you are an OO programmer while you continue writing procedural code.
Then these folks migrate to Java and their failure to have made the paradigm shift to OO is laid bare. What you are seeing is someone treating an object as though it were a C struct. They have business logic scattered across creation and all of it manipulates the object like a struct. However, since someone told them that Java objects use setters and getters and make fields private, they also use setters and getters, resulting in code that just makes you want to cry.
I know. Been there, done that.
|
|