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
-
Code path splits are always something to fear for their immense "lurking bug to be found ten years in the future" potential.
I often write code wich deliberately executes statements in all cases wich might also have been gated by a condition check.
That often even makes the code less performent on average. But the increased likelihood of finding critical bugs early on is worth it for me. -
@ArtOfBBQ for a personal project I doubt there will be tests ...
Though I'm curious to know what was that bug and how simple was it to find it and exploit -
@gitpush I don't recall except for the details I've given and no tests indeed, personal project
-
And this is why we do feature flags. We can turn that shit off fast when we need to.
Related Rants
-
dder4Trying to exit a bash script with 'halt' on a friday afternoon ran w/ root on a internal prod-vm which I d...
-
Python4I once added a semicolon at the end of a line when coding in Python. I’ve brought shame on my family.
-
devphobe7My most painful coding error? ``` #!/bin/bash APP_PREFIX=${1} #Clean built bin dir before re-compiling rm -...
Especially painful being a cybersecurity engineer;
Did something wrong with an if-statement.
Caused authentication to break completely; anyone could login as any user.
Was fixed veeeeeeery quickly 😅 (yes, was already live)
rant
wk219