2 ms·
Always close your stuff before filling it. E.g. instead of typing ... switch (uint8_t bla){ case 0: stuff; ... ... and filling everything as you go along, fi
by toemetoch 14y ago
Always close your stuff before filling it. E.g. instead of typing ...
switch (uint8_t bla){ case 0: stuff; ...
... and filling everything as you go along, first type the skeleton ...
switch () {case: break; default: break;}
... and then fill everything in. It's anal/pedantic but it becomes second nature really fast. Do it for everything (loops, structs, functions,...).
I once lost 2 entire days of my life I kid you not hunting an if (a = b) that had to be a == b and decided to change my approach.