A mature general programming question

Discuss phpBB in general.
Forum rules
Please post any phpBB 3.1.x related topics in the Asraeus discussion forum.

A mature general programming question

Postby BartTv » 17 Oct 2006, 02:06

Hi,

I have started learning php a long time ago and stopped because school started and want to keep up with the class and pass all my exams and all. So i kinda forgot most of the things i had learned because i didn't look at it since then.

Now my question is:

If i like programming,working on computers and creating stuff how can i go back to re-start learning php and other languages withouht bothering my school time and studiying and all.

See i always loved codding stuff and all but the only thing i have had time to learn is actualy HTML. And now i saw php and understood that it was what i really was into so i got 13 books that can teach me php and have never had the time to entirely complete them.

Just some little suggestions or ideas of what i could do would help.

Thanks. :thumbsup:
BartTv
New member
New member
 
Posts: 7
Joined: 09 Aug 2006, 15:27

Postby Saeru » 17 Oct 2006, 02:35

PHP can be rather simple. I lerned it as a hobby honestly.

Best thing you could do is start with the simple stuff and work your way on. With a bit of work over time, the more complex stuff will become the 'simple' stuff for you ;P

You don't really have to sit down and be dedicated in order to learn. Any feww time I have, if I don't feel like playing a game or watching TV, I work on coding. You can learn a lot in a little time. Get stuck, google the answer or check in one of your books. ^^
Image
"Naku ga yousuru ichidanto tsuyosa kyaku ga icchuu wo yusuru."[/size]
User avatar
Saeru
Past Contributor
Past Contributor
 
Posts: 197
Joined: 17 Jun 2006, 23:58
Location: Behind a PHP book.

Postby Noobarmy » 17 Oct 2006, 03:56

well sitting down for an hour a day reading your book will mean you've learnt most of it in a couple of weeks. Or taking online tutorials is good as well :)
Image
User avatar
Noobarmy
Past Contributor
Past Contributor
 
Posts: 651
Joined: 02 Jun 2006, 11:19
Location: UK
Real name: Anthony Chu

Postby BartTv » 17 Oct 2006, 12:19

And what are the most important things to learn to create some MODs and some basic stuff?
BartTv
New member
New member
 
Posts: 7
Joined: 09 Aug 2006, 15:27

Postby igorw » 17 Oct 2006, 12:48

Know the basics of PHP, know HTML and know how phpBB works (Template system, language variables)
User avatar
igorw
Past Contributor
Past Contributor
 
Posts: 2321
Joined: 01 Jun 2006, 20:48
Real name: Igor

Postby drathbun » 17 Oct 2006, 13:16

The first step - in my opinion - is learning good programming practice. Once you do that, anything else is just syntax.
User avatar
drathbun
Member
Member
 
Posts: 195
Joined: 26 Jul 2006, 00:02

Postby UseLess » 17 Oct 2006, 14:43

Greetings,

What drathbun said.

As fas as the web server parsing the PHP code, the structure of your code really doesn't matter. As the server will see your code as one continuous line regardless of tabs, indents and line returns. But to someone reading your code, and this could be you in a few months, how well your code is organised can really make a difference to it's readability.

And good programming practice would be;
  • Consistency: Blocks of well written code always look the same and have the same indents and ways of coding, such as bracket/brace placement is consistant throughout the program.
  • Frequent Comments: The more you use comments throughout your code the better off you will be. It's not that important in small simple scripts but when they become more and more complex it will be harder for you to remember what you did, where you did it and why you did it the way you did.
Caring about what your code looks like improves;
  • Efficiency: The easier your code is to read and follow the easier it'll be to keep track of where you are and allow you to pick up where you left off quicker after a break.
  • Debugging: If you have used comments you can easily follow your own logic and if you have an editor with line numbers and consistant formatting, you can quickly find a problem in your code.
  • Future expansions and modifications: Using comments in your code is especially important for future changes, as not everyone can remember the logic behind code that was written years or even months ago. This is even more important when working as part of a team and everyone is using the same coding style, as it makes it easier to change someone elses work at a later date.
Movie Quote:
It's not the years honey, it's the mileage...
UseLess
New member
New member
 
Posts: 14
Joined: 10 Oct 2006, 11:18


Return to phpBB discussion

Who is online

Users browsing this forum: No registered users and 1 guest