官术网_书友最值得收藏!

Why components?

Component-based design is powerful, especially when we use immutable data and unidirectional data flow. It forces me to stop thinking about how different technologies or tools interact. It gets me thinking about the single most important function of each interface element.

When we start building an application, it's tempting to think of every piece as part of the whole. All interface elements blend into the same big picture, until it becomes so big that separating parts of it out seems impossible.

Imagine you had to build a space ship. What a huge task! You'd need some rocket boosters, a couple of wings, life support, and so on. Now consider how you would approach it if one of the constraints was that each moving part of the space ship would need to be inpidually tested.

Testing is the great pide between designing systems as a whole and designing systems as large collections of small pieces. Component-based design is fantastic because it makes sure that every part is testable.

主站蜘蛛池模板: 鹰潭市| 贵港市| 林甸县| 九龙坡区| 金塔县| 拉萨市| 科技| 玛曲县| 永顺县| 许昌县| 葫芦岛市| 工布江达县| 康马县| 宁陵县| 漾濞| 安丘市| 邯郸市| 鄄城县| 沧源| 新余市| 若羌县| 濉溪县| 宜宾市| 安国市| 辉县市| 毕节市| 沧源| 金川县| 同仁县| 泊头市| 淮安市| 万盛区| 县级市| 赫章县| 沙雅县| 巴马| 邢台市| 宕昌县| 特克斯县| 汉沽区| 河东区|