25
Vent: My first project crashed because I didn't know about memory leaks
Last week, I finally got my little weather app to run after a month of work. It pulled data for my city, Denver, and showed the forecast. After about 3 hours, it just froze and shut down. I spent two whole days trying to find the bug, and it turned out my loop was creating new objects every second and never clearing them out. I had no idea that was even a thing you had to manage. How are you supposed to know about stuff like that when you're just starting? Has anyone else had a simple project blow up from something you never learned about?
2 comments
Log in to join the discussion
Log In2 Comments
gavin_hill278d ago
Honestly sounds like a rite of passage. Memory leaks are annoying but that crash probably taught you more than any tutorial would have.
8
eric7238d ago
Tbh calling it a "rite of passage" like gavin_hill27 did just makes bad teaching sound normal. You shouldn't need a total crash to learn basic stuff, that's a failure of how we teach coding. Honestly it just sets beginners up to waste time and get frustrated.
6