Balance between code efficiency and code readability

List m = getList();
m.get(10);
m.get(11);

Is the code above readable? yes! But is it effective? No!

Efficient and readable code requires a neat data-structure.

Efficient code requires a customized data-structure or a customized routine base on simple data-structure, both are not so readable.



你可能感兴趣的:(Balance between code efficiency and code readability)