|9 days ago||8 days ago|
|MIT License||GNU General Public License v3.0 or later|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Yet another introduction to Functional Programming
3 projects | dev.to | 12 Jul 2023
Imutability, react and typescrip: how to do it the clean way?
2 projects | /r/reactjs | 8 Apr 2023
Check out Object.freeze. There's also Immutable.js for working with immutable data.
How To Scale Your React Applications
5 projects | dev.to | 7 Apr 2023
Use immutability to manage state updates When updating state in your React application, it's important to ensure that you are not mutating the original state object. Instead, you should create a new copy of the state object with the updated values. Immutability makes it easier to manage state updates and ensures that the updates are performed in a predictable and safe manner. Libraries like Immutable.js provide a set of functions that simplify working with immutable data in React applications.
Functional immutable game state
4 projects | dev.to | 16 Jan 2023
The Immutable.js README has a much more complete description of immutability and why you might want to use the library. Also worth mentioning that Immer is an alternative which is a bit easier to get started with.
"console.log" Sometimes Print Wrong Data
2 projects | dev.to | 5 Jan 2023
Examples: immutable-js Immer
Immutable Collections should be Your Default
2 projects | /r/programming | 28 Oct 2022
I can't speak to C# and Java, but the suggestion in this post: ImmutableJS already uses Persistent data structures. (It's the second sentence of their introduction)
immutable-js VS riux - a user suggested alternative
2 projects | 12 Aug 2022
Twitter Clone Part 3: Adding Tweet Reactions and Showing Notifications
3 projects | dev.to | 29 Jun 2022
feed.feedManager.state.activities is an immutable Map (created with Immutabe.js), so you get the activity object using getIn and toJS methods.
How do I handle objects with shared references in React?
2 projects | /r/reactjs | 1 Jun 2022
You could create explicitly immutable references and state by using a tool like Immer.js or Immutable.js and do something like your example using their API.
4 projects | dev.to | 5 Dec 2023
Lodash is a popular utility library that provides a wide range of methods for dealing with arrays, collections, and objects. Lodash, while not expressly built for multidimensional arrays, may be a useful tool for fundamental array operations.
8 projects | dev.to | 24 Oct 2023
Lodash just declared issue bankruptcy and closed every issue and open PR
I don't think isEmpty is O(n) except in the case where the object is a prototype - I assume that's one of those weird JS edge cases - otherwise it does what you expect, which is to iterate with a for-in loop and return on the first iteration, so it is O(1).
lodash/fp is an optional distribution of lodash that did what the core library did, but did so in a more flexible, powerful, composeable way that makes it easier to construct powerful functions. it was separate from the core, but based heavily on it. https://github.com/lodash/lodash/wiki/FP-Guide
at the time, nothing was settled. we were in a pioneering mode of building; we didn't know what people would find useful or what the future would hold. there were a lot of different ideas floating around, and lodash was trying to stay the same while also offer a port to this barely-subtly-different paradigm, to see what value might be found there. saying that "introduced" it feels like a crude reduction to me; he allowed people the option they asked for.
i personally think fp - in particular - "pointsfree" fp - has huge down sides to being understandable. but it also is a much more succinct and capable way of expressing things, and multiple times a week i run into situations where auto-currying or reverse args would make the code i write much cleaner & not damage code comprehension.
rather than call fp a fad, & insult the author for ever letting it in, i think there's room to say that it's sad that js had to stay on the lowest common denominator. the future was unable to be changed, the old ways stuck. we lost some really good opportunity & capabilities. that said, i still think the pointsfree style is hugely damaging & responsible for greatly reducing the chances we had to improve. instead, we're not "moving on", we're going back to square 1, to the only thing we've ever known or done. that makes me a little sad, to have the pioneering pack up & move back into the city.
The bigger news is that Lodash is migrating from Node.js to Bun: https://github.com/lodash/lodash/commit/97d4a2fe193a66f5f96d...
There’s more discussion in this issue:
Frankly I commend the author. If you’re maintaining one of the most used open source packages, I think it must be overwhelming to get so much feedback. Realistically a team of 4 people probably working full time could manage a package like that and it seems like it’s just one guys side project.
They tagged 363 issues with "issue bankruptcy" and closed them: https://github.com/lodash/lodash/issues?q=is%3Aissue+is%3Acl...
Same for 325 PRs: https://github.com/lodash/lodash/pulls?q=is%3Apr+is%3Aclosed...
Hey! Thanks for sharing. I just want to point out that there are some tried and tested libraries out there that solve some of these problems already. You should check out `lodash`(https://lodash.com/) if you haven't already. Also, there is an array method called `splice` that could improve your implementation of `insert` at first glance.
How to kickstart automated test suite when there are 0 tests written and the codebase is already huge
4 projects | dev.to | 29 Jun 2023
Alright, now that I’ve got your interest piqued, let’s delve into the real stuff – tangible examples of Pythagora in action. For the purpose of our demonstration, we selected a well-known open source project, Lodash.
20 Essential Parts Of Any Large Scale React App
15 projects | dev.to | 2 Jun 2023
lodash : Data manipulation
What are some alternatives?
lazy.js - Like Underscore, but lazier
Immer - Create the next immutable state by mutating the current one
immutability-helper - mutate a copy of data without changing the original source
Rambda - Faster and smaller alternative to Ramda