Sunday, May 4, 2014

structure of the code

Let's start with some code, I believe most people are familiar with the style, these are the code similar to what can be found in most people's codebase.

The method is so long and with so much details. It is very difficult to understand the author's intention and how business requirement is mapped to code.

To better map business requirement into code, we need to have some smaller classes to form an easy to follow structure, or an application architecture as used by many people,
Impressed? You can find more code example here,
https://github.com/yujunliang/compalgo

No comments:

Post a Comment