• 0 Posts
  • 3 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle

  • TDD doesn’t imply that you write all the tests first. It just mean you have to write a test before you write a line of production code.

    The idea is to ask yourself “what is the first step I need, where am I going to begin?”. You then write a test that validate this first step and fail. Then you write the code to make it pass. Once your done with that, you ask yourself: "what’s the next step? ". You, then, repeat the process for that step.

    This is a process you are going to do anyway. Might as well take the time to write some test along with it.


  • It feels like they’re trying to be a sort of “wikipedia” of every programming problem and solution.

    That is exactly what stackoverflow is supposed to be. It’s not there to answer your question about “why is my IF statement not working”, it’s there to be a resource for all developers. How is a question about your specific problem gonna helps anyone ? If you haven’t, take the time to read the “how to ask” section, it describes what kind of questions are acceptable and what kind are not.

    There is, obviously, some proper questions that should not have been deleted, but most of them are not suited for the site, as they don’t bring anything to the rest of the community.