More than one issue here: * Links to external resources (be them Git repositories or anything else) are only OK if they are **supplemental** to your question. Your question/post should stand on its own two legs without other users needing to follow the links. A post should be self-contained and complete. * Questions about "how to improve this code" are not on-topic in Stack Overflow. Stated like that the question is not properly scoped, and is liable to be closed as either _too broad_ or _primarily opinion based_. Try to think over your question to provide a more stringent definition, so while multiple answers could exist, there isn't room for _infinite_ answers, and it's easier to produce an answer that's unarguable correct or incorrect.