Originally Posted by Michael_aust
I am guessing the fact I have been struggling with this for that last three days is a sign that programming is something I am not going to be any good at, and that I do not have a programmers mentality.
A few observations.
The features, pieces, syntax of a language need to be used over and over to see how they can be put together for a solution to a given problem. Writing the programs and, often, reading others' programs are the best ways to learn a language.
It may be that this language does not suit your style. There are many more languages, some very dense, some very verbose. After you learn one, you'll see that they all have very similar characteristics, but they provide them in different ways. There are perhaps six major categories of languages, so give yourself time to learn this one.
While is is true that some people seem like natural programmers, programming skill comes to most people with practice. I have a rule, makyo's number
, that says that you need to do 100 programs before you know the language sufficiently. There are correlations between programming and some other characteristics of humans -- for example, music. Those who like and play music can often be good programmers (not much of a stretch since music theory has much grounding in mathematics). I have known several practicing musicians who were very good programmers -- one had even studied at Julliard.
You have probably lived your life so far as we all do. Nature works in parallel. Most languages work serially (although there has been much work done in recent years of parallelism), so you may need to think very linearly for the time when you are new at this. Logic plays a strong role in programming as you have seen.
I encourage you to stick with it for a while -- as Chevy Chase said, be the ball
... cheers, makyo