Skip to main content

Life is a mistake

 Life is finding the answers from mistakes.

人都在錯誤中找到答案。


I have written a few thousands line of code. I do not want to clear it away despite having many errors. I would patch it up when I found the errors and adding more ridiculous code to it to correct them. Then it caused another problems like a jigsaw puzzle having similar parts and colours. I patched one side but it was more fitting on the other side and you do not know which one has been missing. I looked back at the code, there is actually a shorter better way. I ironed up my heart, delete the code…. and with all the iron heart I have just ironed out, do the edits with clearer picture and a few hundred lines less. Well, could I have done it earlier on? Maybe know. The understandings and realisation of a mistakes came from the patching and they gave me a clearer picture when I am finally tired with patching and catched enough errors to know how bad my code was. Though it is still bad but at least the problem handling is still predictable. Not like a surprise. The only release is to change early and probably save more time than the endless patching of code to fix the mistakes. The structure is first. Like my first program, I realised the structure that I cannot change like I did in test environment. Then my code was done in that environment. If it is different from production, problem will arise. I think the first step is to ensure all structure is same before developing and it should be set first before developing. Never put yourself in a loop also. I tried to do something that I kept on looping myself and actually that loop was very unnecessary. Because it doesn’t matter but because the code is there and I have just that idea out of nowhere it would make it better. Turned out, I only need a few of that line and enough to make the code and checking work.


Story short. My eyes are tired today. I felt wide awake at night. Have been doing work at night. Most of the time I think better at 2 - 3 am… I changed the code around 11-12 pm last night. Successfully implement the first change until 3 am. Now adding more because of that stupid loop in the design. It gave me a lesson, never to design a loop if I were to design. If I did, hell. Summing it up, it is all about learning from mistakes but the answer is, do you get out of it or you decided to continue to dwell in it. 


After travelling down the roads, if you found a shortcut, probably that’s the best answer. If you found it but not use it, that’s another thing. 

Comments

Popular posts from this blog

Amount

 The amount I spent on learning before applying actually costed me more money until I do enough work. Still learning process is still needed even while working.  Doing things subconsciously can make the easiest problem complicated. Could be your old habits or subconscious typing or the auto correction? hm.. This one is more like my habit. It is a hard to catch error when we did like that. I was thinking what goes wrong and no matter what I did, it would not return my desired results. Turned the code that I wrote previously and just a line only which I overlooked while checking, was blocking the rest of the changes… Dangerous code is the counter code that you wrote to right a wrong or blocking the wrong from working. That’s normally a temporary solution but the solution turned out to be preventing me doing other works… sigh… 😮‍💨  Today’s a lucky day and I found it while doing another part… so it is good not to always focus on one problem. The other problem could be the c...

Tools and Work

 Things I bought for work. Another addition of $18.60 to the lost count of things that I bought for work. USB C to HDMI adapter has ARRIVED. Previously, I bought a hoco. and it is working fine still but too bad Shopee and Lazada don’t have them. I bought UGREEN then. I am attracted to name with colours on it. Hehe. Need one at the office so that I have less thing to carry back and fro of home. I bought another ergonomic mouse. My hand could go numb from using the mouse. Actually I have hand numb issue since young. Writing makes my hand numb. Not sure if that is normal but I do practice. I am not entirely sure if that is right hand only. When I used my left, I can write for a long long time even though the hand writing looks bad.  Bought soldering iron and tools set. Bought HDMI to mini port display x 3. One not working anymore and that’s why I bought another 2 (UGREEN $7.48 and IVANKY) because the working laptop needed it to display on another monitor. Bought a portable monito...

hmmmm

Keyboard warrior's keyboard checked. Another Jean checked. It is to make up for the pants that I spoiled two days ago. Just when I arrived at the office, I sat on a chair whereby the surface is grid-like and the  buttoned-up fake pocket button on the right side got plucked off leaving a hole a bit on the upper side of the bum. There is a flap that was together with the button. It just covers the hole a bit. I am not sure if the slit that the button goes through was big enough to see through. I tried to ensure my shirt was over the hole though at least to cover while I was not seated. It wasn't a good time. I was wondering should I just walk off to buy another pants but decided not to because we were busy. That went on for the rest of the day. A day to remember. The pants lasted 10 years. I bought it during my first job at 2011. Anyway, it was a bit tight around the waist so shouldn't have worn it at all. Although I am a bit heavier, my waist is a bit off only. I wonder if m...