10 Matching Annotations
  1. Mar 2024
    1. Thinking about how you will observe whether things are working correctly or not ahead of time can also have a big impact on the quality of the code you write.

      YES. This feel similar to the way that TDD can also improve the code that you write, but with a broader/more comprehensive outlook.

  2. Dec 2022
  3. Dec 2021
  4. Nov 2020
  5. Apr 2020
    1. The practice of test-driven development is where you actually write the tests first, then write the code to pass more and more tests until all of them pass.

      Essence of TDD

    1. It’s still a good idea to keep your code in three different buckets, and keep these buckets isolated from each other:Display/UI ComponentsProgram logic/business rules — the stuff that deals with the problem you’re solving for the user.Side effects (I/O, network, disk, etc.)

      How do I organize my code like this? What's the directory structure look like.

  6. Mar 2018
  7. Oct 2017
    1. Test first development, also known as Test Driven Development (TDD) is a development style in which you write the unit tests before you write the code to test.

      Actually, there's a lot of debate regarding this exact distinction. It's a question of whether Test First Programming is the same as Test Driven Development.

      The answers lie, however, into the intent of approach.

  8. Oct 2016
    1. We shouldn’t actually care what the target/action values on the bar button item are. We should only care about what happens when it is pressed. Everything else is an implementation detail

      "We should only care about what happens when it is pressed"

      We have target and action in the button, so we don't need to test for target and action separately, we can simulate the behavior instead. We shouldnt cae about implementation details

  9. Sep 2016