LogFAQs > #972513155

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, Database 11 ( 12.2022-11.2023 ), DB12, Clear
Topic List
Page List: 1
TopicSoftware Developer/Engineer Thread
SilvosForever
03/30/23 10:09:49 AM
#141:


Unit tests are most useful for parts of code that have complexity to them - like engineering math or geometry calculations etc. Things that you need to really make sure produces the right answers.

I never understood people making unit tests for button clicks calling whatever function. Those seem like just pointless churn unit tests that don't really add any value.

Unit tests are good - but be smart about it and don't be overboard. It's like programmers that add a comment to EVERY line of code - it's really not necessary and clean, well-written code doesn't need that on ever line. Only on the non-obvious bits.

---
All your favorite RPGs: http://www.youtube.com/user/silvosforever
http://i996.photobucket.com/albums/af84/silvosforever/funnygif.gif
... Copied to Clipboard!
Topic List
Page List: 1