Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,473
There are 2895 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

Object Oriented Programming

Thread title: Object Oriented Programming
Closed Thread    
    Thread tools Search this thread Display Modes  
12-13-2006, 02:01 PM
#1
paaaaaaaaaa is offline paaaaaaaaaa
Status: I'm new around here
Join date: Dec 2006
Location:
Expertise:
Software:
 
Posts: 2
iTrader: 0 / 0%
 

paaaaaaaaaa is on a distinguished road

  Old

Yeah re-useability is what I always hear but isnt that the same case for functions?

Also I hear OOP helps organise your code better but I dont like it when a file has something like 6 long functions in it and you have to struggle scrolling through the file to find something which can be the case with classes.

Isn't having a class effectivly like having a function that will run through some sub functions and then finally return an array.

12-13-2006, 03:08 PM
#2
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Originally Posted by paaaaaaaaaa
Yeah re-useability is what I always hear but isnt that the same case for functions?

Also I hear OOP helps organise your code better but I dont like it when a file has something like 6 long functions in it and you have to struggle scrolling through the file to find something which can be the case with classes.

Isn't having a class effectivly like having a function that will run through some sub functions and then finally return an array.
Classes can do more than just group functions together. You can use them together with less lines of code and also manipulate the vars used within the class/functions.

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed