Skip to main content

TicTacToe

 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? 

Comments

Popular posts from this blog

Cuts

 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 ...

Bank

 A bank asked me to apply for their job. I was a bit skeptical whether it was scam. After a few conversations, it seemed legit. They needed my updated resume. I didn’t have. Go back to my old canva, then dragged out the old one. I realised I have a Word document ones after I sent the pdf ones. I should have just used the Word document because it was the latest. Anyway, I don’t have finance background so I might not get it. Based on their requirements, I think there are lots of things I have not yet explored. However, if I can finish my task earlier, maybe I can go for a test or two to see what are the skills that I lacked of. I felt a bit off because I just kept on doing uwp… I also needed to back up against my current job because I felt insecure about it, based on the recent months I was there. I am not sure if they want me there just to solve few issues then once solved then don’t need me anymore. Because every moment I was there, I felt a bit like it. They are also spending quit...

Peculiar

 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.