DEV Community

Discussion on: SOLID is not applicable

Collapse
 
htissink profile image
Henrick Tissink

let's have a look at Open-Close - "Classes should be open for extension, closed for modification". Apply this to functions - could we say that "functions should be closed for modification, and created in such a way that we can chain/compose them together (think higher-order functions)". Again, I guess it's just perspective. Liskov Substitution is a bit of a tough one tho haha :D

Thread Thread
 
adam_cyclones profile image
Adam Crockett 🌀

SO then. A beginner might say I know I'm using SOLID in an FP context but when interviewed, they may find it hard to apply the other principles and perhaps feel a bit silly 🤷‍♂️. Missinformation is the killer of budding careers that could have been. Or perhaps it's not reading up on your design patterns.
Anyway I know I'm guilty, I say stupid stuff all the time. To be corrected years later, Anyways thanks for stopping by.

Thread Thread
 
htissink profile image
Henrick Tissink

Haha! I am the king of saying stupid things - I guess the important part is not being scared to do that, and learning from it too.