Development log - red & black (1) (轉)
Development log - red & black (1)
Red
Software that easy to test.
By Zhang Hui
Mr Z add some in the de version of software. He even add a small
console for the application. It's more easy for him to do some kind of testing.
For example, if we want to test the case of what display when there are over
10000 message. No one will send 10000 message to do such test, it's so expensive
and time-consuming! What he does is add a small language parser in the application.
When inputting s can be parsed by the small language engine, it will trigle
some actions. Because it supports parameters, it's very handy for us to do various
testing. What a great a! Supposing we add "add inbox 1000", that means to create
1000 messages and store them in inbox. It's so easy, isn't?
Yesterday, I read the chapter of "unit test" of "Dive into ". From the example,
we know that the more early we add "unit test", the more we can get from them.
By "testing first", we can avoid over-design, we can release ealier, we can code
with full confidence, we can code in a graceful way, we can refactor the code anytime,
anywhere without worry about break something else.
To write a programe is not difficult, While it's much more difficult and complicated
to finish a "software". The core idea of develo software is to ensure quality,
meet schedule, within bugdet. So the core of the core is the software quality.
An procedure or mechanism is needed to ensure quality. It's natural for me to adopt
the idea of "test driven development" or "test centered development".
The mature level of development is decided by the level of testing.
===================================
版權所有 copyright 張輝
本文可原封不動的複製和自由地再發行,但在複製和再發行的複製中必須
原封不動地含有這段版權宣告。
.NET">http://forestsong.blogone.net
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10748419/viewspace-963075/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [Black Watch 入群題]PWN 1
- Python Geospatial Development reading note(1)Pythondev
- log1按鈕介質頁面跳轉
- trick整理:序列二分log^2轉log
- Math.log1p()
- POJ 1442 Black Box
- C. Black Circles
- game development -- flowGAMdev
- Development Studio 2021,dev
- The Red Button
- listener_scan1.log、listener.log監聽日誌清理
- Red Giant Trapcode Suite for Mac 中文版 支援M1UIMac
- Web Development Job in 4Webdev
- Black Out for mac (影像模糊工具)Mac
- ABC 322 E Product Developmentdev
- SAP EPD - Enterprise Product Developmentdev
- Apache JMeter 5.4.1 Build DevelopmentApacheJMeterUIdev
- TGDC | Evolving AAA Game DevelopmentGAMdev
- ORA-00600 kcrf_resilver_log_1CRF
- Kioptrix Level 1(Apache/1.3.20 (Unix) (Red-Hat/Linux) mod_ssl/2.8.4)ApacheLinux
- mininet Red-ecn
- ORA-01511 error in renaming log/data files ORA-00261 log 4 of thread 1 is beingErrorthread
- CF1626E Black and White Tree
- 使用 Black 自由格式化 PythonPython
- webpack 開發模式管理 DevelopmentWeb模式dev
- SEHS4517 Web Application DevelopmentWebAPPdev
- IEMS5731 Software Design and Developmentdev
- Log4j 1.x 將直接升級到Log4j2
- Red Hat 7.5 Yum Replacement
- Review: Red Star over ChinaView
- Red Giant Magic Bullet SuiteUI
- [Memory Leak] 1. console.log cause memory leak
- log4j日誌輸出級別(轉)
- 【java學習】JDK(Java Development Kit)JavaJDKdev
- EVASH Ultra EEPROM Development Board User GuidedevGUIIDE
- The development prospect of SAP consultants in China in the next decadedevROS
- P5624 [Celeste-A] Black Moonrise 題解
- 如何使用 Black 程式碼格式化工具
- 開放世界冒險 ARPG《Black Skylands》前瞻