Coding
I have been using the same tactic for years. Taking snippets of code and combining those snippets of code. This is a common method when trying to learn specific code and or if someone is in a hurry wanting to complete what they are working on. Eventually it lead's to writing code from scratch assuming the brain remembers the syntax.