DEV Community

Discussion on: Fundamentals of Functional JavaScript

Collapse
 
bmehder profile image
Brad Mehder

I find FP to be intriguing, but I have been making apps with Svelte lately. I find it difficult to use FP patterns with a framework that is based on a MVVM pattern. How can I make use of FP with MVVM?

I am looking forward to the rest of the articles in this series. Thank you for doing this!

Collapse
 
anmshpndy profile image
Animesh Pandey

Agreed. FP patterns, in general, can sometimes be difficult to implement with many frameworks. In that case, we can only try our best to accommodate them. Perhaps, I'll try to cover this by taking examples of some common frameworks. I personally haven't worked with Svelte yet, I'll check it out sometime.

In my own view, a framework that doesn't allow enough freedom to try various design patterns, is too restrictive to work with; since it basically feeds you its own guidelines at that point, and forces you to only think along those lines.

This might be a good idea to cover later. Thanks for the suggestion!

And, thank you for enjoying this! It takes a lot of time to put these together, but it is very rewarding if it helps even one person out.

Collapse
 
myleftshoe profile image
myleftshoe

Have you seen cyclejs? Didn't/hasn't really taken off - possibly because it's too far from the norm. It's a "framework" that suffers the opposite restrictiveness problem to most others - forces you to think functionally

Thread Thread
 
anmshpndy profile image
Animesh Pandey

Ah, no hadn't heard of it yet. It looks really interesting from an overview of its docs. Time to try it out someday? Thanks for sharing!

Thread Thread
 
myleftshoe profile image
myleftshoe

Check out the authors videos about it too - really good

Thread Thread
 
anmshpndy profile image
Animesh Pandey

Are you talking about these ones on Egghead? app.egghead.io/playlists/cycle-js-...

Thread Thread
 
myleftshoe profile image
myleftshoe

Sorry, haven't got the link anymore but there's one where he describes the philosophy behind it

Thread Thread
 
myleftshoe profile image
myleftshoe
Thread Thread
 
anmshpndy profile image
Animesh Pandey

Oh my. It is ultra insightful! Will have to go through it a couple of times to properly appreciate.

Thread Thread
 
johnkazer profile image
John Kazer

Might also like Hyperapp

Thread Thread
 
anmshpndy profile image
Animesh Pandey

Thanks!