Re:A cheeky intern nearly turned MS-DOS into NSFW-DOS
by toast0 on Wednesday April 10, 2024 @12:37PM
(#39992696)
Everybody has a dev environment and a staging/qa environment. Places with better processes just have them so they're separate from production. :p
IMHO, it's better to be a cowboy and reluctantly follow 'best practices' for the most part, than to be a 'best practices' person and be unprepared to be a cowboy when it's needed.
Sometimes, the best way forward is to force an update on production, even if the only method you have is modifying the executable on disk, while it's running. It's mmaped, so you can do this. But you wouldn't know this if you hadn't broken production by using cp instead of install to update a binary you wanted to modify for the next load.
IMHO, it's better to be a cowboy and reluctantly follow 'best practices' for the most part, than to be a 'best practices' person and be unprepared to be a cowboy when it's needed.
Sometimes, the best way forward is to force an update on production, even if the only method you have is modifying the executable on disk, while it's running. It's mmaped, so you can do this. But you wouldn't know this if you hadn't broken production by using cp instead of install to update a binary you wanted to modify for the next load.