More of my adventures in JavaScript
We’ve got the database builder. We’ve got the thing to add to the database. We’ve got the thing to find stuff in the database.
Tonight, all being well, we start on the User Interface. Not just for this nerd, but also for my dear readers out there.
Whilst we were finessing the database manipulation nonsense, we had some weird errors. To make sure the right bit of code was activating, we added a single line of code to show us what stuff it was playing with.
Code before we added the single line: Did the wrong thing.
Code after we added the single line: Did the right thing.
Let me be clear. This line was a “console.log()” it just displayed a segment of data onto the console so we knew what it was playing around with. It did JACK ALL to the rest of the code.
Except. Somehow. It made the thing work properly.
Wat.
We removed this one line and… (drumroll)… it still worked.
Dear readers, I think I may have uncovered the coding equivalent of turning it off and turning it back on again. Either that, or my Fickle Finger [aka bad luck with all things technological] has reared its ugly head and this time I have a WITNESS!
Gimmie two more days and we shall have dev/null errors. Which Beloved says do not exist.
