DEV Community

The Power of Object-Oriented Programming: Exploring the Significance of OOP and its Oceanic Analogies

Storm Anduaga-Arias on August 28, 2023

Introduction In the world of software development, various programming paradigms shape the way we design and structure our code. One par...
Collapse
 
cicirello profile image
Vincent A. Cicirello

Hi. Nice simple explanation of OOP concepts. I have a couple suggestions.

First suggestion: You can improve readability if your code block with syntax highlighting. Here's how:

```Python
class Foo:
    def __init__(self):
        self.x = 5
```
Enter fullscreen mode Exit fullscreen mode

Produces:

class Foo:
    def __init__(self):
        self.x = 5
Enter fullscreen mode Exit fullscreen mode

It works for most languages. Just change Python to whatever language name.

Second suggestion: Since your example is in Python, the tag #python would be a good choice. I recommend swapping out #discuss for #python. DEV's #discuss tag is really for posts soliciting readers opinions or thoughts on something, such as explicitly asking the readers a question to respond to.

Collapse
 
fullstackstorm profile image
Storm Anduaga-Arias

Thank you! I love the feedback and will retag!