Skip to content

StudyIntraScientica/Hacker-News

Repository files navigation

Hacker-News

Just another Hacker News android apps from SIS

For the API please follow this link https://github.com/HackerNews/API

Standard code for variable name, class name, method name, bracket position, etc please follow this one http://google.github.io/styleguide/javaguide.html

The architecture of this application are based on two programming models:

  1. Functional Reactive Programming. This programming model powers almost all the layers in the application, please read this one https://github.com/ReactiveX/RxJava/wiki
  2. Benih style programming, please check this out link for detail http://zetbaitsu.github.io/Benih/

These programming models enables us to focus on key points:

  1. Make the simplest code but still powerfull, no more one hundred line of fucking code in activity or fragment :v

  2. Easy to mantain, readable, declarative and multi threading so don't fucking with UI thread.

  3. And make beauty code because code is like a poem.

Layers

To implement separation of concerns, there are several layers on this application. Depending on the complexity of its implementation, each feature will use 1 to 4 layers.

Those layers are:

  1. The Presenter layer
  2. The Controller layer
  3. The Storage layer
  4. The Network layer

The communication flow between those layers are strictly sequential, in the sense that the larger number of the layer won't be succeeded by the smaller layer number. For example:

  1. Presenter layer -> Controller layer -> Network layer is permitted
  2. Presenter layer -> Network layer -> Controller layer is not permitted

Other Notes

TODO

About

Just another Hacker News android apps from SIS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages