DEV Community

Discussion on: OOP a software development mass psychosis

Collapse
 
illfygli profile image
ugla

Let's try in one of the original object-oriented languages. :)

[Transcript show: 'Thomas is cool'] repeat.
Enter fullscreen mode Exit fullscreen mode
Thread Thread
 
polterguy profile image
Thomas Hansen

Hehe, Simula ...?

Thread Thread
 
illfygli profile image
ugla

Smalltalk :D

Thread Thread
 
polterguy profile image
Thomas Hansen

Smalltalk is one of those languages I in general respect, although I've never really dived into it ...
Alan was a smart guy ;)

Thread Thread
 
istvanujjmeszaros profile image
István Ujj-Mészáros

"The above system was using Durandal as an "MVC framework" to "increase code quality"."
Actually, enforcing MVC in a framework is bad architecture. It applies to any MVC framework. Frameworks should focus on core business tasks like user handling, authentication, and authorization. Assigning the responsibility of handling views to a framework may cause modularization and componentization efforts to fail, potentially resulting in spaghetti code, regardless of whether OOP or FP is used.

A more effective approach involves a modular framework implementing the hexagonal pattern, complemented by a separate module responsible for input and output. In the context of web applications, this can appear as a CMS module, but this principle can apply broadly across various application types.

Routing handled by a framework can be a warning sign, and plain wrong in applications where different UI themes or outputs might necessitate rendering different components for the same URL or input.

When considering maintainability, the coding approach (OOP or FP) or the number of lines of code (LOC) aren't the main focus. The key lies in the application of best practices and adherence to proper principles."

I hope this revision is more to your satisfaction. Please let me know if there are other aspects you'd like to modify.