programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
canpolat to ProgrammingEnglish · 1 year ago

Canon TDD

tidyfirst.substack.com

external-link
message-square
2
link
fedilink
15
external-link

Canon TDD

tidyfirst.substack.com

canpolat to ProgrammingEnglish · 1 year ago
message-square
2
link
fedilink
Write a list of the test scenarios you want to cover Turn exactly one item on the list into an actual, concrete, runnable test Change the code to make the test (& all previous tests) pass Optionally refactor to improve the implementation design Until the list is empty, go back to #2
alert-triangle
You must log in or register to comment.
  • robyoung@beehaw.org
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Really!? We’re still doing GOTOs in 2023? That should just be a for loop over the collection of tests you want to write.

    • shnizmuffin@lemmy.inbutts.lol
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      Time to break out the ol’ do-while.

Programming

programming

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 60 users / day
  • 711 users / week
  • 2.88K users / month
  • 7.08K users / 6 months
  • 2.71K local subscribers
  • 20.1K subscribers
  • 2.17K Posts
  • 34.9K Comments
  • Modlog
  • mods:
  • snowe
  • Ategon
  • MaungaHikoi@lemmy.nz
  • BE: 0.19.11
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org