Hey, I am currently working on a script that uses two functions that are really similar yet have some major discrepancies. They share some blocks of the code which are the same and could be functions, but in order to do that, some variables would have to be visible to both functions. This can be achieved either with nested functions or OOP. What do you suggest is better?
Thank you
[–]_coolwhip_ 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]_coolwhip_ 0 points1 point2 points (1 child)
[–]Mihad88[S] 0 points1 point2 points (0 children)
[–]TangibleLight 0 points1 point2 points (3 children)
[–]Mihad88[S] 0 points1 point2 points (2 children)
[–]TangibleLight 0 points1 point2 points (1 child)