-
Notifications
You must be signed in to change notification settings - Fork 36
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
Internal code architecture improvement #53
Comments
Yep, if you want to do this — I'll be happy to help you :) So, let's do this? |
Alright! :) |
We should start with easiest things, to feel how it's good to use great tools and throw away boilerplate and bad code :) So, suggested plan: Please read carefully all documentation, you'll find that I suggest you to refactor all fragments and replace Here is the first task: #54 If you got any questions -> feel free to ask me here or via email :) Waiting a pull request from you! Hope you'll love P.S. please carefully test all parts refactored with I'll keep this issue as plan, after resolving first issue, I'll add next part of |
Okay, seems nice to me :) |
You'll love it :) |
Next step: Here is the documentation http://square.github.io/otto/, please read it carefully and think about places, where you can use it :) I'd suggest to use it instead of Btw, you can create custom It's not Android-only pattern, you can use EventBuses in any Java apps, you'll love it! Here is the issue: #60 |
Also, will be great to switch to Retrofit + OkHttp + Gson for communicating with Last.fm API Retrofit is such an awesome library, you just need to write a Java Interface with annotated methods and it will generate an implementation which'll be able to do Http requests to any endpoint Please read documentation carefully and try to switch one of the requests to the Retrofit (it uses Gson by default to parse JSON, so response type must be marked with @serializable Gson annotations, if you'll got issues or questions — just ask me :) The issue: #66 |
Sounds nice, I'll give it a try after fixing and merging #68 |
A few other things that might be useful:
|
@ilya-murzinov, @regisd what do you think about StorIO https://github.com/pushtorefresh/storio? I suggest use For the first refactor we can use it without RxJava, later we can switch to Rx too. As StorIO developer/maintainer I can help with any questions :) |
@artem-zinnatullin, yes, I think it's a good idea. |
@ilya-murzinov great, I think it'll be better if you'll do it and give me feedback about APIs and documentation :) |
Yes, of course! |
@artem-zinnatullin, you've mentioned once in #48 that WAIL has bad architecture. So may be it's time to improve it using tools you listed?
Or it's not the part of your plan for WAIL? :)
The text was updated successfully, but these errors were encountered: