-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Classes doing work beyond their scope #70
Comments
-yes, |
I'm adding ManagerCommands.deQueue to the list. |
Cancel commands is a very important function. It removes all obsolete commands. It avoids a large amount requests. |
I agree, cancelling commands is important. |
the managerCommands manages the commands. This is the best place to decide which command should be execute. |
I think is removed
I think is removed
Several thinks are changed can you updated your issue? |
Seems like all the issues I pointed out were solved. Closing. |
There's a recurring design issue in the current implementation. A lot of classes do no limit themselves to their role and undertake actions out of their scope. This is very detrimental to the reusability of the classes.
Let's take WMTS_Provider as an example.
The role of the WMTS provider is to implement the WMTS protocol. You give it server information, a tile coordinate, and it gives you an image. Nothing more, nothing less. No assumptions should be made on how the developer will use the class.
Currently, the WMTS provider has:
I think the architecture of iTowns as it is now has potential. But the way some classes are implemented makes it really difficult to use and to integrate foreign code into it.
Partial list of classes affected by this problem, followed by the functions that are out of place:
Debatable:
The text was updated successfully, but these errors were encountered: