Quote:
Originally Posted by PJo336
Ha, I was just discussing this in another thread about testing Vue apps. Front end testing just sucks so much overall. Backend is so much smoother.
Prob my backend privilege talking, but yeah I like tests. I also just came from a company where our test coverage was garbage and we got along ok, so shrug.
Random anecdote: caught a dumb bug in my Python code thanks to unit tests (I work mostly in C++ but sometimes have to modify Python, and I am not an expert Python programmer) yesterday. I wrote something like:
Code:
def blah(optional_empty_dict_to_be_filled_with_stuff=None):
if optional_empty_dict_to_be_filled_with_stuff:
# do stuff with it
I did not realize that an empty dict evaluates as falsy in Python (which I think is the opposite of JS), so my code was not in fact doing stuff with it. Yay tests!