Closed kanytu closed 6 years ago
Looks pretty good! It's obvious you have experience in Java / Android by the way you write your code, it's much more Java-ic than mine GG!
In terms of results, it looks good, three comments:
PlayerStandardTip
anymore. Right now, it's only used by DoubleSmite
, NoSmite
and FullAPDTeam
. My strategy here would be to use ChampionView
everywhere and remove PlayerStandardTip
completely (which will also make the remaining tips easier to understand).ChampionView
to something more generic, such as BorderView
? I guess that's up for discussion.And obviously, thank you for your help already :)
So I was reading your review and here are some thoughts:
ChampionView
into a BorderView
it's okay, but it will not make sense to set a champion in that border view anymore and I will have to refactor the holders to allow this change.PlayerStandardTip
will sort of break your tips structure right now. If you remove it, the ChampionStandardTip
will be used instead, and it will have to be renamed since it will not contain always champions. For that, it is necessary to create new logic in the tips adapter because, when creating a new tip, we will have to pass either an image, or a champion. I don't suggest this change. In my opinion, different tips need different holders. For different holders you need different objects that populate the views. I think the player
should be renamed to image
instead, creating an ImageStandardTip
and ChampionStandardTip
extends from this one.So, in order to continue I need to your know your opinion on this. I'm okay with the Tip refactor in order to make it cleaner to understand and extend. Just let me know. Otherwise, I can still perform the minor changes you asked and we think about the rest in the future.
One more thing. I've noticed your server repository has been removed/set to private. Was that a strategic decision or something else? I'm asking this because I was planing to add some more tips like "Your matchup runes" and that requires some server logic. If you still want to keep it this way, where can I add suggestions and/or issues to it? (like this one, or adding the ad/ap to the counter's view)
Hey there,
I like your idea of an ImageStandardTip
and a ChampionStandardTip
extending the first one, let's go this way :)
Once this is done, happy to merge!
Regarding your last question, I'll send you a link to the server
(I've sent you access to the server. I removed it for various reasons, one of them being it's quite hard to set up correctly since it relies on Mongo, Postgres AND Redis... feel free to drop me an email at neamar@neamar.fr if you have any question)
@kanytu Still interested to come back to this PR? It would be a valuable addition :)
I'm gonna close for now, but if you do have time to come back to this please do! I'll be happy to merge ;)
Current approach:
Sorry if this fix is a bit intrusive. Let me know your opinion. Feel free to provide code review and suggestions. Have a nice day.