- Test-Driven iOS Development with Swift 4(Third Edition)
- Dr. Dominik Hauser
- 166字
- 2021-07-02 15:39:39
Green
In the green step, you write the simplest code that makes the test pass. It doesn't matter whether the code you write is good and clean. The code can also be silly and even wrong. It is enough when all the tests pass. The name green refers to how most IDEs indicate a passing test. Xcode uses a green diamond with a white check mark.
It is very important that you try to write the simplest code that makes the tests pass. By doing so, you only write code that you actually need and that is the simplest implementation possible. When I say simple, I mean that it should be easy to read, understand, and change. The code should always be easy to understand.
Often the simplest implementation will not be enough for the feature you try to implement, but still enough to make all the tests pass. This just means that you need another failing test to further drive the development of that feature.
- 簡單高效LATEX
- Python自動化運維快速入門
- HBase從入門到實戰(zhàn)
- Web Application Development with R Using Shiny(Second Edition)
- Windows Forensics Cookbook
- C程序設(shè)計案例教程
- UML 基礎(chǔ)與 Rose 建模案例(第3版)
- 劍指Java:核心原理與應(yīng)用實踐
- ExtJS高級程序設(shè)計
- Learning Apache Karaf
- Python 3.7從入門到精通(視頻教學(xué)版)
- Fast Data Processing with Spark(Second Edition)
- .NET 4.5 Parallel Extensions Cookbook
- SEO教程:搜索引擎優(yōu)化入門與進階(第3版)
- Learn Linux Quickly