I really think some people are born with it. (I know, that sounds crazy)
I sat down in front of a VIC20 many (many) years ago as a kid and just started writing code, I had to look up the statements & functions, but most of it was obvious to me.
If you're not "into it" you shouldn't do it. Hire someone (who knows what they're doing..) I've seen plenty of really bad code, some of which contains SQL injection bugs and the like. A lot of bad code is written by people who don't like to code very much. (or by people who are better at the artistic side of things)
You have to watch out for that.
But if you want to learn it, best thing to do is set up your own server, install apache + php, and just have at it, if you've never written in any other language before, PHP is a lousy place to start out, you won't get the underlying fundamentals that way. PHP is a domain-specific language.
Books are "ok" but no substitute for thinking! I remember the java books, all of them used Vectors, so, when looking at peoples code, everyone used Vectors.
90% of the time, vectors were a silly thing to use, they should have used LinkedLists. (since the data was accessed primarily on either end, seldom the n'th element) point being, if you get your knowledge JUST from reading someone elses code, but don't think about what it's doing, you're going to make bone-head mistakes like that.
You can't "just" learn from a book... you have to explore stuff.
|