You should write your code so that it can be easy to change. Instead of reusing something to save you 5 minutes of typing, just use it as boiler plate and rip out what you dont need and rewrite the stuff that is not exactly what you need.
And use language built in structures rather then defining your own, it makes the code easier for others and more performant.