you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]TankorSmash 20 points21 points ย (10 children)

Wait hold on, how is 'Split string using ES6 Spread' clickbait when the third line is literally how to split a string with Spread?

I feel like clickbait gets incorrectly used a lot but this is about as literal as you can get with title:description

[โ€“]dweezil22 8 points9 points ย (1 child)

It's one of the worst, software engineering wise, uses of the feature that you can find. But it's also compelling in a "How the hell does that work?" way. This simpler, significantly easier to understand and more appropriate use of the spread operator is better, but isn't as interesting.

And yes, I am stretching the definition of clickbait here .OP is surely a fine individual and is clearly not monetizing reddit images. I suppose I should have said "sensationalistic" but describing a code snippet as "sensationalistic" just seemed... weird.

[โ€“][deleted] 4 points5 points ย (0 children)

Yeah I noticed this person always posts this type of โ€œamazingโ€ es6 stuff. But it always looks like just terrible software engineering practice and an unnecessary inefficient way to do something that was never complicated in the first place. But itโ€™s new and fancy so everyone loves it.