If a library or framework exists that's of a good quality and available for your target platform and project license, use it instead of writing your own implementation.
Keep a library of commonly used snippets and examples as a reference-not only for yourself, but also for other team members. It's easier to remember where you can find an example of a feature than it is to remember the exact implementation details of that feature.