Comments by "Ton Bong" (@tongobong1) on "Is Twitter’s Treatment Of Its Software Developers Fair?" video.

  1. 3
  2. 1
  3. ​ @ContinuousDelivery  few years ago I worked for a company that is one of the top 10 largest financial companies in Europe on its main project with huge code base. The company has revenue of more than 100 billion per year and the project was the key for successful competition in the financial market. Unfortunately the project had mostly London style unit tests and they were a mess. Most developers were confused by them and didn't like to write them. The core of the code base was old, full of hacks and dirty. Nobody was brave enough to touch it also because it was protected by London style unit tests that knew way too much about implementation so any refactoring would mean also repairing hard to read and understand unit tests. It was easier to create a hack than to change the core. Since developers didn't like to write unit tests they kept too much of business logic in GUI classes instead of extract it into business classes because GUI classes were not required to have unit tests. We also didn't read unit tests to understand classes under tests because it was so hard to understand them. The only exception was a programmer who was regarded there as guru and he once told me that I should also mock all classes from java standard library. Then I started to think that the whole London style is just madness. Since then I studied open source github projects from top American companies like Google, Amazon, Facebook and Red Hat and I found that none of them are using London style tests. Their tests are straightforward classical unit tests with very few mocks - maybe 1% of tests contain mocks. It is time to stop the London style madness! I know you are British and maybe you like those tests because of the name "London" but honestly you shouldn't mix patriotism with engineering. You should critically reevaluate unit testing and I hope you can come out with the right conclusion about unit tests. Also "Tell don't ask" principle is not that great according to Martin Fowler. Good unit tests are very useful to protect the code from regression and as documentation in code so I hope influencers like yourself will save European projects from lousy London style unit tests that are more harmful to projects than useful.
    1
  4. 1
  5. 1