OO in a PHP/mySQL RPG Game

Started by
10 comments, last by BeerNutts 10 years, 11 months ago

Maybe I'm overgeneralizing.

Still in my opinion procedural code becomes unmaintainable faster than OO code since you've a more dedicated file structure in OO for your classes which allows to have a better overview of your codebase whereas in procedural you try to group independent functions somehow and when the project gets larger you need a good IDE or search your ass off to find what you search for, or ... just write it again since the function you need differs a little from what already exists, somewhere, maybe.

Also new developers in a project will have a hard time to understand your function grouping into filenames, and you'll have to

remember where what function is to properly include the functions you need, just in case you dont want to include all your code in every file.

Jan F. Scheurer - CEO @ Xe-Development

Sign Up for Xe-Engine™Beta

Advertisement

Maybe I'm overgeneralizing.

Still in my opinion procedural code becomes unmaintainable faster than OO code since you've a more dedicated file structure in OO for your classes which allows to have a better overview of your codebase whereas in procedural you try to group independent functions somehow and when the project gets larger you need a good IDE or search your ass off to find what you search for, or ... just write it again since the function you need differs a little from what already exists, somewhere, maybe.

Also new developers in a project will have a hard time to understand your function grouping into filenames, and you'll have to

remember where what function is to properly include the functions you need, just in case you dont want to include all your code in every file.

I don't feel like arguing, but bad code AND good code can and will happen with any coding genre.

My Gamedev Journal: 2D Game Making, the Easy Way

---(Old Blog, still has good info): 2dGameMaking
-----
"No one ever posts on that message board; it's too crowded." - Yoga Berra (sorta)

This topic is closed to new replies.

Advertisement