Clean Code 笔记 (2) Function

Introduction

function is what we do.fisrt container put codes in. how long ?20,30lines?

there is a simple rule to follow.

how to find classes by getting your function at right size.

do one thing , do......

继续阅读

Clean Code 笔记(1)Name

Reveal Your Intent

use intent-revealing name, if your need a comment ,that's not a good name.

bad:

int d; // elapsed time in days

good

int elapsedTimeInDays;

Descpribe Your P......

继续阅读