The redux best practices says not to mix plain javascript object with immutablejs objects. I'm trying my hand at functional programming and it seems like the monads require the computations/values to be stored inside an object, or some container of sorts. AFAIK immutablejs maps can't store methods. Are there any issues with using FP libraries like Folktale? I haven't noticed any noticeable issues with the basic todo app (which is all I can try at the moment), so I'm hoping for some clarification on immutablejs best practices, hopefully FP leaning.
Immutablejs within plain objects - Monads
303 Views Asked by jmmendez At
1
There are 1 best solutions below
Related Questions in FUNCTIONAL-PROGRAMMING
- On Google Sheets (and only built-in functions allowed, no Google Apps Script) Is it possible to simulate pipe function?
- Why does Enum require to implement toEnum and fromEnum, if that's not enough for types larger than Int?
- Is there a functional way to map a list (N elements) to a list of sums of adjacent elements (N - 1 elements) in Kotlin?
- How to count the occurences of every element in a list in Haskell fast?
- Combine lists with absolute index in functional programming
- How to refactor a loop with iterator. (Returning from closure)
- In Haskell, what does `Con Int` mean?
- Setting up different Java class fields value by a single value on some counter value
- Why doesn't map read show (Integer) work to separate each value in a string of Integers?
- Grouping by multiple fields and counting using in Java 8
- Variable capture: How variables behave in function closures
- Composing React Providers with Value props in Typescript
- How can atomicModifyIORef cause leaks? And why does atomicModifyIORef' solve the problem?
- How can I change XMobar's Kbd monitor plugin such that clicking on it loops throught the layouts?
- How to get success or error data without folding the response while using fpdart in flutter?
Related Questions in IMMUTABLE.JS
- Unknown type in Immutable object
- How to convert a nested data structure to an immutable one in a type-safe way when using Immutable?
- ts(2532) Object possibly undefined after undefined check
- ImmutableJS 4+ Record extension with lazy computed property
- Immutablejs flatMap only preservers first element of inner map?
- Check if a string exists in an Immutable.Set<string[]>
- Jest: Error: Uncaught [TypeError: item.set is not a function] for ImmutableJS Record
- Avoiding type assertion when using useSelector with Redux, Immutable.js, and TypeScript
- testing issue in redux saga method using jest
- Update deeply nested state object in redux without spread operator
- Is there a way to set and push at the same time in a Redux action?
- How do I grab value from nested immutable Map Object? Please Answer
- What are the advantages of immutable data?
- How to access value in immutable object/map in JS?
- Immutable.js difference between toJSON() and toObject() on Record
Related Questions in FOLKTALE
- fantasy-land confusion on ap method signature
- Folktale: combine Result and Task (or just promise)
- How to extract the value out of Monads in the Crocks javascript library
- How to apply properties of an object to functions?
- IO as First In Composition Chain
- What is Folktale's Future for?
- Pure Asynchronous Tasks in Javascript
- migrating from data.task to folktale on handling rejection
- Folktale / fantasyland Maybe not working as expected
- Convert Fluture Future to folktale Result
- Nested Validations With Folktale
- By using functional programming javascript with folktale2, how to access results of previous tasks gracefully?
- Immutablejs within plain objects - Monads
- λ: folktale data.task - apply an unknown number of Tasks
- Can `Either` types be transformed to `Task` types?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Ok, I feel like a fool. I read the linked article again and saw that it's not about performance, but to avoid confusion as to when data passed is immutable or a pojo. Here's the relevant section from the article
http://jlongster.com/Using-Immutable-Data-Structures-in-JavaScript