Please forgive my grammar if I don't sound intelligent it is because English is not my native tongue and trying best I can.
I have learned a lot of the basic stuff in php and every time I say to myself "ok I know the basic, I should be able to write something simple with that knowledge, but every time I end up in from of a new sheet I go blank. I never know how to start, what steps to follow what function to use and where to use it. do you learn php programing by copying and pasting and after a few years a light finally pops up, or there is actually a method to this madness, a way you can learn how to do things the right way from the start?
I'm asking this because I have wasted so much time trying to get guidance on how to proceed and got really bad tutors who got me to use old deprecated methods that made me look ridiculous after having spent 200 hours trying to build a sequence of functions to log into a database and get a user signed up. The thing is everyone keeps on telling me to read about it but there are no books out there that teach php. They dozens of basic php books I read only show how to add 2 +2 in a loop and how to give it a name and other functions. I haven't read a book, tutorial or video that actually tells you how to think things through, how to figure out how to chose the functions that you will need to build an app. All there is out there is thousand of different interpretations on what a function is and what it does. how do you put these function together though? am tired of reading the same thing over and over I feel like I am spinning my wheels and not getting anywhere and whenever I ask about guidance in forum I always get the same response: you should learn how to structure your questions better, or you should read about the basic.... should I just quit trying to post into forums?
is it a bad thing for a newbie for not wanting to copy codes and prefering to learn how to write my own codes?
general design question: Hiarchy, pattern of thoughts
Moderator: General Moderators
Re: general design question: Hiarchy, pattern of thoughts
The first line of code is always the hardest. Find a project, find some task you'd like to accomplish, and get started. Create a simple blog or a Twitter clone. While being a relatively simple project, it will have you addressing real-world coding tasks; working with databases, authenticating users, handling user data into and out of the database. As it nears completion, you can then look into adding a front controller, pagination, moving it to a framework to gain a better understanding of OOP and MVC, etc. There's really no substitute for doing.
I would first concentrate on getting things working. I applaud you for wanting to learn the correct way of doing things from the very beginning -- too many people, especially in the PHP community, are happy having something that works whether it follow best practices or not -- but you're going to make mistakes as you learn and those mistakes will be instrumental in helping you understand WHY some best practices are, in fact, best.
Keep the PHP manual close at hand, SO is always a good resource, PHP the Right Way, /r/phpquestions on reddit.. there is no shortage of good resources out there. It's just a question of separating the wheat from the chaff. Most important, though, is to get started! Good luck!
I would first concentrate on getting things working. I applaud you for wanting to learn the correct way of doing things from the very beginning -- too many people, especially in the PHP community, are happy having something that works whether it follow best practices or not -- but you're going to make mistakes as you learn and those mistakes will be instrumental in helping you understand WHY some best practices are, in fact, best.
Keep the PHP manual close at hand, SO is always a good resource, PHP the Right Way, /r/phpquestions on reddit.. there is no shortage of good resources out there. It's just a question of separating the wheat from the chaff. Most important, though, is to get started! Good luck!
- social_experiment
- DevNet Master
- Posts: 2793
- Joined: Sun Feb 15, 2009 11:08 am
- Location: .za
Re: general design question: Hiarchy, pattern of thoughts
it isn't a bad thing; that said, you can learn a lot from looking at other people's code and how they wrote it. Don't use it as it though, try and understand what it does, where it falls short, if it can be improvedjaad wrote:is it a bad thing for a newbie for not wanting to copy codes and prefering to learn how to write my own codes?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering