Computer programming. Is Python Similar to PHP? ?
hold_on_and_stay_strong asked the question:
I found this open source book: How to Think Like a Computer Scientist.. And it teaches you the fundamental skills of computer programming and starts you of in Python, i have read the intro and it seems to be a fairly good book to read, as the author thinks of you as having no prior programming skills, Now if i learn Python first could i easily pick up on PHP? Thanks
Related posts:
- Where can I find some PHP programming exercises? whomdini asked the question: In the few computer sciences classes...
- Which books should I start with to learn computer Network programming, PHP, Perl and MySQL? Ozz*mosis* asked the question: I want to learn network programming,...
- How to start programming with PHP on my computer? polo_player13 asked the question: I downloaded WAMP and I set...
- Is Ajax a faster programming language than PHP? LUIS III asked the question: I read somewhere that Ajax...
- which scripting language is the most used when it comes to Web Programming:ASP.NET,PHP,Perl,RubyonRails? Amitanshu G asked the question: Which scripting language is the...
Filed Under Programming & Design |
Tagged With Fundamental Skills, Open Source, PHP
Comments
3 Responses to “Computer programming. Is Python Similar to PHP? ?”
Yes, you probably could. They are fairly similar in that they are both high-level dynamic languages. And generally, as the book will tell you, the fundamental concepts of programming apply to all languages.
However, once you’ve learned Python, you may not want to learn PHP. Python is a much more powerful language than PHP - it can be used for everything from low-level scripting, through desktop programs with a graphical user interface, through to web programming with frameworks like Django. PHP, by contrast, is much more restricted, and is only really used in web programming.
Learning computer languages is easy. It took me a couple years before I think I had a strong understanding of programming concepts (all in college though…in the real world, you learn a lot quicker). After that, I can pick up nearly any language within a few weeks, and get good with it after a couple of months of solid usage.
Getting the fundamental skills down is more important than anything. If this book can teach you that, you will be able to pick up PHP pretty easily.
They are similar languages, so it is definitely possible to go from Python to PHP.
I really like Python as a first language. It’s relatively easy to follow and understand, it works great on all kinds of different machines, and it’s incredibly powerful.
The most important thing is to learn how to program. The language can be secondary to the programming skills:
o Creating variables
o Branching and Looping
o Using Functions
o Creating classes
What you learn in one language can be transferred to another.
Still, PHP is a pretty good first language too. If what you really want to do is write PHP code, you can always start there. My book expects no previous programming experience and teaches PHP as your first language.
All the examples are available on my web site:
Best of luck to you!