Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Programming and Working Memory

In my use case for this post I'm once again thinking of Angular. I have to admit I've gone elsewhere for a different perspective on Angular and I'm making a few inroads in my understanding of Angular so I will be much more confident when I go back to the Treehouse Angular course. But that's by the by.

My main point for this discussion is about what Treehouse users do when they try and tackle a project on their own for the first time. How is the working memory? Can you go to a project and accomplish a task from memory rather than going back to a code snippet to switch on the lightbulb in the brain that holds the answer?

I have to admit, because of my learning difficulty I sometimes struggle with this. And this is not to say that I haven't got the answer. It's very often there stored in the brain but doesn't always get to "end of the road" for want of a better expression so I can't figure out precisely what I need to type.

As an example...

If you were to ask me (as I recently was) how to create a new Angular module with a specific name... which isn't a whole lot of code to write I'd be likely to come up with something like this

BoltNetworkApp = angular.module{[]}

Which doesn't even sit right with me but even though I've looked at this task a number of times now and have a grounding on what it's supposed to do I've still not got it right, have I?

So off I go to have a look at a project I created... yea that's right... I haven't even assigned the module to variable or named the module properly.

var app = angular.module("BoltNetworkApp", []);

That's what lets me down more than anything else. The knowing precisely what I need to type.. not so much knowing where to look for the answer but how to do it on the fly.

Am I looking at it from a too simplistic point of view in terms of how programmers learn their way through a problem.

Be interested to hear peoples thoughts.

1 Answer

John Steer-Fowler
PLUS
John Steer-Fowler
Courses Plus Student 11,734 Points

Hey Jonathan,

I am most competent with Ruby, and whenever I approach any Ruby project I am forever looking into documentation to remember just some of the simplest methods and blocks etc.

However, what I have found is that you cross a threshold with each bit of knowledge that it suddenly becomes second nature to a programmer. Some people try something, and then give up and become frustrated before they cross that threshold, but they key is to persevere.

Someone else quoted on this forum the other day and it stuck in my mind that 'Repetition aids Retention'. I think that repetition is the key to crossing that threshold with learning. If you get overwhelmed and give up, you will never repeat the problem enough times so that you understand it and it becomes second nature.

This might be a load of waffle, but thats my input to this discussion.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Hi John, thanks for your reply :)

Yea I know what you mean with repetition, it's what's helped me get as far as I have with Angular. The one thing I don't want to do though is given up because I've invested so much time into learning code.

I go through 2 extremes as I suppose we all do. Where in one hand I'm feeling great and confident in code and my learning potential and the other it feels like a never ending road and I'm not learning anything. Any thoughts I have about giving up I just toss aside and like you say.. I've got a lot of confidence that if I keep going then suddenly things will "click" into place. Still a long way to go but I'm up for the ride. :)