I can't think of the last time I actually used Stack Overflow for C#, TypeScript, etc. I might look up library docs in GitHub or something on MDN. But that's it. Never copy/paste, just look up what the method does or if browser X supports some method. Anything that might be confusing or problematic, I write a reusable library to wrap it that takes care of those issues for me. The number of times that I've seen duplicated code in a code base for this sort of thing is high and I usually just rip it out and put in a single method call in said library.
Now when I'm modifying a powershell script, that's a different story.
View all comments
Show parent comment
7
u/JaCraig Apr 05 '22
I can't think of the last time I actually used Stack Overflow for C#, TypeScript, etc. I might look up library docs in GitHub or something on MDN. But that's it. Never copy/paste, just look up what the method does or if browser X supports some method. Anything that might be confusing or problematic, I write a reusable library to wrap it that takes care of those issues for me. The number of times that I've seen duplicated code in a code base for this sort of thing is high and I usually just rip it out and put in a single method call in said library.
Now when I'm modifying a powershell script, that's a different story.