vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   OOP + vB (https://vborg.vbsupport.ru/showthread.php?t=81695)

sabret00the 05-18-2005 06:26 PM

OOP + vB
 
Without pointing to a tutorial or an article anywhere could someone please, atleast try and explain what Object Orientated Programming is? how and why it's gonna be a part of vBulletin? and what are it's benefits over the current methods of programming (procedural)? please, if it's not too much trouble.

examples of OOP are more than welcome, but if you're gonna do something like "hello world" please don't as it don't really help me in how i'm trying to grasp it.

AN-net 05-18-2005 11:13 PM

oop basically creates an organized structure through classes allowing multiple instances of the same class without having to write code multiple times. the benefits besides more organization is beyond me. an example is the $DB_site class which uses some oop;)

filburt1 05-19-2005 02:13 AM

Quote:

Originally Posted by AN-net
oop basically creates an organized structure through classes allowing multiple instances of the same class without having to write code multiple times. the benefits besides more organization is beyond me. an example is the $DB_site class which uses some oop;)

It's a more semantec method of developing code than functional code. It's also far more modular and pluggable.

Dark Aura 05-19-2005 02:19 AM

Heres a tutorial made by Zero Tolerance:

http://gzevolution.net/?type=page&id...tutorial&tut=9

Marco van Herwaarden 05-19-2005 08:51 AM

Just have a look at ImpEx, this has a lot of OOP coding in it.

Paul M 05-19-2005 05:39 PM

It just seems to be a long winded way to achieve the same thing. Functions have always existed - where is the advantage ?

The Geek 05-19-2005 06:00 PM

Properties and Functions are a part of OOP. The advantages are far too numerous to put down - but in a nutshell it allows other coders (ie mod/hack writers) to not worry about how a particular function works, or where it is located - they just call a particular function and get what they need.

Say for instance there was a mammouth object called vB and you wanted to get a particular users name, you could do something like vb.users(51).username;
(yes, that isnt php... more like vB... but easier to read IMO ;) ).

Anyhoo... you wouldnt have to worry about a particular query, where the table is, worry about table prefixes, etc... More importantly, you wouldnt have to worry about future changes affecting how you usually get a username as it would all be black boxed.

Thats my 3.8 cents (?.02 at current exchange rate).

AN-net 05-19-2005 06:01 PM

yes it is the same but just a longer way of doing things. it is really only a coding style which allows a program to be easily extended upon because every is a class which can be changed and not have to be changed over several files.

Corriewf 05-19-2005 06:24 PM

Also doesnt it make programs easier to be designed by mutiple people instead of one person.

AN-net 05-19-2005 08:18 PM

Quote:

Originally Posted by corriewf
Also doesnt it make programs easier to be designed by mutiple people instead of one person.

yes because its a written standard. so basically as hacks are designed in oop in the future it will become easier for others to port, upgrade, or change. as there will be no need as to "wait what is he doing?"


All times are GMT. The time now is 03:08 AM.

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.01129 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete