Scrolling questions on SO can be a strong deterrent for people (like me) to read. I think in general programmers on SO understand two things well: (1) if somebody repeats code more than twice, generalize it; (2) if you say
"I show 2-3 here but really there are dozens", we will honor your intent and generalize it. You need people to at least
look at your code, but I'm not even going to look at it when it's this long. It's daunting! :-) (Further, you already have a close-vote ... it only takes 3 votes to close a question, don't give other readers an excuse to demand better clarity. Thanks!) —
r2evans 1 min ago