11
NemeXis
2y

TDD has not been proven in studies to provide substantial reduction in cyclomatic complexity or other metrics of software development.

Comments
  • 8
    Cyclomatic complexity is a lie.

    Prove me wrong.
  • 10
    The product value we added wasn't the tests we created, but the bugs we created along the way!
  • 2
    Alternatives to TDD:
    Acceptance Test-driven development (ATDD),
    Domain-driven development (DDD)
    Behavior-driven development (BDD),
    Example-driven development (EDD) and story test-driven development (SDD).

    Edit: Event driven development...

    So pick your poison.
  • 2
    Just make it work-development
  • 7
    @KDSBest

    You forgot RBD - the most common one.

    Random bullshit development
  • 7
    TDD is actually quite hard to do right - definitely not for the faint of heart... or juniors.

    Sadly, my creative workflow just dosn't fit writing unit tests before functional code in most cases (algorithms being the exception)...
  • 0
    Read this

    https://blog.cleancoder.com/uncle-b...

    If that doesnt change your mind, I guess nothing will
  • 0
    @KDSBest BDD is a form of TDD
    Change my mind
  • 0
    @sariel that...is deep as fuck
  • 2
    Is it that TDD has not been proven blah blah something, or is it that TDD has been studied and the studies found it doesn't reduce blah complexity blah metrics.

    The two are very different things.

    Also sauce?
  • 3
    TDD is not just about code complexity. It forces you to think about the problem abstractly first and think about "what if's" of the task and create tests for that, and then that serves to navigate you through the actual implementation, because there's no way you're going to forget "that one edge case" if you already though about it and covered it just to be sure, instead of just covering what you already know works after implementation is done

    TDD leads to much more precise planning process and less buggy implementations as long as it's done right.

    that being said, I don't find TDD natural to do or think about and I rarely do it. But when I do use it, it's a pretty good tool
  • 1
    Boooop
  • 1
    @KDSBest
    DDD is about modeling your business processes in an OOP-style + ideas on how to organize/scope a business domain (this is where Microservices originated)

    TDD is a method to write testable code.
  • 1
    Well, I find myself doing just-in-time TDD by revising the flow of implementation up to 10 times. But I realize that it's not enough for speed and solidity.
  • 0
    @SuspiciousBug I and wikipedia don't agree, but could be a language barrier thing. Because english is my second language.
  • 0
    I like TDD.. although I do more of a development driven testing nowadays 😅
Add Comment