Skip to content
loading...

re: SOLID principles in the Go programming language VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I feel like SOLID has lost much of it's relevance even for OO languages. Looking at my main language C# it is moving away from many of the classic ...
 

Could you give an example where the open closed principle applies in Go?

 

"... Robert C. Martin and others redefined the Open/Closed Principle to the Polymorphic Open/Closed Principle. It uses interfaces instead of superclasses to allow different implementations which you can easily substitute without changing the code that uses them. The interfaces are closed for modifications, and you can provide new implementations to extend the functionality of your software."

google.com/amp/s/stackify.com/soli...

Noone likes inheritance anymore :)

code of conduct - report abuse