Balance between code efficiency and code readability

阅读 45

2023-06-15


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.



精彩评论(0)

0 0 举报