Open JakeWharton opened 1 year ago
@JakeWharton should we go across all generics in the repository or just WidgetApplier.kt
?🙈
I think the whole repository needs this
@JakeWharton I think it's essential, too. I will update my draft PR to this scope.
On another subject: can I contribute to any open issue, or should I stick to the pr-welcome label?
If you're doing the whole repo, I would consider only doing one type parameter at a time (such as all the ones which represent view type) in individual PRs. Otherwise if all are done at once I suspect it will be such a large PR that it will be impossible to review in detail.
And yes, any issue is fair game. If it doesn't have PR welcome it usually just means that it's larger in scope.
If you're doing the whole repo, I would consider only doing one type parameter at a time (such as all the ones which represent view type) in individual PRs. Otherwise if all are done at once I suspect it will be such a large PR that it will be impossible to review in detail.
That is helpful, I will follow this 👌
And yes, any issue is fair game. If it doesn't have PR welcome,it usually just means that it's larger in scope.
Thanks for the clarification, I would love to see contribution guidelines. It can help and encourage people to participate
We had one of these a while ago but it has devolved a bit.
WidgetApplier.kt
is a mess, for example.I think we should do:
A
- treehouse App serviceV
- native View typeW
- subtype of a WidgetWe also could do
AppT
,ViewT
, andWidgetT
to really be unambiguous and free up single-letter ones to be whatever, especially in the light of the next sentence.Otherwise prefer
T
. We have someR
s for return value andE
s for elements. There's also aP
for aWidget.Provider
subtype. The lint tooling has a function withI
tems,K
eys, andG
roups.