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
Post a Comment