true story. Some worker had to build some script to update 4 different SharePoint lists. The update is the same on each list, the only difference is the name of the lists.
Final output: 4 powershell scripts
all containing a replica of the code
with the list name switched
first script does list A
second list B AND C
Third does list C
fourth does list D
no error management of any sort
requested task from me: review the "code" and add missing Try-Catch around
I really was tempted to refactor to just one method.
@mav can't see way to improve it, but I might post answer - downvotes might arrive due to some people who might think it's too trivial/broad. Your call what to do about it, until you have upvoted answer you can simply delete at any time.
I just went over the list of Community Managers and this caught my attention:
Different look and feel, too gray... poor Ana deserves more in my opinion. I went and dug up her combined flair just to see the reason it wasn't used:
You do not have any linked accounts with 200+ rep
True,...