No. You found it.
How to become a programmer
11–20 of 37 posts
Re: How to become a programmer
#12Unfortunately, days when you try and solve one problem for a long time can be common. When you think you are getting into something like that you need to take a 5 minute quite break. Something that gives your concious brain quite time, I find ideas and answers flood in then.
Re: How to become a programmer
#13Re: How to become a programmer
#14So in your case its fine to learn PHP but I would encourage you to look at many different things that are unlike or even the antithesis of PHP. It will help you understand where general computing nomenclature comes from, what the limits of your chosen technology are, how best to implement it in a given environment and ultimately it will give you a much better understanding of the technology itself.
Re: How to become a programmer
#15Re: How to become a programmer
#16"Once I figured it out, it was great, but I was beat. Is there a better way to learn programming?" No. You found it.
When I first started studying CS at school, I thought that there was some secret knowledge that the true hackers had that allowed them to program without thinking about it. And alas, I must not have had the hacker gene because I worked at it and worked at it and worked at it until I solved a problem, only to move on to the next problem.
Then, it hit me: That's the secret knowledge. You just have to keep chipping away at it. Eventually you'll become good at it. There's no free ride; it's a lot of hard work.
Re: How to become a programmer
#17When I started coding I found a book that spoke to me -- This is very important because if you get a book you don't like or understand you will not want to learn from it. And I tend to agree you should probably not start with PHP as your first language. I did, and now all I do is Python and Ruby which are significantly better, imho.
The reason I picked PHP, is that so many open source web stuff seems to be written in PHP and I want to be able to customize these apps (ex: joomla, wordpress, etc). But ultimately I just want to code without thinking and if python or ruby takes me there faster, so be it.
I think the main thing to accept is that if you're going to be coding then you're going to be thinking a lot. If you're not thinking and going on auto pilot then you don't know enough...
Re: How to become a programmer
#18Re: How to become a programmer
#19First, ignore the language wars. They are all BS. You want to use PHP, use PHP. Just keep in mind that every language was written for a fairly specific task and it's very good at that task. Don't try to use C to write a server-side script. Likewise, it doesn't make sense to use PHP to write an OS. Try to understand what problem you want to solve and then pick the right tool for the job based on performance, libraries…
Better yet, don't name your variable "i". Name it something like "PartCounter" or "CustCtr". Then you won't have to write many comments. Your code can be largely self-commenting.
As a general rule of thumb (IMO), never name any variable with less than 3 characters and never allow one variable name to be completely contained within another (Ctr & CustCtr). Being able to find every instance of a variable (and nothing else) with a simple editor global search will save you much time and headaches over the next n years. (Oops, I just violated my own rule.)
Re: How to become a programmer
#20Join some Opensource project at sourceforge.net
Also, I think it's important not to rely too much on others for acquiring knowledge.