Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #11  
Old 07-10-2005, 09:46 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One of the best ways to learn a new programming language is to actually have something you need or want to do in the language, and then use online resources to help you figure out how to do it.

Learn the basics with the HelloWorld type programs and then, it's time to do things that matter to you.

If you start small and work your way up, you will learn a lot and feel like you really got something done.

For example, figure out something tiny that you would like to change about your forum. Maybe you want to recognize the 5 most recent members on your site instead of just one. Then, you start reading the index.php code until you can figure out the gist of what's going on and where the code is that relates to the newest member.

Then, it's just a matter of finding code somewhere that does sort of what you want to do, and making it do exactly what you want it to do.

Amy
Reply With Quote
  #12  
Old 07-10-2005, 10:00 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Danny and Amy.

Just out of interest how did you guys learn? and what would you have done differently in hindsight? Sorry to be a real nosey parker!!

P.s Amy, that sounds like a great idea for some hands on which Im sure I will do at some stage
Reply With Quote
  #13  
Old 07-10-2005, 10:02 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Ok last question @ Dark Visor... when did you first start learning php? (this will give us a very vague idea of ho wlong it might take to get to your level!)
To my level? I am not that great. I still don't know many aspects of PHP. Though, it is not needed to know many aspects in order to be able to make great scripts Here is the answer to your question: It took me a year to get to where I am right now. Do not let that misguide you. As TheSpecialist said, everybody learns at their own pace. Feel free to ask more questions, it's ok

Quote:
I suggest PHP and MySQL Web Development. It's a huge book that's cut into 3 main parts. PHP/ Mysql/ Creating Major Web Applications with PHP & mySQL. Although, it covers PHP 5, it's still a great book. Even when your done reading it, it serves as a great reference too.
I think I've heard the title. Is that an O'Reilly book? If yes, then it is a great book, as well as all other O'Reilly books are If there is no official manual to something, the first place I go to is an O'Reilly store.

Quote:
One of the best ways to learn a new programming language is to actually have something you need or want to do in the language, and then use online resources to help you figure out how to do it.
That is true. Another good way is to take a fine-coded script like vBulletin and to try to understand how certain things from within it work. This is, by the way, one of the good ways to learn a language, or to find out a good algorithm that does something you are struggling with.

P.S. My first PHP script was a PHP engine for a non-php site, lol.

Quote:
Then, it's just a matter of finding code somewhere that does sort of what you want to do, and making it do exactly what you want it to do.
Yep. However, I would recommend using only a code that you understand and agree with explicitly. Otherwise, if you use random codes from various pieces of software, your script might become buggy and eventually cease to work. Leave alone the possible security violations it might pose. Therefore, if you are going to use other people's code, I recommend starting with simple code imports that you can easily understand, and then gradually going up to larger and harder codes.
Reply With Quote
  #14  
Old 07-10-2005, 10:12 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I learned to program in BASIC in Junior high in the early 1980's. I picked up HTML, C, C++ and Java when I was in college, Perl when I installed Infopop's UBB and PHP when I installed Vbulletin.

Until I first installed VBulletin, I didn't know anything about SQL either. I learned by reading people's hacks and then by making minor changes of my own.
Reply With Quote
  #15  
Old 07-10-2005, 10:27 PM
Razasharp's Avatar
Razasharp Razasharp is offline
 
Join Date: Feb 2005
Location: UK
Posts: 373
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Anthony for answering - I am sure I will have more questions along the way (just can't think of any more right now!) hope you won't mind if I PM u at some point :classic:

Amy - sounds like you got a good start to it all! We did bits n bobs in school and i messed about with basic when I was a kid, but cant remb any of it now!

I hope I get the time to sit down and learn php - I've wanted to do it for a while but so many things have cropped up (decorating the house at present!).

Thank you all for taking the time to reply, I forgot how helpful you guys here at vb.org are!! :up:
Reply With Quote
  #16  
Old 07-10-2005, 10:31 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Thanks Anthony for answering - I am sure I will have more questions along the way (just can't think of any more right now!) hope you won't mind if I PM u at some point
No problem.

Quote:
Amy - sounds like you got a good start to it all! We did bits n bobs in school and i messed about with basic when I was a kid, but cant remb any of it now!
What's "bits n bobs"? By the way, I learned BASIC in junior high too... but it is kind of a pointless language, IMO. It would be better if they taught PHP or C++ in school
Reply With Quote
  #17  
Old 07-10-2005, 10:39 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Danny.VBT
I suggest PHP and MySQL Web Development.
I second this recommendation.

I never used php or MySQL before playing around with vBulletin in 2001. Coming out of the M$-SQL DBA world, I wasn't a programmer at all, just my dB skills other than the odd VB/VBa classes.

Thanks to all I have learned from working with vBulletin, a few years ago I rewrote my website in php and turned over 1,200 pages into 9 dynamic php files. SO much easier to keep updated now! I just reoptimized the code this spring and went for XHTML validation with full CSS layout. Something I never would have tackled if I had 1,200 pages to fuss with, so php afforded me the opportunity to learn even newer and greater stuff.

I did the same way Amy suggested -- finding things I wanted to change and figuring out how to change them. Downloading various hacks (some installed, some not) to see how others were working with the code, and asking for help when I get stuck.

I am no where near a coder, more of a muck-arounder who can follow directions well. If I can do this, pretty much anyone can.

Reply With Quote
  #18  
Old 07-10-2005, 10:42 PM
Guest190829
Guest
 
Posts: n/a
Default

I only officially started learning PHP this christmas, and I feel like I have the more than just the basics understood. I'm a very quick learner, so what I did was bought the book (PHP and MySql Web Development) and read it very quickly. This allowed me to grasp the concepts of php; now I use the book as reference. So, when I need to do something with php I go to the book, and find out how to do it in the book. If it isn't clear enough, I go to the PHP manual and get the information there. The best way I learned PHP was through the mistakes I made.

And I only knew HTML/CSS/ and basic Javascript before I started learning.
Reply With Quote
  #19  
Old 07-10-2005, 10:46 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I second this recommendation.
Hey hey, it's actually third But who cares.

Quote:
Thanks to all I have learned from working with vBulletin, a few years ago I rewrote my website in php and turned over 1,200 pages into 9 dynamic php files. SO much easier to keep updated now! I just reoptimized the code this spring and went for XHTML validation with full CSS layout. Something I never would have tackled if I had 1,200 pages to fuss with, so php afforded me the opportunity to learn even newer and greater stuff.
Ha! 1200 pages? That's too little. I call that laziness
I know a website that has over 5000 (approx.) badly formed HTML pages, and neverthless the administrators of that site have never remade it into PHP. xD
Reply With Quote
  #20  
Old 07-10-2005, 10:55 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay -- thirded then.

The website that owns one of the the forums I run is much the same. ~3,500 pages, most with a '90s flavor. Just the thought of putting them into a database gives the site owner hives, so he recruits people in chunks to update them.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03899 seconds
  • Memory Usage 2,250KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete