@aescling like for real kids are really good at taking random shit and slamming it together and getting something new but oftentimes that isn't actually … a good way of thinking about a problem
@aescling there's more to thinking than inspiration
a lot of thinking is just familiarity with good processing algorithms
@nex3 @noelle i just wanted to make sure that was what you meant and not `array.forEach($ => $.add())`
there is currently a proposal for a :: operator which does binding (link: https://github.com/tc39/proposal-bind-this ), but afaict it doesn't do property access (so you would still need other::other.add). it's also Stage 1 which means it is mostly exploratory and may never get added to the language.
i think in most real JS code, one should EITHER:
1) be calling a function from a prototype, e.g. `Set.prototype.add.bind(other)` (i would love a more convenient way of saying this), or
2) be calling bare functions, like `add.bind(other)`, possibly destructured like `const { add } = other`.
the cases where i actually state something like `other.add.bind(other)` are pretty small and usually can be avoided with good API design (`other.add(...array)` or `new Other (...other, ...array)`). not saying it never happens! but i don't think reducing that particular bit of wordiness is necessarily a high priority? in your example i’d probably honestly use a for...of loop because it’s much more readable.
@packetcat myself too if i’m being honest
@Satsuma what is the world wide web but a bunch of people flying around in lil w3 spaceships
@Satsuma there are people i would kidnap for the holidays if i could
@witchfynder_finder in america? yes
@witchfynder_finder they are nature’s pillows
@witchfynder_finder does OP know that women also like boobs
Administrator / Public Relations for GlitchCat. Not actually glitchy, nor a cat. I wrote the rules for this instance.
“Constitutionally incapable of not going hard” — @aescling
“Fedi Cassandra” – @Satsuma
I HAVE EXPERIENCE IN THINGS. YOU CAN JUST @ ME.
I work for a library but I post about Zelda fanfiction.
For the time being, this is mostly a mirror of <https://status.ladys.computer/>. Want to get in touch? E·mail me!