← Graph

When to use OOP vs procedural

question 2 connections

Audience question: one of Ivan's arguments is that service objects aren't really objects, yet his own approach goes fully in the opposite direction of OOP. When would he use an object-oriented paradigm rather than procedural programming? Ivan's answer: OOP is appropriate for developing frameworks, extending frameworks, or writing libraries/gems. Most everyday application code should be plain procedures, as simple as possible. Concepts like monads and dependency injection belong in library internals, not regular code.

answer_summary
Use OOP for framework/library development and internals. Daily application code should be procedural and as simple as possible.
question When to use OOP vs procedural
about
Question challenges the talk's procedural, non-OOP approach.
question When to use OOP vs procedural
asked_at
Q&A question at the talk.

Provenance