Dilemma 😫
I’m debating whether to handle audit events in a single file or break each event out into separate modules, aligning with the Sapphire Framework’s philosophy. I prefer to keep my code compact, even though I know it won’t significantly impact the end result, it’s just something I always spend extra time on for my own satisfaction. Now, my main question is whether opting for a single file will compromise performance compared to the modular approach that Sapphire advocates.
1 Reply
I don't think file RW operations are gonna affect performance from software side that much.
Cloud providers mostly use SSDs, new laptops & devices come with SSD or flash storage which are quite fast.
Raspberry Pi's limit is SD card based. But you can attach SSD into it
For my bots I have separated the concerns into different files.
Helps in reducing cognitive load.
This is one example of Single responsibility principle of SOLID principles