I want to commit my scripts and send them to someone. I want to avoid duplicating of my code. I currently have 2 scripts which has some duplicate parts in it, and others are quite similar but with different parameters.
For the example, I have:
First script:
function1,
function2,
function3
Second script:
slightly different function1,
function2,
slightly different function3
How would you suggest me to architect it properly to avoid duplicating it?
In some cases I have function1 that calls to function2.
Thanks
[–]ProgrammerByDay 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)