[β οΈ JOURNEY] Building MP3 AI Manager for Music Hoarders (Day 18)
Day 18
Hours worked/Total: 3/33
Day Recap
Extracted MP3 metadata with limited success and began exploring MVVM architecture in depth to manage global states and dependency injection. Successfully implemented a basic service class using Autofac, which simplified ViewModel management.
What I Did
- Extracted MP3 metadata:
- Retrieved basic details like the file path and name but Meta tags like artist, album, and genre requiring additional libraries or manual parsing of ID3 tags.
- Learned MVVM architecture concepts like to handle global states:
- Use service classes for shared states and logic.
- Keep models focused on being blueprints for data (like a house blueprint).
- Experimented with service classes:
- Chose Autofac for dependency injection, which automates many aspects of managing and sharing service instances across the app.
- Dependency injection feels magical, as Autofac seamlessly wires up dependencies without bloating the code.
Remarks
Extracting metadata was underwhelming, but learning MVVM architecture and dependency injection felt transformative. Understanding the role of services for managing global states brings clarity to structuring the app.
Next Goals
Investigate libraries or tools for better MP3 metadata extraction, including ID3 tags.