100 Days of code – 80% complete
I had the file selection just about done, and it was starting to come together.
So I decided to break up the media player into modules. I thought it’d make sense to have a main program, a module for file selection, a module for the display, and a module for playing music. Then, when I wanted to change some feature, I wouldn’t have to make changes to a 500 line program.
I separated everything Wednesday, and I’m still trying to get this program to work like it did before. I’m spending most of my time running the program, finding that there’s some bug, and trying to figure out what I did wrong. This is almost always an issue where I’m referencing the wrong variable on the other module, so then I have to go back and forth between modules to try to see how I referenced things.
I’m sure that eventually I’ll see the value of using modules, but for now, it seems like it’s making everything harder. This is the first project I’ve built like this, so I feel like I’m just sorta winging it all the time. I’m sure there’s a “right” way to do it out there, but I haven’t really seen any recommendations about it yet.
For now, I’m just trying to slog through these bugs and write lots of doc strings to keep myself organized. Hopefully I can catch back up to where I was soon.