Go Back   vb.org Archive > Community Central > Community Lounge
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2004, 03:26 AM
Brad Brad is offline
 
Join Date: Nov 2001
Posts: 4,765
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default OOP + vBulletin

Check out the chat log:

http://www.vbulletin.nl/community/showthread.php?t=8024

I wonder just how much of the backend will change . The move to more OOP in the code will be a good one imho. :speechless:
Reply With Quote
  #2  
Old 12-04-2004, 03:45 AM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so basically more like $DB_site->xxx will be occuring, cause im not really sure what OOP is but im asuming $DB_site is OOP. can someone explain what OOP is>_<

edit: if they are going to use more OOP i believe vBulletin should announce it officially and write up some docs for developers so they can accordingly update their hacks so when the new version is released using more OOPs the vBulletin Hack community will be compatiable thus encouraging users to upgrade
Reply With Quote
  #3  
Old 12-04-2004, 04:19 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AN-net
so basically more like $DB_site->xxx will be occuring, cause im not really sure what OOP is but im asuming $DB_site is OOP. can someone explain what OOP is>_<

edit: if they are going to use more OOP i believe vBulletin should announce it officially and write up some docs for developers so they can accordingly update their hacks so when the new version is released using more OOPs the vBulletin Hack community will be compatiable thus encouraging users to upgrade
Object Oriented Programming. I suggest learning Java if you want to learn OOP. PHP doesn't lend itself to OO that well.

Jelsoft never has written documentation for developers and I don't expect it to change...but I would love it if they did.
Reply With Quote
  #4  
Old 12-04-2004, 05:59 AM
Colin F's Avatar
Colin F Colin F is offline
 
Join Date: Jul 2004
Location: Switzerland
Posts: 1,551
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by filburt1
Object Oriented Programming. I suggest learning Java if you want to learn OOP. PHP doesn't lend itself to OO that well.

Jelsoft never has written documentation for developers and I don't expect it to change...but I would love it if they did.
That's not exactly true.

There are a few documents in the vBulletin manual about coding standards for example...
Reply With Quote
  #5  
Old 12-04-2004, 09:17 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Colin F
That's not exactly true.

There are a few documents in the vBulletin manual about coding standards for example...
AN-Net, the design pattern for the mysql class doesn't lend itself to OOP. It's not really OOP as such, more like a bundled selection of functions.
Reply With Quote
  #6  
Old 12-04-2004, 10:54 AM
AN-net's Avatar
AN-net AN-net is offline
 
Join Date: Dec 2003
Location: AnimationTalk.com
Posts: 2,367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
AN-Net, the design pattern for the mysql class doesn't lend itself to OOP. It's not really OOP as such, more like a bundled selection of functions.
oh cause it kind of resembles OOP in a way....
Reply With Quote
  #7  
Old 12-04-2004, 11:10 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well it is OOP, just the way it's used is not what OOP was designed to do
Reply With Quote
  #8  
Old 12-04-2004, 03:17 PM
twoseven twoseven is offline
 
Join Date: Jan 2004
Location: in floris' pants
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in the discussion of the thread kier recommended some webpages to read and a book as well http://www.vbulletin.nl/community/sh...ad.php?p=80121 just if you didnt see it
Reply With Quote
  #9  
Old 12-05-2004, 07:27 AM
sabret00the's Avatar
sabret00the sabret00the is offline
 
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in laymen terms what are OOP's and despite not lending themselves well to PHP what would be a few examples?
Reply With Quote
  #10  
Old 12-05-2004, 10:18 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
A method of computer programming where items of related data together with routines associated with it are treated as a single 'object' or item in program. For example, to implement an onscreen dialog box requires graphic images for the box and its two buttons, details of how they are to be arranged, and facility to detect which button has been pressed. All of these would combine into a self-sufficient object which would take as input, the name of the dialog, perhaps some text to be displayed and the names of the buttons, and return as output a code indicating which button had been pressed. The advantage of OOP is that manipulation of the defined object can be made easier for the programmer. Languages such as C++ provide special features to assist OOP. ( top )
Undoubtedly the best way to learn OOP is to get a book and practice it. An example:

PHP Code:
class hello_world
{
    
// we initliaze global variables to the methods here
    // note functions within a class are called methods
    // variables are called preferences (I think? :p)
    
var $string '';
    
    
// this function has the same name as the class so we can call it's arguements when
    // intializing the class
    
function hello_world($incoming$whowetalkinto)
    {
        
// in OOP the $this-> prefix allows you to make new variables which are global
        // to the class
        // you can reference the value of $this->who and $this->string anywhere in any method now
        
$this->who $whowetalkinto;
        
$this->string $incoming;

        
// calls another method to output :)
        
$this->output();
    }
    
    
// takes our global variables and spits them out
    
function output()
    {
        echo 
$this->string ' ' $this->who;
    }
}

// you initialize a class with the keyword: new
new hello_world('Hello''Dean');

// will output: Hello Dean 
Make sure you scroll and read the full comment
Reply With Quote
Reply


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 04:25 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.04461 seconds
  • Memory Usage 2,266KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_php
  • (5)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
  • (10)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