• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class Names and Patterns

 
Cleverson Schmidt
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends
I would like to know what are your opinions about putting the name of a Design Pattern in a class that made use of it. For example, I'm working on my assignment, URLyBird, and I've created an interface between the client and the Server called Services. As this class is a Fa´┐Żade to the DB implementation class do you think it is a good idea to call it ServicesFacade? Or call the GUI classes URLyBirdView, URLyBirdController, ...
Maybe this could increase the maintainability as future developers could identify the role of these classes in the project just looking at their name.
I'm confuse. What do you think?
Thanks in advance
Cleverson Schmidt
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, most of the time you will use the Pattern as part of the Class name, it does make things more readable. I mean if I was trying to find your controller, and you used other names, I would have to look at every class and figure out if that was supposed to be your controller. So you are fine in combining names.
Mark
 
Cleverson Schmidt
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic