Skip to content
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

FP Refactor #28

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open

FP Refactor #28

wants to merge 44 commits into from

Conversation

raulraja
Copy link

@raulraja raulraja commented Mar 1, 2017

DO NOT MERGE.

This is a sample proof of concept refactoring the app to use a monad transformer stack pushing Kotlin as much as it can go with FP and functional combinators. This PR will remain as such as is not intended to be merged but showcases a different style of coding in Kotlin similar to that found in Scala or Haskell.

The obvious limitation is the lack of support for Higher Kinds having to implement manually most of the combinators found on types such as EitherT[F[_], L, R] as part of the Result type.

raulraja and others added 21 commits February 23, 2017 04:00
Work In Progress: Migration of artist logic to the new FP approach
Improved Gradle build configuration and updated many dependencies
… code. Partial corrections to tests (still do not work / compile)
Initial attempt to refactor datasets (now datasources) and repository…
…he biggest missing part is a proper implementation of CloudAlbumDataSource::requestTopAlbums()). Removed unused classes and libraries for buses, interactors and jobs. Some additional minor changes and simplifications.
Partial conversion of the top albums logic to the functional style (the biggest...
…roject code using the default Android Studio 2.3 code style to make the project more coherent in terms of formatting.
pakoito added 3 commits March 5, 2017 02:55
@jrgonzalezg jrgonzalezg force-pushed the rr-fp-refactor branch 2 times, most recently from 257f23e to 9ccc98f Compare March 5, 2017 16:02
@raulraja
Copy link
Author

@jrgonzalezg thanks for keeping this up to date!

…ine enabling from build.gradle files to gradle.properties
…mmutable proposal that are based on PCollections
@JorgeCastilloPrz
Copy link

How is this going ? Could you add some kind of detailed description for the current status please?

I am working on some playground project and I have taken a lot of logic from this PR but I got some stuff broken and cannot figure out what's exacly happening :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants