Skip to main content

Reuse

 Reused some of my older code, one return makes me wonder why I can’t load some of the data which was loading fine previously. Then realised the return was not suppose to be there but it should return for another function. This is where if you shared a function, you probably get a lot of different results. Anyway, got me stuck but I deleted some code. Git would probably let me find back. 

There are times that we should always try to use libraries. I don’t mind using internal lib because update and everything can easily be controlled. Third party not so easy and you have to put up with them if they don’t care or something wrong with their release or there is a bug then you cannot do anything until they did. I tried to write my own whenever I can and reduce using external lib unless this lib is really unique and I can write no code like it. 


The function that is shared or split up is really hard to correct. I tried but then changed one affected the rest. Change one thing need to see a lot of functions. Is there a standard code quality? if yes, why there are so many patterns that exist. Which is the correct one? 

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

Contrary

 Parents don’t even want to waste money on broom and fan . Kid bought robot vacuum for wife. Said saving. Parents don’t even have a proper TV , son bought big TV. Everything asked from others and worked so many years, yet never saved anything? how is that possible?  Liars and Cheater. May you get what you deserve.  我的闲是为了让有心机的人不得逞。 Do things for 15 years and wanted to claim the things people done for 50 years.