So "modern" (read - younger) devs might be framework and language whizzes, but what they lack are... basics of basics. Like, seriously, people really think deferring closing of file after buffered write is a good idea at all? Or that closing a file multiple times from different places in code is a Right Way™?
Sure, the post eventually mentions (f)sync() call, but it's just after updating it, meaning the post author was completely unaware of it.
That pretty much explains why "modern" software (especially web-centric software) was, is and will be unreliable and prone to random bugs, including totally unexpected and unnoticed data loss.
https://www.joeshaw.org/dont-defer-close-on-writable-files/
[#]programming #SoftwareDevelopment
=> More informations about this toot | View the thread | More toots from branch300bpm@vivaldi.net
=> View programming tag | View softwaredevelopment tag This content has been proxied by September (3851b).Proxy Information
text/gemini