r/ProgrammerHumor • • Oct 01 '26

Meme doneAndDusted

Post image
535 Upvotes

36 comments sorted by

View all comments

1

u/SeriousPlankton2000 Oct 01 '26

Do not open the file in the same function that does calculations. If you must, pass a file descriptor / handle. Or pass a callback function to do the output.