Welcome, Guest. Please Login or Register.
April 26, 2025, 07:04:23 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Feedback  |  Classes « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Classes  (Read 2315 times)
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Classes
« on: March 22, 2002, 08:50:12 AM »
Reply with quote

I know that this is a port but YaBBSE2 should really use classes.  That way if you want to change something it is easy to do so.  Just my thought an I am sure you are already planning on doing so.
Logged

Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:Classes
« Reply #1 on: March 22, 2002, 08:56:55 AM »
Reply with quote

Yeah, don't worry - for YaBB SE 2 there will be some structural changes - although we haven't talked about classes much.

We want to make YaBB run faster with less code  ;D
Logged

You can't have everything... where would you put it? -- Steve Wright
Joseph Fung
Global Moderator
YaBB God
*****
Posts: 4512


Keep smiling: it makes others nervous.

WWW
Re:Classes
« Reply #2 on: March 22, 2002, 01:49:01 PM »
Reply with quote

what makes you think classes are easier to change then procedures?

for SE 2 we're not going completely object-oriented, but where applicable they will be used.
Logged

Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:Classes
« Reply #3 on: March 22, 2002, 09:57:47 PM »
Reply with quote

Quote from: Joseph Fung on March 22, 2002, 01:49:01 PMwhat makes you think classes are easier to change then procedures?
Because they would centralize data access procedures and such. For example, rather than having to change a $variable = whatever; in a whole bunch of functions, you'd need only to change it in the one method. There's really no advantage to using "un-classed" functions over organizing everything in classes, that I can see in this case.

PHP isn't as advanced in its OOP implementation as other languages, but it still works well to keep some things safer, easier, and more organized.
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:Classes
« Reply #4 on: March 22, 2002, 10:03:56 PM »
Reply with quote

Quote from: michael on March 22, 2002, 09:57:47 PMPHP isn't as advanced in its OOP implementation as other languages.
I'll vouch for that - mind you Java's so Object Orientated the simplest tasks are made tricky. :-\
Logged

You can't have everything... where would you put it? -- Steve Wright
Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:Classes
« Reply #5 on: March 22, 2002, 10:09:35 PM »
Reply with quote

Teach you to use your classes, boy! ;D

I haven't done much Java, Ima have to get to it sometime.
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:Classes
« Reply #6 on: March 22, 2002, 10:26:14 PM »
Reply with quote

It's very secure and strong - but very buearocratic in how it does suff:

instead of
print "some text";
you have to use
System.out.print("some text");

power comes at a price... :(

Mind you my advanced etch-a-sketch program (with colors and the ability to lift the pen) was quite good.
Logged

You can't have everything... where would you put it? -- Steve Wright
Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:Classes
« Reply #7 on: March 22, 2002, 10:33:54 PM »
Reply with quote

Yeah, but on the other hand, you don't need to get device handles like you do in C/C++, do you?
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:Classes
« Reply #8 on: March 22, 2002, 10:43:05 PM »
Reply with quote

No but we do have to use this:

BufferedReader myReader = new BufferedReader(new FileReader("file.txt"));

String aLine = myReader.readLine();

just to read a line from a text file! :o

But anyway lets not get into a C++/Java debate - I've heard both sides of the story at uni - we could be here discussing it until the end of time!  :D
Logged

You can't have everything... where would you put it? -- Steve Wright
Shoeb Omar
Disciple of Joe
YaBB God
*****
Posts: 1420


The shrub demands war. I don't. The world doesn't.

ICQ - 69234983clickopedia@hotmail.com WWW
Re:Classes
« Reply #9 on: March 23, 2002, 04:15:25 AM »
Reply with quote

well.. u know public schools are going to change the lang they teach form c++ to java? :P

anywayz, i've worked with java before and it just confuses the hell out of me ;)
Logged

"If we all practice an eye for an eye, pretty soon the whole world will be blind" - Gandhi

We need to start listening to advocates of peace in oder to advance society. We have not grown from the prehistoric barbarians we once were.  Will society ever mature?
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:Classes
« Reply #10 on: March 23, 2002, 06:09:36 AM »
Reply with quote

i m learning c++ right now.. i have never even looked at java but c++ is not that hard.  It is much like php & perl (especially perl)
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Zef Hemel
Advisor
YaBB God
*****
Posts: 1182


Me too

ICQ - 61109769 WWW
Re:Classes
« Reply #11 on: March 23, 2002, 10:42:31 AM »
Reply with quote

Quote from: michael on March 22, 2002, 09:57:47 PMBecause they would centralize data access procedures and such. For example, rather than having to change a $variable = whatever; in a whole bunch of functions, you'd need only to change it in the one method. There's really no advantage to using "un-classed" functions over organizing everything in classes, that I can see in this case.
Object orientation has nothing to do with using functions/procedures in a proper way, that could just as easy be accomplished without using OOP.

QuotePHP isn't as advanced in its OOP implementation as other languages, but it still works well to keep some things safer, easier, and more organized.
Agreed.
Logged

Zef Hemel
Advisor
YaBB God
*****
Posts: 1182


Me too

ICQ - 61109769 WWW
Re:Classes
« Reply #12 on: March 23, 2002, 10:48:11 AM »
Reply with quote

At our university they use Java. Java is cool, in fact really cool, in fact the coolest language there is (although I like C# too).  It's clean, nearly all libraries that are available are written in Java itself and it's platform independent 8) What more do you want. Anyway if you're into windows program and currently using C++ I'd definately give C# a try it's a very nice (Java like) language, with a bit more C++ aspects (operator overloading, structs and enums).
Logged

Michael
YaBB God
*****
Posts: 782


Recursion \Re*cur"sion\, n. - See recursion.

ICQ - 47769041mrtorrent@hotmail.com WWW
Re:Classes
« Reply #13 on: March 23, 2002, 02:13:19 PM »
Reply with quote

Quote from: Zef Hemel on March 23, 2002, 10:42:31 AMObject orientation has nothing to do with using functions/procedures in a proper way, that could just as easy be accomplished without using OOP.
In PHP's current state, yes. Once it's improved its data hiding/encapsulation abilities, it will be much more beneficial to use OOP, I think. In the meantime, why build for the old, the past? Why not build for the future? It's not like OOP is that big of a leap, it's just a little bit of new stuff for those who've never used it, but something worthwhile and not really that hard to learn.

As for C#, I've been reading about it, and it sounds cool, but I don't think I'm ready to jump into it or anything else right now, I'm still working on building my knowledge of developing Win32 apps in C++. Hopefully you'll see a few little fun things from me in the near future. ;)
Logged

~ Michael ~
--------------
The MikeCam
I went to the Net and all I got was this stupid tagline.
Zef Hemel
Advisor
YaBB God
*****
Posts: 1182


Me too

ICQ - 61109769 WWW
Re:Classes
« Reply #14 on: March 23, 2002, 03:37:50 PM »
Reply with quote

Quote from: michael on March 23, 2002, 02:13:19 PMIn PHP's current state, yes. Once it's improved its data hiding/encapsulation abilities, it will be much more beneficial to use OOP, I think. In the meantime, why build for the old, the past? Why not build for the future? It's not like OOP is that big of a leap, it's just a little bit of new stuff for those who've never used it, but something worthwhile and not really that hard to learn.
Agreed. Though over user is never good (by definition ;)) especially not in non-OO-by-default langauges like PHP. It doesn't mean we have to put EVERYTHING in objects, that would be of no use. Of course having an Member, Board, Topic, Message, Category objects would be good.
Logged

Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Classes « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 2.918 seconds with 16 queries.