Fundamental data type -- Code complete reading notes(12)
2006-05-21 20:18
465 查看
整数:检查整数溢出
浮点数:避免数量级相差巨大的数之间的加减运算,避免等量运算,10个0.1相加不一定等于1.0
布尔:用布尔变量来简化复杂的判断
枚举:第一个元素留做非法值
数组:用集合、栈、队列代替数组
浮点数:避免数量级相差巨大的数之间的加减运算,避免等量运算,10个0.1相加不一定等于1.0
布尔:用布尔变量来简化复杂的判断
枚举:第一个元素留做非法值
数组:用集合、栈、队列代替数组
相关文章推荐
- Unusual data type -- Code complete reading notes(13)
- High-Quality routines -- Code complete reading notes(7)
- Organizing straight-line code -- Code complete reading notes(14)
- Table-Driven method-- code complete reading notes
- the thinker of code complete -- Fundamental Data Types
- Design in construction --Code complete reading notes(5)
- Working classes -- Code complete reading notes(6)
- The pseudocode programming process--Code complete reading notes(9)
- The software-quanlity landscape -- Code complete reading notes
- Defensive programming -- Code complete reading notes(8)
- General issues in using variables -- Code complete reading notes(10)
- Statements -- Code complete reading notes
- Collaborative construction -- Code complete reading notes
- Welcome to software construction-- code complete reading notes(1)
- The power of variable names -- Code complete reading notes(11)
- Developer testing -- Code complete reading notes
- Refactoring -- Code Complete reading notes
- Metaphors for a richer understanding of software development -- Code complete reading notes(2)
- Measure twice,cut once:upstream prerequisites--Code complete reading notes(3)
- Code Complete—第十二章 Fundamental Data Types 基本数据类型