|
|
|
|
|
by surfsvammel
1797 days ago
|
|
I disagree. Sure it might be an anti pattern, but it’s also for safety. Everything which is production should be called production.
I have seen this in the places I’ve worked for the last 10 years or so, and never seen code like: “ if env == 'dev' then ”. There is a story of a bank who sent out cancellations in production of all their trades because of a mistake due to something like that. That was a costly mistake. Production and test environments should not even be on the same network. And, ideally, in my opinion, whoever has acces to a production server should not have access to a test server, and the other way around. |
|
The naming conventions are for the humans to reason about the system, and help the new hire not trigger an outage.
Getting the "proper" amount of information in there is the acme of skill.