Are you guys doing TDD? I feel like its overkill?

Cerner / Eng
snbsbs shs

Go to company page Cerner Eng

PRE
Amazon
snbsbs shs
Aug 24, 2018 28 Comments

Hi Guys, we use TDD at my campany? So we are testing like if the menu is hidden or shown and if ellipsis are shown or not when text is long which is impossible to test. I feel like thats overkill , I would rather test the functionlity or services. What are your thoughts. Stack Angular TypeScrip Node

comments

Want to comment? LOG IN or SIGN UP
TOP 28 Comments
  • Oracle / Eng
    bosanli

    Go to company page Oracle Eng

    bosanli
    No. Customers will do the test.
    Aug 24, 2018 1
  • Gap / Eng
    randUser

    Go to company page Gap Eng

    randUser
    TDD and pair programming here. pretty anal about it, especially TDD. I write way better tests now than I did in college so there's that. I hated it at first but it's not too bad when you get the hang of it
    Aug 24, 2018 4
    • Gap / Eng
      randUser

      Go to company page Gap Eng

      randUser
      Sure. I love my coworkers, but pairing gets really exhausting.

      i often need breaks. I'm an ambivert but lean towards extroverted. But it is still socially exhausting working beside someone and talking constantly.

      I come home socially exhausted. I have to ask my gf for some quiet time occasionally because I spent all day at work talking. Meeting, coding, socializing. She understands, shes introverted

      You have to match schedules with your coworker. Come in when they do. Leave when they do. It's not required but it looks bad when you dont.

      Your mistakes are caught a lot quicker. You tend to cover all your bases with your code. You dont miss things as freq as your pair catches it.

      You have two code reviews essentially. One while pairing. One during the PR from another pair.

      Your team always has an even number of engineers lol.

      Things take longer to get developed. If you are a fast worker, it's hard if another developer isnt catching on.

      You have to talk the other employee through your steps. Always.

      It makes work fun when youre pairing with someone you click with and develop at the same pace. Youre more productive then too even. It makes work suck when you pair with someone who isnt like you at all. Even if you like them, you just have diff coding styles.

      You have to like the person youre pairing with. On top of that, that have to have similar coding styles and level of experience. When I was a fresh grad, experienced contractors got really frustrated pairing with me since I didnt know as much fresh out of college. Other employees on my team were cool about it.

      My company doesnt always do pairing. But my team is religious about it. I love when I dont have to pair and can prove my coding ability without being attached.

      I have a little over 1 YOE. So still pretty fresh. Pairing helped me learn a lot more out of college, when paired with the right people. But if youre paired with someone who is experienced, hates teaching, and doesnt care for pairing... they just kinda force their way into driving and you dont learn or do much.
      Aug 24, 2018
    • Wow, dude, thanks for the extensive response!
      Aug 24, 2018
  • You are describing more detailed test automation than TDD.
    Aug 24, 2018 0
  • Visa / Eng
    Lauduchand

    Go to company page Visa Eng

    Lauduchand
    I’ve worked at Cerner before and the company is really Anal about TDD and I don’t think their mind can be changed easily. The project that I had worked on was quite complex and was a huge team effort. Without TDD there was like 0 chance of ensuring quality on that project. On the flip side TDD can definitely be overkill for small projects with very limited scope
    Aug 24, 2018 1
    • Cerner / Eng
      snbsbs shs

      Go to company page Cerner Eng

      PRE
      Amazon
      snbsbs shs
      OP
      FYI I am not working for Cerner anymore. In cerner we used to put in prod everything once it worked then we would match test to prod. Not much testing there but my new campany its all TDD but again testing display hidden or shown in lot overkill imo
      Aug 24, 2018
  • Uber
    broforce

    Go to company page Uber

    broforce
    Writing tests is different from doing TDD. Any decent project must have unit tests, doesn’t matter if they were added before or after actual code was written. On the other hand having only unit tests is not enough, you also need integration tests at least that would make sure your system is functional when it comes to real world interactions. That being said I agree that blindly following TDD is an overkill (similarly to following any other methodology) without considering specifics of your environment.
    Aug 25, 2018 0