• CodeMonkey@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    8 months ago

    I always feel a little paranoid when I explicitly close transactions, connections, and files (for quick running scripts, the OS will close the file when my process exits and for long running applications, the garbage collector will close it when the object leaves the scope). Then I read a blog post like this an remember that it is always better to explicitly free resources when I am done with them.