I spent 6 hours fixing my TicTacToe code which I wrote 3 years ago. I am trying to make it in another way that isn’t a solution shown on the web. I failed to rebuild my code because it was made in an older version of npm. Just a 3 years old code. That’s how fast tech changed. Anyway, I managed to run it by redoing it on a newer npm version. Some other, I cannot run on mobile phone while perfectly on web version on Chrome. Sometimes, I was wondering if spending time refactoring my code is a good thing. I kept on dwelling with something that has a function. However, spending time like that made me realised a lot of errors on my program. I used to think it was easy and then after developing something else, when I went back to the old codes that I do not remember what I have really written down made me reread my code. That’s when I realized, there were so much more I did not consider doing. Like what happened after this person win. What happened if they don’t click on the empty slot but some other slot that has been filled. The player’s turn. The winning status instead of a pop up. I am still not satisfied after solving them. Then my UI was just trash. Well, have a small fix but I don’t think that is much or a problem. Well, now both programs worked the same way but wired differently. How do I check the performance? What makes my code bad and the internet solution better? The result is the same. Am I wasting my time?
I finished doing my wallet without cutting myself. I got a poke from the needle though but it was alright. Only that one time. The rest I found a way to prevent that. The cutting mat has been very useful and now it’s filled with holes. Today I got my first cut of the year. Fengshui’s problem. I was taking something from the dark corner near the kitchen sink at work. Was opening the carton for umbrella. Someone asked me to take. When I was cashier, I normally took it myself instead of calling someone unless really necessary. I have cut away the tape but the tape side sick to the wall so I pulled it and I couldn’t remember but just felt sharp pain on my left palm. My left hand gave way after the cover flipped open and the knife on the right hand slashed my palm. Sigh, I should have close it before pulling the cover. It failed to open the first time so I slide it out to cut a second time but worry it didn’t open and kept it that way. Should have trust my instinct. I also think ...
Comments
Post a Comment