DRY Approach
Don't repeat yourself.
When you are programming (in any language), its generally a good practice to never repeat yourself.
I always try and create functions or methods when I need to run a piece of code multiple times.
Just a quick tip ;)
Written by James King
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Programming
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#