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 7596861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:01:27+00:00 2026-05-30T22:01:27+00:00

I am trying to make a case for myself to use TDD and the

  • 0

I am trying to make a case for myself to use TDD and the usual punch line is that if you do TDD you don’t spend much time debugging. I am programming in F# and find that I spend little time debugging and code usually works first time around.

So the question is does the TDD punch line works in other direction – if I don’t debug much then I don’t need tests? What is your experience of using TDD with F# or Haskell? Are there any good open source projects in F# or Haskell which use TDD? Does other benefits like preventing overengineering outweigh the costs?

  • 1 1 Answer
  • 0 Views
  • 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. Editorial Team
    Editorial Team
    2026-05-30T22:01:28+00:00Added an answer on May 30, 2026 at 10:01 pm

    You spend less time debugging F# programs because the type system and emphasis on immutable data structures and pure functions eliminates whole classes of invalid programs.

    So the converse of the statement “if you do TDD you don’t spend much time debugging” does hold to a certain degree but should be “if your programming language has features that require you to debug less, then that may imply that you require less unit tests”. That is, unit tests are used to prove the correctness of your code, but some languages like F# have compilers which can prove a lot more about your code for “free” than, say, a dynamic language.

    That being said, unit tests are still a very powerful tool in languages from the ML family like F# for proving the correctness of your code, but you are able to focus on the correctness of your functionality rather than the correctness of your use of the language.

    All of my F# open source projects have rigorous suites of unit tests (and I think they’re pretty good 🙂 and they have given me an invaluable peace of mind and protected me several times against regression issues.

    • Unquote
    • FsEye
    • NL
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
I'm trying to make a case insensitive regular expression for my shipping section that
I'm trying to make a case against automated checkins to version control. My group
I am trying to make a pivot table with rollup and a case statement
I'm trying make an entity with doctrine that has three associations with other entities
i am trying to make sense of the following result. The test case code
I'm trying to make a regex, that will return list words that begin with
I'm trying to make a single-file HTML test case for something + part of
I've got myself a piece of the iPhone SDK and been trying to make
I'm trying to make an error check. When a user enters, int his case,

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.