Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives
High Availability and Disaster Recovery: Concepts, Design, Implementation
a question from quora
According to both MVC and MVP the presentation layer consists of view objects, and application logic consists of controller objects (we will use “controller” name instead of “presenter” in MVP). For each view object a corresponding controller exists and vice versa. And although MVC and MVP are based on a common 3-tier principle: views process only presentation needs and controllers handle application logic, these patterns have two major differences:
https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel
int NumberOfSetBits(int i) { i = i - ((i >>> 1) & 0x55555555); i = (i & 0x33333333) + ((i >>> 2) & 0x33333333); return (((i + (i >>> 4)) & 0x0F0F0F0F) * 0x01010101) >>> 24; }