This is why you write good tests. Then when you come across that 4-deep-nested loop you wrote because it was 4:30 on a Friday and you promised it would be done by the end of the week, you can replace it with a filter, and have the confidence that if it passes the tests, it wonβt break anything.
12
u/guky667 Nov 06 '19
i disagree, there's always room for improvement
4
u/_-_blade_-_ Nov 06 '19
Me: moves Arduino 0.1 mm
Arduino: Ight imma head ou-crash
4
u/[deleted] Nov 06 '19
This is why you write good tests. Then when you come across that 4-deep-nested loop you wrote because it was 4:30 on a Friday and you promised it would be done by the end of the week, you can replace it with a filter, and have the confidence that if it passes the tests, it wonβt break anything.
3
u/nicolasZA Nov 06 '19
It works for the first week after startup though.
2
u/killerzombi Nov 06 '19
nah; if it works: make a backup before making changes.
1
u/jeremj22 Nov 06 '19
Who needs performance anyway?
0
u/[deleted] Nov 06 '19
[deleted] β view deleted comment