Hacker News new | ask | show | jobs
by tialaramex 965 days ago
So somehow in some parts of the code STATUS_ACTIVE is defined wrong?

I guess there is always a risk that some "helpful" contributor will fix the typo in your definition of HttpHeader::REFERRER as "referer" to make it "referrer" instead, thus completely breaking all the software because nope, that typo is enshrined in the HTTP standard, it's Phillip Hallam-Baker's fault while he was at CERN.

1 comments

> So somehow in some parts of the code STATUS_ACTIVE is defined wrong?

I would guess that some other part of the app doesn't even use the constant at all, and just hardcodes "Active" as a string on its own. Maybe taking the value of a dropdown from the UI and never mapping that back to the actual constant.