An actual tip though, even if you think you've found a snippet of code that does exactly what you want, type it out by hand. It'll help it sink in and improve your recall should you need to do something similar again. Usually, I find when typing it out that I want to change how it works too.
Oh that's a good one!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.