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

War and Job

 现在哪里都要打仗了。是不是应该更要花时间找更稳定的工作。其实我的工作才是最没有保障的。应为我还不算这个公司的员工。然后还发现别的事。有问题到最后,我会先被赶走吧。那我现在更应该要找工作吧。不然等到仗都开始打了,我才找就太迟了。。。 Don’t deal with people with hidden agenda. Motto of life.

Coffee

昨天的梦好象卡了。梦到一半黑屏。可能喝了咖啡。可是平常都喝也没有这样。最不好的就是闹钟还没响就醒了。。。 昨天地铁坏,今天monorail坏。我还搭德士回来。。。不过也好。早一点到家。Puhlease! Hope everything goes smoothly.