This is a dev diary of implementing Filerion, a web-based file manager for online storage (Dropbox, OneDrive, Google Drive, s3 and more).
Today was day of refactoring filesystem abstraction code.
I overcomplicated the functions by using callbacks and simplified them by converting to async functions.
Lesson: that’s the reality of programming. You don’t always write the perfect version of the code and that’s ok. It’s always possible to improve the code the later.