Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 37101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:29:52+00:00 2026-05-10T14:29:52+00:00

Lots of people talk about writing tests for their code before they start writing

  • 0

Lots of people talk about writing tests for their code before they start writing their code. This practice is generally known as Test Driven Development or TDD for short. What benefits do I gain from writing software this way? How do I get started with this practice?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:29:53+00:00Added an answer on May 10, 2026 at 2:29 pm

    There are a lot of benefits:

    • You get immediate feedback on if your code is working, so you can find bugs faster
    • By seeing the test go from red to green, you know that you have both a working regression test, and working code
    • You gain confidence to refactor existing code, which means you can clean up code without worrying what it might break
    • At the end you have a suite of regression tests that can be run during automated builds to give you greater confidence that your codebase is solid

    The best way to start is to just start. There is a great book by Kent Beck all about Test Driven Development. Just start with new code, don’t worry about old code… whenever you feel you need to refactor some code, write a test for the existing functionality, then refactor it and make sure the tests stay green. Also, read this great article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lots of people talk about the performance advantages of String.intern(), but I'm actually more
Almost everywhere I worked I met lots of people who didn't care that they
Lots of people have things that their systems do for them or for their
I see lots of people having problems understanding rvalue references. Will ordinary C++ code
This should be easy as lots of people have asked but there answers dont
Apologies for the masses of code but people usually ask for lots in the
I have read lots of questions and answers about this issue on StackOverflow, but
Lots of people are talking about keeping an CABasicAnimation object around after it has
in the last times I heard lots of people claiming that the Cell processor
People use gdb on and off for debugging, of course there are lots of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.