in reply to "open" Best Practices
Perhaps mention something about paying attention to the ownership and permissions on newly created paths and files, and to consider the ramifications of locking (or failing to do so). So often we envision our solutions in terms of simple development environments not considering that there's a real world where processes can compete with each other over the same resource, or where not everyone is the same person as $ENV{'USER'}, and so on. At minimum, if our code is expected to be the only instance of itself running (so that it's not competing for a resource with other instances of itself) are we doing anything to assure it is the only instance? Have we considered that someone might be writing to, unlinking, moving, copying, reading from the same file we're working with?
Using open correctly is the easy part.
Dave
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: "open" Best Practices
by eyepopslikeamosquito (Archbishop) on Jul 12, 2019 at 08:56 UTC | |
Re^2: "open" Best Practices
by haukex (Archbishop) on Jul 12, 2019 at 16:26 UTC | |
Re^2: "open" Best Practices
by karlgoethebier (Abbot) on Jul 12, 2019 at 13:30 UTC | |
by marioroy (Prior) on Jul 14, 2019 at 16:39 UTC |