-
Notifications
You must be signed in to change notification settings - Fork 120
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
Update new parameter collector for BRouter app #634
Conversation
Lots of duplicate code gone for good! 👍 ... however, I'm a little afraid that this might break something, though I haven't found anything yet. |
Indeed it has the potential to run into problems. My ideas on this situation:
In my opinion, the server is not critical. It could change the library very quickly if something doesn't work properly. And these kind of changes can be easily tested by comparing the results - there should be no change. But for the app an update on trouble will take some days. And this is not easy on testing. It could be a good way to use a beta app via the Play Store to have more test with users. But we can't publish an update without any user relevant changes. |
If it improves the readability of the code, I'm in.
I think we should try to break neither of the two. We can't know who is using the server in what way. |
It only clears the OsmTrack from formatting and move it to Gpx, Kml, Json, Cvs classes. But code is as it was before. Map matching will need 5x5 OsmTracks to compare each point with next.
Yes, of course, but how do you achieve this goal? |
Is there a new idea to protect the server lib or/and the app from breaking? |
Getting rid of duplicated code is always desirable because it's less code to maintain :) Thanks for your effort! The usual approach to ensure refactoring doesn't break functionality is to write tests before refactoring which represent the desired behavior. Unfortunately most BRouter classes can't be tested in isolation because of close-coupling with other classes which makes writing unit tests really hard. Usually coverage information is also used to have a metric/information which parts of the code are covered by tests. |
@zod |
No, and I also do not understand this part of the code well enough to be of any help in this matter. Sorry. |
Use the new parameter collector also in app context and remove old param logic and routines.