2015.03.09 – Just Because It Works Doesn’t Mean It’s Fixed

I was working from home today so I waited until late morning to even think about getting dressed. It was nice to work in my PJs! I was still messing with trying to get anonymous users’ events to display properly but I wasn’t really getting anywhere. After fighting with that task for most of the day I decided to instead test localStorage and sync for authenticated users.

I did a bunch of testing by adding and removing stars while logged in and logged out. It seemed to work perfectly! Everything was syncing and was spot on. Wow, finally something was going my way. I went upstairs to tell Andrew this good news and he replied, “That means it’s broken.” Wha?? Yeah, it’s broken because it’s only looking in localStorage and isn’t syncing properly to the server. If it were then nothing would be correct and that would mean it was less broken. Ugh! Back to the code. Apparently I needed to assign a value instead of just declaring it in my JavaScript. It was doing what I asked but then had no idea what to do with the value after it got it. Tiny little things…..

Today I learned that things may not be as they appear. Just because something seems to work doesn’t mean it’s correct.