It's simple: you just have to not be a lazy ass, know what you're doing, and never settle for "eh, whatever, we'll just up the requirements another 2x."
Unfortunately, nobody does that anymore.
This should be drilled into computer science students every single day of their academic careers.