5

Spread operator is so fucking based!!!

Comments
  • 2
    best*
  • 2
    Pretty effective shallow copy
  • 2
  • 1
    It really is
  • 2
    Spread it for papa ( ͡° ͜ʖ ͡°)
  • 1
    Based on what?
  • 0
    I used the spread operator for the first time while learning react but what is it based on?
  • 1
  • 0
    @Root Not in terms of efficiency, but it's elegant, innovative and can be useful in many cases
  • 1
    @theabbie I meant: “based” is different than “best.” It wasn’t a typo.
  • 0
    @Root It was meant to be a joke, but anyways
  • 2
    @theabbie it does not necessarily have to have any performance penalty as its most likely just rewritten into a more standard form under the hood.

    And many times it will be easy for the compiler to find the best way :)
  • 0
    @Voxera Some Stackoverflow Answers suggest it is slower, but that's unnoticeable unless there are millions of items
  • 1
    The only people to upvote were @Root and @vintprox smh lmao
  • 2
    @theabbie as I said “not necessarily “

    Sure for lots of data or some cases hand coding can use your prior knowledge to optimize things as in so many cases.

    But most of us either do not know enough to do a better job or know enough to know its not worth spending the time for it.

    There are almost always something else where you can get better performance gains :P

    And frankly, few of us really build software where that kind of performance tweeking is motivated anyway :)

    Some do sure, but you already know who you are and probably why you would not use spread, if it even exist in the language you use :P
  • 0
    I thought it was supposed to be "biased".
    But what does "based" mean in this context? I googled it but I only found meaning for something being based on something else. But that doesn't apply here apparently.
  • 0
    @Lensflare I believe it's millennial for 'cool'
  • 1
    @K-Hole For fucksake, I'm gen z and I still don't know what based, woke and mood mean.
  • 0
    Anyone found the meaning of "Based"?
  • 0
    @Voxera you said that perfectly, code needs to be completed!
  • 0
    @Lor-inc psst research 'based god'
Add Comment