CS106A Stanford University
I'm currently learning (or trying to learn) Java through a series of lectures from Stanford University; I'm sure some of you are familiar with this course as it's available on YouTube.
I found the first assignment a little difficult, however I did get there in the end. I'm now on the second assignment and I'm still having difficulty. Mehran Sahami is an amazing teacher, so I'm starting to wonder whether I just simply don't have the brain for programming.
I find it difficult to visualize what's going on exactly, for example, on the second assignment you have to create a pyramid http://see.stanford.edu/materials/ic...imple-java.pdf and upon using two loops to calculate the x and y axis for each row it all gets a little confusing. In the end I did manage to get the correct rectangles per row however all the rows started from 0 (x axis) so of course it wasn't a pyramid. I can't figure out how exactly I'm supposed to get the next row to start a further plus 15 pixels (half a rectangle) further than the previous row. And then of course, even if I did manage to sort that out I'd also have to figure out how to center the whole thing and push it to the bottom of the window.
Anyway, I found someone else's code on this forum but I'm still finding it difficult to visualize what's happening in the code. I can't follow what's happening in my head, especially when other methods are being called.
My Math is very, very lacking and I wonder whether this could be part of the problem. I'm 20 years old however my Math ability is probably the same as that of a 13 year old! (not something that I'm proud of, but that's another story).
Would getting my Math up to a good standard help I wonder? Or do some people just not have what it takes to program?
There's also a book titled "The Art and Science of Java" which has some reading material to be read before each lecture, I'm also having difficulty with the programming assignments on that.
Any advice would be much appreciated!