Hello all!
I learn PHP for about a month now and right now I'm going through OOP. It's pretty hard, especially because I face a lot of thing related to PHP but not exactly PHP, like HTML, CSS, SQL... They all can be in one page. It's extremely hard to read a code someone already created, trying to find what relates to what and where it all goes. And it's also hard to create my own code. And I was wondering - will it always be like that? Or after some time these things will become easier for me? How hard it will be in future to read a code someone created and modify it? I will make PHP my job and I have to be able to code well to earn money. That's why this situation makes me sad.
P. S. Please no advices like "change your job". A chose PHP as my job and only will go that direction.
5 replies to this topic
#1
Posted 27 July 2011 - 09:47 AM
|
|
|
#2
Posted 27 July 2011 - 11:08 AM
When I started to read PHP too, I was pretty confused and thinked same as you, but now when I just go n create pages with php codes, it helps alot!
So just read tutorials, and code sites with 'em, really helps !
PS: Im beginner PHP coder too! :P
So just read tutorials, and code sites with 'em, really helps !
PS: Im beginner PHP coder too! :P
#3
Posted 27 July 2011 - 11:31 AM
Write now, you are learning several different things all at once:
1) PHP syntax
2) Programming (separate from any language)
3) OOP
4) possibly also HTML, SQL, etc
As you get more comfortable with each of them, the process of reading/writing PHP will get much easier, and you'll be able to focus just on solving your problem, and not on what the code means or how to express what you mean.
1) PHP syntax
2) Programming (separate from any language)
3) OOP
4) possibly also HTML, SQL, etc
As you get more comfortable with each of them, the process of reading/writing PHP will get much easier, and you'll be able to focus just on solving your problem, and not on what the code means or how to express what you mean.
#4
Posted 27 July 2011 - 01:00 PM
Repetition is the mother of all learning, so just repeat doing things with PHP in many different forms, and you will learn how to master it! Although, you'll never learn it all...
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
I study Information Systems at Karlstad University when I'm not on CodeCall
#5
Posted 27 July 2011 - 05:49 PM
Reading a php code depends on who wrote it.
If someone wrote a code, where their php logic, some sql, html, some css, and maybe some javascript all in the same code, php can be very hard to read
But if he use different files to separate everything, and everything is at his place, php can be the most beautiful langage, and can be "easy" to read.
If you are learning oop, I suggest you should look for a mvc pattern. It might be a little bit too advanced, but if you are learning a new langage you should start with some solid base ;)
If someone wrote a code, where their php logic, some sql, html, some css, and maybe some javascript all in the same code, php can be very hard to read
But if he use different files to separate everything, and everything is at his place, php can be the most beautiful langage, and can be "easy" to read.
If you are learning oop, I suggest you should look for a mvc pattern. It might be a little bit too advanced, but if you are learning a new langage you should start with some solid base ;)
#6
Posted 29 July 2011 - 03:24 PM
Yes but only if you try to learn,
its like a foreign language really- in fact that's what it is. After a year of very light study you will be confident enough to scim through a manual write your own code, etc, etc.
Probably only a month or two of decent study.
its like a foreign language really- in fact that's what it is. After a year of very light study you will be confident enough to scim through a manual write your own code, etc, etc.
Probably only a month or two of decent study.
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









