3 ms·
> fastest/cheapest way to write code that works Pretty much. I do really like good code and I hate touching anything that I have written and know it to be bad.
by raxxorraxor 4y ago
> fastest/cheapest way to write code that works
Pretty much. I do really like good code and I hate touching anything that I have written and know it to be bad. But some things need to be done quick. If I open another project that needs to be green-lit for every single thing...
Also I do a lot of hardware control and some tests really need a defined order. Sure, these stricly aren't "unit" tests, but there are just a very large amount of conditions that must be met.
Components that need time to move, components that have a longer cooldown/heating period that you cannot toggle on/off at all times or in generally should be toggled as rarely as possible.
To test that your code is correct, an order to do things might just be sensible and practical. How long a test lasts is also a quality that should not be neglected. Embryonic position after each "unit" is tested would drag everything out.
But I have no problem with the requirement to call a most vulgar function to be allowed to do so. Doesn't hurt to reiterate the ideal.
It should be said that from small engineering offices to large market leading industry leaders it is still quite common that there are no tests at all...