Poll: How do you make use of object oriented code?
You do not have permission to vote in this poll.
Everything should be object oriented
0%
0 0%
Code should generally be object oriented, but there are exceptions
0%
0 0%
Object oriented code should be used where it makes sense (for structures that actually constitute objects, etc.), but should be used lightly otherwise.
50.00%
1 50.00%
Object oriented code should be avoided if possible
0%
0 0%
What's object oriented code?
50.00%
1 50.00%
Total 2 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Object Oriented Code

#1
What is your opinion on using object oriented heavily? And by heavily, I mean basing an entire application on it. We're definitely not talking about applications that selectively use any sort of combination between "procedural" and object oriented programming styles here. Tongue

Personally, at least as a PHP programmer, I hate code that is object oriented for no reason (although, to be fair, PHP isn't the greatest as far as object oriented code is concerned Tongue). Some may call the shots and call me a bad coder for it, but if something isn't an object, I don't really see the point in making it one. Of course there are advantages. One of my favorites is the fact that you can use function names that you want without having to conflict with other functions from other elements of the code. It definitely helps keep function names very short and easy to remember.

However, that said, I find code that is object oriented for no reason to be much messier and significantly harder to follow. I personally use procedural code for elements of code that aren't necessarily objects or meant to be object oriented, or for basic API functions used throughout the code. For things that can be considered objects (where instances need to be created, etc. ) I'll definitely make use of object oriented code very quickly.

What is your opinion? Do you feel the advantages of clean code and the lack of conflicts between variables and function names are worth the mess involved in making entire projects 100% object oriented? Or... are you more like me and use object oriented code only when it makes a specific task at hand significantly easier?

Reply
#2
SCENE 1:
* Electric2Shock doesn't know what object oriented code means.

SCENE 2:
* Electric2Shock feels happy to know there is an option that says " What's object oriented code?"

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What code editors do you use? Darth-Apple 6 4,932 January 19th, 2023 at 6:04 AM
Last Post: tc4me
  Lines of Code... Darth-Apple 1 2,710 March 1st, 2020 at 10:01 PM
Last Post: Lain



Users browsing this thread: 1 Guest(s)

Dark/Light Theme Selector

Contact Us | Makestation | Return to Top | Lite (Archive) Mode | RSS Syndication 
Proudly powered by MyBB 1.8, © 2002-2024
Forum design by Makestation Team © 2013-2024