IceCreamMan wrote:
coding is all about logic and thinking logically .... the commands for various languages can be learnt , but thinking logically cannot be learnt,,,it has to be inherent.
Hmmm.... I'm not sure if it's nurture or nature. I've read essays that suggest that program is essentially a linguistic skill. That doesn't sound right to me, but a widely used language, PERL, was written by a linguist.
The logic thing... a few posts back I made some observations about poorly trained programmers who generate massively complex structures. Point is that there are tools and methods that you can learn to simply all this stuff, even if it doesn't come naturally to you.
I have reduced massive, nested IF...THEN... ELSE... structures by drawing up truth tables, combining cases where the result was the same, looking for redundancies in the new table, then sometimes applying some boolean stuff like de Morgan's theorems to simplify further (this is what us old school programmers call "boole shit" hahahahaha ... oh.... sorry).
So two things...
1) Even if you don't think you're a naturally logical type, you could still learn these methods.
2) Most of us can't hold these sort of things in our heads and resolve them in our heads. We might think we can, but we can't really.