Timeline for Is it a bad practice to use conditionals with functions that change program's state?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 26, 2018 at 20:47 | comment | added | Deduplicator |
Better tryCreateFile() . It's shorter and no less descriptive.
|
|
Mar 26, 2018 at 20:31 | comment | added | John R. Strohm | +1 for throwing an exception if the create fails. History tells us that programmers are notoriously lax about checking return codes, which allows the error to propagate, possibly in interesting ways, and can make tracking it back difficult. Exceptions usually provide immediate traceback. | |
Mar 26, 2018 at 19:57 | history | answered | Ralf Kleberhoff | CC BY-SA 3.0 |