现在的位置: 首页 > 综合 > 正文

Balance between code efficiency and code readability

2013年12月03日 ⁄ 综合 ⁄ 共 249字 ⁄ 字号 评论关闭
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.

抱歉!评论已关闭.