Jump to content

Recommended Posts

Write code, write code, write code, write more code, write even more code.

 

Of course it helps if you have some previous background in programming. If not you should probably take some time to familiarise ourself with some basic concepts such as boolean logic, algorithms, loops, conditional instructions etc...

 

Then write code, write code...

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-802852
Share on other sites

The best thing that helped me by far is the first 1-2 programming classes in college. They help you grasp the syntax and basic if/looping concepts.

 

As far as no classes goes, I would just download code that I wanted to do on my own and look at how it runs, then re-design it and code it on my own. But as stated, tutorials help, actually writing code helps. But you need to understand the basic syntax, logic, conditions, operators, etc before you can really actually program/code.

 

And do not jump into a major project, start simple (KISS Keep It Simple Stupid). If you want to make a forum, first learn how to store an entry posted in the database and displaying it. Then learn the user registration system...etc and keep building it a piece at a time.

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-802862
Share on other sites

if you want to program a forum it will all revolve around $_GET, you need to create template pages and then put an id number in the url and then output everything based on that number, make multiple queries, query a topic table with that number, query a repies table with that number, output in the template...the basic idea

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-802870
Share on other sites

buy a book that teaches basics and runs you through a working example of php in action, like form processing

Well I got form processing down pat its just when I am about to create an app like a forum I dont know where to start

 

If you're just beginning then I advise you not to even attempt a forum.  Start with the basics and work your way up.  When you feel comfortable then read a tutorial or try to build a forum on your own.  There's a reason you don't where to start.

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-802895
Share on other sites

You might find it helpful to learn some more or less advanced mathematics. It's the same kind of logical thinking that's needed in programming.

 

You'll also need to learn how to decompose a large problem into smaller sub problems. If you can't keep it in your head, then write it down. Make a list of the features, then on each item, write a list of what's needed to create that feature. Creating topics is an essential part of a forum system. How do you create topics? Well, you will need a form and you will need a script that processes that form. That script will need to validate the contents and ultimately insert it into the database. Take a look at this: http://www.phpfreaks.com/blog/learning-to-think-like-a-programmer

 

Otherwise it's just syntax, which you could get in a couple of days really. The syntax is the easy part, but getting a programmer's mind set is something much more difficult.

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-802993
Share on other sites

I was in quite the same situation as you in I for one would not recommend downloading a pre-built code package. You get confused as you don't really understand what any of it means. I wasted months just trying to figure it out and then I went to a toturial (Not sure if i'm allowed to mention links) and I understood most of it in a couple weeks.

 

Thats just for me though, we all are different.

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-803143
Share on other sites

starting out on big prebuild package's havent helped me either.

i also recommend starting out with small parts of script that u could piece together at the end.

best is just to code yourself instead of copy&paste it, just to get it into your head.

and even when u start knowing alot of functions and u been writing some script your almost always gonna be doing something wrong in some way.

that why showing other people your code is really helpfull. they might be able to spot things u have overlooked or havent thought about.

 

i myself started out with basic stuff like syntax and logical operators and trying to make my own calculater using form boxes for inputs, then started reading about looping functions and arrays.

tutorials right here on phpfreaks but also other site's like http://www.tizag.com/phpT helped me alot.

one book i recommend is http://www.freeopenbook.com/php5-for-dummies/.

and php.net is great to find all sort of functions.

offcourse u also could search one of the big torrent site's for php books :P

Link to comment
https://forums.phpfreaks.com/topic/152879-how-to-study/#findComment-803156
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.