DEV Community

Discussion on: Demystifying Object-Oriented Programming(OOP) in PHP

Collapse
 
jhilgeman profile image
Jonathan H

If the purpose of your article is to "de-mystify" something, then you should try to stay away from uncommon words and concepts that the audience might not know yet. For example:

"OOP is a nothing other than a programming technique or paradigm that makes use of classes and objects to write application programs."

If I were someone who didn't know PHP OOO yet and I started reading, my brain would already be stopping, saying:

"Paradigm? I know that word - it means... Uhh... It means like a... Oh whatever, I'll keep going. Classes and objects?! I don't know what those are. This article must be assuming I know things that I don't know yet, so I'm going to just stop here and not waste my time."

That won't be everybody, of course. Some people will read on to discover what classes are but most beginners get easily frustrated when they feel left behind by the teacher.

Saying "... makes use of THINGS CALLED classes and objects..." tells the reader that you don't expect them to know those concepts yet and an explanation is coming.

Stay away from words you don't hear every day by two or more people, and use words that a 5-year-old can understand whenever possible. Remember that people are learning new words as part of learning this new concept and the more familiar the SURROUNDING terminology, the easier it will be to understand those words.

Consider:
"The versimountable dynamics of programming education"
vs.
"The versimountable ins and outs of teaching programming"

If you were learning "versimountable" (if it were a real word), then the simpler surrounding words help the reader focus on the new term because they're not having to mentally parse the rest of the sentence.

Maybe start your article like this:
"Object-oriented programming (OOP) means thinking about programming the same way we look at the real world. Instead of planning an application by thinking about 'algorithms' and 'functions' , OOP tries to imagine the application as if it existed in the real world. Have a bakery? Well, you need a baker, and an oven, and so on. All of those things are objects, and you define objects by using things called 'classes".

Collapse
 
brandondamue profile image
Brandon Damue

Thank you very much for your review sir. Honestly, this review will help me to start looking things from another perspective. I'll take all you have said into consideration and then try to optimize my writing style. Thanks again