5 ms·
Holy smokes I just had flashbacks to working at a place that tested things in production and ended up with a couple of these production-db IDs in the code. Shud
by hawkice 8y ago
Holy smokes I just had flashbacks to working at a place that tested things in production and ended up with a couple of these production-db IDs in the code. Shudders
- pavel_lishin 8y agoYour codebase only has a couple?
- hawkice 8y agoYou're already hitting a database, you can add a column for whatever information you want. I've heard people are spooked by having too many columns, but more spooked than having essentially untestable production IDs in their code? No thanks.
- beobab 8y agoI remember one place I worked, someone released code which only returned data permissions for the test user (id 5).