Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Creative Discussion > Programming and Game Development

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-31-2015, 02:46 PM
Kesstryl's Avatar
Kesstryl Kesstryl is offline
Member
 
Join Date: Feb 2012
Posts: 125
Gender: Female
Credits: 17,005
Kesstryl is on a distinguished road
Default Is OOP better

This is simply a discussion thread. This is not a commentary on Mysidia moving to OOP PHP. I'm more interested in opinions as I also program my own games.

Procedural PHP is fairly easy and has a logical progression that one can see immediately. Almost anyone who can utilize logic can pick it up. The pro for procedural, besides being fairly easy, is that it can also make the program run fairly quick (not a huge performance increase, but still there nontheless). The major con is the mess one can easily make in stringing a bunch of procedural ifs/elseifs/cases/switches along with repeating a lot of code (unless one is proficient with making functions).

OOP is a lot harder to pick up (I have not yet done so successfully, it's not that I can't, it's just that I have to keep backing in and out of pages to see the logical progression of what's going on, not fun). It's like learning algebra when procedural is basic arithmetic. That's the major con. It keeps only the elite programmers in, and the rest of the casual/hobbyists kind of out. The pro is having neat looking (easy for other OOP programmers to use) and re-usable code (although I argue that one can make re-usable code with functions).

Things like security, modern look, MVC, re-usability, all this can be done with procedural code. So why is procedural looked down on as being so dirty?
Reply With Quote
 

Thread Tools
Display Modes

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 -5. The time now is 06:56 AM.

Currently Active Users: 453 (0 members and 453 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636