🛠 Had a coding challenge today!
Needed to implement a feature where an action is executed only when all app permissions are granted.
Spent some quality time crafting a Permission Service class to tackle this challenge, and I’m thrilled to share it with those in need! 🫶
I aimed to keep things simple in my approach, so I decided to create a basic star animation using this distribution system.
This way, I could grasp the fundamental concepts before diving into more complex ideas.
Checkout my random Gaussian generator and star Animation built with #Flutter
After exploring different ideas for a while, I came across something interesting called the Gaussian Distribution.
I realized that I could create animations based on the values generated by this method, so I decided to give it a try in #Flutter.
I woke up this morning with thoughts about standard deviation swirling in my mind.
It's funny how these statistical concepts can pop into my head unexpectedly! 😂😂
Of course, I couldn't resist the urge to channel my thoughts about standard deviation into a creative idea.👀
Storing images in bytes can present performance challenges like:
1. Memory Consumption: Storing images as bytes can consume a significant amount of memory, especially for large images. If not managed carefully, it could lead to high memory usage and potential out-of-memory errors.
2. Reading/Writing Overhead: Converting images to bytes for storage and then decoding them when needed can introduce additional processing overhead, potentially slowing down image retrieval and rendering.
3. No Compression: Storing images in their raw byte form doesn't take advantage of image compression techniques, which can result in larger storage requirements and slower downloads/uploads.
4. Limited Metadata Handling: If you're storing images as raw bytes, you may lose important metadata (e.g., EXIF data) that can be useful for image management and processing.
My point is you take into consideration how your package should and can handle image metadata.
You should also figure out how to strike a balance between flexibility and performance.
👀 just to add, I currently have a tightly coupled legacy software that gives me headache whenever I need to add an update…
I won’t recommend tightly coupled softwares if performance isn’t priority 🤝