From that I assume that you are not a professional developer, right? I never thought about in from that perspective but I think we should actually discourage copying and adopting code. It will probably solve your current problem in shorter time but I am quite confident that really understanding what you and your code are doing will benefit you in the long term way more, for example when you have to fix bugs, make changes or solve a similar problem.