News for hackers. Stuff that matters.
Re:What I wish I knew when I became CTO by wolco on Tuesday February 13, 2018 @10:19PM (#16373155)
From a pure number of keystrokes tests can add time.

If you know exactly what to write because you have done this 100s of times before tdd will slow you down.

If you are unsure of what the outcome of what you write tdd will give you training wheels and help guide you. That may make some quicker for a little while.

Re:What I wish I knew when I became CTO by hinkley on Wednesday February 14, 2018 @01:36AM (#16373949)
Pay attention, because it’ll be a while before anyone tells you this again: You are the sort of person people in this thread are warning others about.

Nobody who ‘needs training wheels’ is going to get them from/do TDD.

I’m more concerned about people who think they can fly without learning to walk.

Most of us can type 60-80 wpm. Have you ever gotten close to that while coding? Typing is incidental. The very easiest part of your day. You’re right, they type less, because they’re so into the smell of their own farts that they refuse to believe their bugs are bugs, and they make other people clean up after them.

Humans are fallible. We all have bad days. We all get distracted. We all misunderstand. We all change our minds. Don’t be so sure you got it right the first time. Even if the evidence supports you. You’ll be looking at a broken piece of code soon enough that you can’t figure out how it ever worked. Sooner or later it’ll be yours.

Re:What I wish I knew when I became CTO by tejasmanohar on Wednesday February 14, 2018 @04:44AM (#16374687)
>If you know exactly what to write because you have done this 100s of times before tdd will slow you down.

I once had this attitude. Then, I worked with other people. It makes all the difference. My perspective shifted when I was bitten by something small when making a small patch to a foreign system because someone else didn't leave good test cases behind.

Re:What I wish I knew when I became CTO by krmboya on Tuesday February 13, 2018 @10:28PM (#16373205)
I find that when working in a team, tests help save time by preventing people from stepping on each others' toes, breaking existing functionality
Re:What I wish I knew when I became CTO by rowyourboat on Wednesday February 14, 2018 @03:56AM (#16374498)
> If you are unsure of what the outcome of what you write tdd will give you training wheels and help guide you. That may make some quicker for a little while.

In my experience, if you are unsure of how you are going to solve a problem, writing test only makes you slower. When you are coding exploratively, you will likely have to delete and completely rework what you did several times before you find what works. If you write tests for all but the highest level, those will just be scrapped along with the rest of the code.