You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was checking your code and i want to suggest you something that can be helpful to you. You can use the design Pattern Iterator in most of your classes for example the class GooglePlace is frequently traversed in the project. Instead of using many For Loops you can implement the structure of this pattern with an interface Iterator that declares the operations required for traversing the collection and another interface where you can have the method Iterator that can be implemented in a concrete class in this case GooglePlace. But this Iterator interface can be used again with another collection you just have to make another concrete class and modify what you need. Have a good day.
The text was updated successfully, but these errors were encountered:
I was checking your code and i want to suggest you something that can be helpful to you. You can use the design Pattern Iterator in most of your classes for example the class GooglePlace is frequently traversed in the project. Instead of using many For Loops you can implement the structure of this pattern with an interface Iterator that declares the operations required for traversing the collection and another interface where you can have the method Iterator that can be implemented in a concrete class in this case GooglePlace. But this Iterator interface can be used again with another collection you just have to make another concrete class and modify what you need. Have a good day.
The text was updated successfully, but these errors were encountered: