-
Notifications
You must be signed in to change notification settings - Fork 213
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
Folder structure for RxCocoaExt addition #130
Comments
Separating the If we were to move each to separate folders, I'm not sure it would help making a mental image of the various functionalities exposed by RxSwiftExt. It seems difficult to design a one-size-fits-all rule for this. There are other examples in the framework where naming is odd, like My take on this would be to:
|
@fpillet Good thoughts, thanks :) My thought of separating was mainly in favor of RxCocoaExt - where operators and UI-related additions are entirely different and I feel like those shouldn't live in a single folder For RxSwift I sort of agree most things could live in a single folder - Even though, extensions that have static methods are still operators; in RxSwift there isn't really much of a non-operator concept, so this is more related to RxCocoa as said earlier. I'm not sure if we need a different file for each of these materialize operators... I think that could get a bit hairy, even though they are different operators so that should actually be fine. Does it mean the RxCocoa variants (if would exist) would be called ObservableType+Weak is its own issue to take care of, I agree :) Still need to think about it, but for now it can live inside the RxSwift folder as usual. So I think the folder structure I currently have in mind is
I don't think the "Ext" on each folder is needed as the project itself is already RxSwiftExt, and the folders just indicate what each folder "Extends". RxSwift follows an even more convoluted folder structure but I don't think that's at all required for the purposes of this repo: https://github.com/ReactiveX/RxSwift/tree/master/RxCocoa |
Then why not:
This was we can put stuff like ControlEvents in |
That's cool actually!
Or those would be in "Common" ? Because that would mean we have Operators and Multi-platform UI living in a single folder, which beats the reasoning of trying to separate logically (unless you have |
Description
This ticket continues discussion on one of the point form #127.
Would appreciate some opinions on what you guys would consider optimal Folder Structure and file-naming for RxSwift and RxCocoa related additions, at your spare time :)
Copying from the "Big issue":
Any opinions would be welcomed so I can move forward on this change :)
Thanks
Shai
The text was updated successfully, but these errors were encountered: