How did you break the habit of writing procedural code?

Jasterix - Jan 6 '21 - - Dev Community

Procedural programming is the first programming paradigm I learned and felt most comfortable with. Even as I learned functional programming, my code has retained a very top-to-bottom, declarative structure, which is limiting in multiple ways.

I'm moving on to object oriented programming role, but still resisting the urge to default to procedural. Even with solving code challenges, I've noticed tendency.

What are some ways to break out of this habit?

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player