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?
Not sure how I should feel. Good or bad. Mum used to be very good with tech. Well, yesterday, have spent two hours over the phone just to help her log in to my account. In the end, she only managed to download and update her Netflix app on her iPad. iPad actually a bit different from Android so she has lots of difficulty linking App Store is equivalent to Google Play… When I said search, she literally search by her eyes… I cannot help but laugh at myself. Programmer and code did the same. I am not around so I can only do these for her. Sigh… Should have gave her a tutorial during CNY… My screen is back… The touch screen I bought previously so that it is easier for me to do work. The pc that I bought previously is a good investment in the end. Thank God or the manufacturer that both working fine so far.
Comments
Post a Comment