I've not come across cupid before but I love it!
One thing that always irks me about solid is it's so steeped in OOP, you really have to twist and squint to apply it to anything else. (It's ironic that principles around coupling are tightly coupled.)
Cupid is actually much easier to apply to FP because it's more about attitudes and approaches than language-specific constructs.
Thanks for sharing!
You probably haven't noticed yet, when next you're coding and you come across two or more different functions talking to a variable outside its scope, that a function to class refactoring screaming
I haven't finished watching this yet (~10 minutes in) but this is a classic age-old debate that has been beaten to death: performance vs readability.
Personally, I think until you actually hit genuine performance issues, readability is way way more important.
Also, this just backs up my view that 99.999% of all Clean Code and SOLID examples are demonstrated in OOP languages and just completely ignore their potential application to FP paradigms.
I would consider listen someone that speeches and write in a mirror board =) this guy is fire.
Why they block comments on that video?
Why complain about performance on using "CLEAN" arguing old times, why not instead make a proposition to compile (or transpile) the readable code in a performant way? common, its 2024... in build time time AI can switch for whatever more performant the code can be, why dont we just stop fight and look for a way out?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've not come across cupid before but I love it!
One thing that always irks me about solid is it's so steeped in OOP, you really have to twist and squint to apply it to anything else. (It's ironic that principles around coupling are tightly coupled.)
Cupid is actually much easier to apply to FP because it's more about attitudes and approaches than language-specific constructs.
Thanks for sharing!
Don't worry most cases our functions will evolve to classes through refactoring, and that's where SOLID comes in.
Refactoring function into classes? I don't think has ever happened to me ever...
You probably haven't noticed yet, when next you're coding and you come across two or more different functions talking to a variable outside its scope, that a function to class refactoring screaming
It’s really not? And if you’re applying FP then it’s really really not!
@merhmood
FP: different is not the same as difficult.
That said JavaScript is function-oriented.
FYI:
I haven't finished watching this yet (~10 minutes in) but this is a classic age-old debate that has been beaten to death: performance vs readability.
Personally, I think until you actually hit genuine performance issues, readability is way way more important.
Also, this just backs up my view that 99.999% of all Clean Code and SOLID examples are demonstrated in OOP languages and just completely ignore their potential application to FP paradigms.