re: Coding practices your future self will love you for VIEW POST

re: It is a good idea to copy-paste the same function a minimum two times No. I'm steadfast against this. The first copy-paste is already reason to a...

I'm also strongly against the WET principle. Having good unit tests and code coverage is important. If you go with the WET principle you are making it harder to write tests for your code. If you go with DRY and then you later find a function doesn't meet your requirement, don't use that function and rewrite the code - simple!

code of conduct - report abuse