Загрузка...

Unit Testing is the REASON why your Code Sux and has Bugs!!

Our industry is so full of assumptions that it's quite frankly embarrassing. Testing indeterministic code results in spaghetti, because now you need an IoC container, interfaces with multiple implementations, configuration code for your services and mock objects, DTO objects, mapping libraries, etc, etc, etc. All because you thought you needed unit tests.

If you throw away unit testing of your indeterministic code, you can get rid of 96% of your technical debt. At this point your code is literally so easy to maintain and read, that you no longer *NEED* unit testing. In addition, the cognitive complexity of your codce has been reduced by 96%, so the statistical probability of that you'll add bugs to your code as you maintain it, is almost reduced to zero.

Once you have removed 96% of your code, you've also removed 96% of your "bug surface area", resulting in *LESS* bugs!

Facts are, the assumption of that you need unit testing, becomes the *REASON* why your code contains bugs. Because the very act of adding unit testing to your code, ensures that your code becomes 22x as complex as it needs to be, resulting in a lot of bugs originating simply from the need to ensure the code doesn't have bugs in the first place.

Visit https://ainiro.io

Видео Unit Testing is the REASON why your Code Sux and has Bugs!! канала AINIRO
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять