Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@queekusme
In this case, time is an illusion.
Unit-tests are saving your time on a daily base.
No nasty bugs appear, you have to spend your time on.
Adjusting the code in a way it will change your expected results will break your tests and you can instantly recognize and fix the possible bug. -
Usually, the compiler should have warned you?!
GCC will issue a warning "statement with no effect" if you use -Wall, which is always recommended (and also -Wextra on top of it). Together with -Werror, it will treat the warning as error so that the compilation will fail. -
-
donuts238486yI had similar the last 2 days although I wasn't working on just one project so just sorta a bug I eventually needed to fix.
Well I happened to be making some edits and cleaning the code then stumbled on the source of the problem....
An extra , in an json array...
Related Rants
TFW you’ve been trying to debug an issue for over an hour and you find out you typed:
variable1 == variable2
Instead of
variable1 = variable2
AARRGGHHHHJJHHHHHRIFNRIDKEJXJDJ!!!!!!!
rant
boolean
logic
code test