Re: HabboCMS [HOMES/GROUPS/TAGS/FORUM]
Quote:
Originally Posted by
FullmetalPride
Limit myself? OOP has just as many limitations as Procedural.
You forget, they're the same language, but they're different approaches to it.
It's like this. You and your friend are both at point A, backs to each other. Point B is located exactly opposite of point A, on the other side of the Earth, somewhere in China, let's say. Your friend travels one way, you travel another. On your walk, you'll probably go through Africa, then the middle east, then India, then you'll be at point B. Your friend will go across the Atlantic, the USA, then the Pacific, then be at point B with your friend.
Both of them have their pros and cons. Your friend will have to deal with the water, the American coast guard, then more water (and probably more US coast guard considering we're Japan's defense), then getting into China. On your way, you'll have to deal with travelling across the desert, dodging bullets and bombs in the Middle East, then the Himalayas in India. If neither of you have died, you'll still get to point B, in the same distance, with equally intimidating and challenging problems
Do you know what the word paradigm means?
lol
Re: HabboCMS [HOMES/GROUPS/TAGS/FORUM]
Quote:
Originally Posted by
FullmetalPride
Limit myself? OOP has just as many limitations as Procedural.
You know very little of OOP then. Just FYI, OOP is way more flexible and far exceeds the pros (if any) of Procedural.
Re: HabboCMS [HOMES/GROUPS/TAGS/FORUM]
Quote:
Originally Posted by
n0minal
You know very little of OOP then. Just FYI, OOP is way more flexible and far exceeds the pros (if any) of Procedural.
>exceeds pros
LMAO! That's like saying the pros of using your right leg exceed those of using your left. It's the same thing. Just a different approach.
OOP is not more flexible, lol. It's just a way of making things more complicated for yourself, which somehow, you crazies seem to adore.
It's the exact same fucking thing:
Procedural:
PHP Code:
$link = mysqli_connect('localhost', 'my_user', 'my_password', 'my_db');
OOP:
PHP Code:
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_db');
This is what I use for my custom MySQLi class:
PHP Code:
$mysqli = new briteMySQLi($mysql_host, $mysql_user, $mysql_password, $mysql_database);
$mysqli->connect();
Isn't that so much nicer than all of that ramen code?
Or have I been using OOP this entire time and bashing it..
Re: HabboCMS [HOMES/GROUPS/TAGS/FORUM]
Quote:
Originally Posted by
FullmetalPride
>exceeds pros
LMAO! That's like saying the pros of using your right leg exceed those of using your left. It's the same thing. Just a different approach.
OOP is not more flexible, lol. It's just a way of making things more complicated for yourself, which somehow, you crazies seem to adore.
It's the exact same fucking thing:
Procedural:
PHP Code:
$link = mysqli_connect('localhost', 'my_user', 'my_password', 'my_db');
OOP:
PHP Code:
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_db');
This is what I use for my custom MySQLi class:
PHP Code:
$mysqli = new briteMySQLi($mysql_host, $mysql_user, $mysql_password, $mysql_database);
$mysqli->connect();
Isn't that so much nicer than all of that ramen code?
Or have I been using OOP this entire time and bashing it..
OOP is used when you want to re-use code over and over. Would you rather type class function code constantly or just access the function in an OOP manner..
Re: HabboCMS [HOMES/GROUPS/TAGS/FORUM]
Sorry I'm not as pro as you guys are when it comes to programming but some people did say that OOP is making PHP Shorter than normal PHP is that true or false because I'm at the moment learning for PHP but I'm not sure if i should move on learning PHP or just learn PHP OOP / PDO.
Re: HabboCMS [HOMES/GROUPS/TAGS/FORUM]
Looks nice! might be using this