So, when I say "function" what do you think of? I think of pretzels, chips and salsa, pasta, and ... well ... my mouth starts to salivate. Strings, variables, arrays, and objects just make me think "mmmm yummy."
When I first started coding. I hated it. I mean like a ton. Took me 3 months to make one dumb website. It was for this economics tutoring idea I had.
After a 2 month stint of not touching it, I started again. But I changed it up:
I started eating anytime I did anything related to code.
I know it sounds goofy, but between that and always standing when I was learning (and opposed to sitting), my desire to do so became easy.
It's not something I came up with out of brilliance or anything (I'm sure someone else has done it). But it started back when I was studying economics in college. I just couldn't stay awake. So I started eating these little caramel candies constantly while I'd study. And all of the sudden, economics was yummy. (And since now I have to get a crown on one of my teeth........)
Some unexpected results are that when I hear Jeffrey Way or Simon Allardice (two online course teachers for code) my mouth also salivates. Lynda.com and Tutsplus are excellent places for video courses.
Anyway, I hope this helps someone. It sure helped me to love it, even if it was rather primitive.
Edit: Just to make things clear. -I- run a ton. So, if you take this approach, you should probably exercise.
J Cole Morrisonhttp://start.jcolemorrison.com
Startup Engineering and Management, former Techstars Hackstar, AWS Solutions Architect, and Headmaster at awsdevops.io