Binette to Learn Programming@programming.devEnglish · 5 months agoIs it better to check if a file exists before trying to load it, or to try to load it, and catch the error and move on?message-squaremessage-square15fedilinkarrow-up135arrow-down10file-text
arrow-up135arrow-down1message-squareIs it better to check if a file exists before trying to load it, or to try to load it, and catch the error and move on?Binette to Learn Programming@programming.devEnglish · 5 months agomessage-square15fedilinkfile-text
I would use both.