proposal-flatMap VS prevent-smoosh

Compare proposal-flatMap vs prevent-smoosh and see what are their differences.

proposal-flatMap

proposal for flatten and flatMap on arrays (by tc39)

prevent-smoosh

Don't let TC39 use smoosh or smooshMap (by staltz)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
proposal-flatMap prevent-smoosh
2 1
214 730
- -
0.0 10.0
over 2 years ago about 6 years ago
HTML JavaScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

proposal-flatMap

Posts with mentions or reviews of proposal-flatMap. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-10.
  • SmooshGate
    4 projects | news.ycombinator.com | 10 Oct 2022
  • Pipeline Operator and Partial Application - Functional Programming in JavaScript
    2 projects | /r/javascript | 20 Jan 2021
    If you're doing a series of mutations specific to a custom type in that fashion, then there isn't much benefit. But imagine you want to chain operations on an existing type, whether it's a built-in like String, or a type introduced by a different package like sqlite.Database. To use method chaining you'd have to monkey-patch them, which can lead to all sorts of problems: colliding with other packages that want to monkey-patch the same types, confusing the reader when unfamiliar and seemingly undocumented methods appear (why does the SQLite documentation not mention this sqlite.Database#drop method? Which of my installed packages added that? ), your package breaking when the thing you're monkey-patching changes its API, altering object iterations, etc. The troubles with Prototype.js and MooTools in the '00s showed some of the headaches monkey-patching can lead to when it comes to JS especially, where users expect ever-changing browsers to work with 25-year-old code. (I still support changing flatten to smoosh, though.) You might subclass the existing type or encapsulate it in a new type, but then you're potentially breaking the user's typechecking, preventing the use of any other packages that want to do the same thing, escaping tree shaking, and becoming incompatible with unexpected types (what if the user already subclassed sqlite.Database themselves, and want to apply your transformation to that?).

prevent-smoosh

Posts with mentions or reviews of prevent-smoosh. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-10.
  • SmooshGate
    4 projects | news.ycombinator.com | 10 Oct 2022
    Yes. Some folks who variously:

    a) didn't know how to recognize a cheeky straw man proposal

    b) didn't know how to take a joke

    c) didn't agree with (or understand the importance of) the never-break-the-web imperative that TC39 operates under (turns out this is a lot of people)

    tried to do exactly this to "prevent smoosh":

    - https://github.com/staltz/prevent-smoosh

    - https://twitter.com/andrestaltz/status/971500672620351494

    Mostly, though, they just taught TC39 to have less fun and to ignore the "just break the web it's okay!" crowd.

    Why TC39 operates under this never-break-the-web imperative: because if they didn't, every proposal they consider might devolve into an unresolvable discussion of "well is THIS thing important enough to break the web over? how much usage would this change break? how valuable do we think this is?". The easiest, and only, way to resolve all possible such discussions is to just not have them.

What are some alternatives?

When comparing proposal-flatMap and prevent-smoosh you can also consider the following projects:

es1995 - ES1995 – The Missing JS Polyfill

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured