Readability and efficiency.
If you are developing with so many persons, you should focus on readability more than efficiency.
Lets take an example. This was a real situation.
We used one character byte as mms Info which has an attachment files number and information of mms or not mms. The last one bit means whether the message is mms or not. For example if the value is 21, it means two attach files and mms message.
You dont have to understand in detail. My meaning is one variable has two or more meaning. Why did we use this way? Data was transferred by bluetooth and it consumes much battery. So we should spend little transferring as much as possible.
But it caused the low readability. If you develop something, so many persons are involved. You may think kind of comments could resolve this issue. But comments could be deleted at specific time because this causes no compilation error. So, in that case, separating variable may be right. I think so. For code readability is more important than small efficiency especially in case of cooperation development.
'잡담' 카테고리의 다른 글
lessons learned from wingtip notification project (0) | 2014.04.30 |
---|---|
소프트웨어 교육이란? (0) | 2014.04.28 |
[수식표현] 적분 (0) | 2014.04.16 |
스피노자가 들려주는 윤리 이야기 (0) | 2014.04.12 |
유시민 제9강 부동산투기와 조세정책, 10강 집단적 의사결정 (0) | 2014.04.08 |