209 похожих чатов

But the basic premise remains - can code be refactored

- yes, it can. They also had to write their own test harness because the code is logically very complicated. With more contracts (just consider it modules) then the amount of logic in each one is easier to understand and therefore test. Let's say I write a module which calculates all the physics for some fluid dynamics - it does about 100 different calculations and spits out an answer. How do I test it and prove all 100 are correct? With difficulty. If I split out those 100 calculations into 20 modules of 5 rules apiece, I can easily see what bits are right and which are wrong as I can see a result from each module.

1 ответов

12 просмотров

Thank you bro and don't get me wrong. I have no bad feelings for you.

Похожие вопросы

Обсуждают сегодня

Карта сайта