Top Tweets for #SmooshGate
Ever wondered why #JavaScript has `Array.flat()` but not `Array.flatten()` like other languages? The answer is: the patching of `Array.prototype` by MooTools that created the incompatibility - and it's caused the infamous #SmooshGate!
Best reply haha. #smooshgate
@rossipedia It's okay, in future versions of ECMAScript, they will introduce `fwoosh()` to avoid breaking React-flavored monkey-patched fetch behavior
@WebReflection @Keithamus better late then never. invoking Array.prototype isn't as good an argument as you think. one day, custom elements will have their own #smooshgate moment, and @sebmarkbage will turn to the camera and say 'i tried to warn them'
JavaScript tip: Array.prototype.flat flattens nested arrays ✨ Its only argument specifies how deep a nested array structure should be flattened
Find more https://t.co/Ca3WTusZNV
#SmooshGate FAQ https://t.co/1PSTOVgKDi :-)

Remember #SmooshGate?
🚫 Problem:
A JS feature Proposal named ".flatten()" broke some websites that ran MooTools and its non-standard implementation of flatten. Some proposed ".smoosh()" instead.
✅ Solution:
It got later renamed to ".flat()" and (nearly) everybody was happy.
JS tip: Array.prototype.flatMap is a lot like map(), except it flattens the result into a new array: https://t.co/jvtr4EnYsQ

👋 Who remembers #smooshgate?
👉 @ljharb remembers #smooshgate!
🤓 One of many fun moments on https://t.co/mCbe9uhpVd
Never forget #SmooshGate from 2018 when people thought the JS proposal author was serious when they suggested we name a new array method "smoosh" instead of "flatten", because it was true that flatten couldn't be used.
https://t.co/W1ylAdGNjV
@essenmitsosse @ljharb It also creates more friction btwn implementors (platform folks) & developers. Incidents like #SmooshGate are a good example of this - we value DX over UX, & accessibility - consequently forgetting that we are here to serve our users first, & our needs are a far second or third.
@wmhilton LOL - this reflection is based on our (web devs) historical attitudes on this stuff. It seems every-time a decision rolled back or altered under the guise of not breaking the web, we have a public out-roar. Ex #SmooshGate . Don't know why devs think their DX trumps UX & access 🙄
@addyosmani @dan_abramov A Javascript story I didn't know : https://t.co/ELuBe448Ch
Thanks ! #smooshgate
He visto últimamente muchos ejemplos de flat() y flatMap() y la verdad pensé que no iban a existir por todo el tema del #smooshgate y resulta que era una broma! https://t.co/JNvCyXjrxo
@jamonholmgren @mjackson Ha even deeper cut. They didn't want to add a `.flatten` method and instead wanted to call it smoosh because of Mootools extended prototype and the default wasn't compatible so anything using mootools flatten would possibly break. Therefore SMOOSHED
#smooshgate
@padolsey @rauschma Yeah ... no. Please avoid putting methods on built-in prototypes, or you'll potentially create future problems, i.e. #SmooshGate
@jaffathecake @zachleat @kosamari @DasSurma @_developit Right call! Also because #smooshgate got solved before #ChromeDevSummit 👍
Flatten Arrays in Vanilla #JavaScript with flat() and flatMap(): https://t.co/syCGAaec1Y #js #smooshgate
Last Seen Hashtags on Sotwe
นวดเมืองพล
Seen from Thailand
دياثة
Seen from Egypt
momson()()() or #exny()()() or #nolimit()()() +filter:native_video
Seen from United States
momson()* filter:native_video
Seen from Netherlands
momson video,
Seen from Germany
MutualOrgasm
Seen from Qatar
xlii or #nolimit or #teenagee() +filter:native_video
Seen from Turkey
คลิปทางบ้าน
원정녀31호
Seen from Korea
nsfw_acc
Seen from Pakistan
Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241.2M followers

Barack Obama 
@barackobama
119.1M followers

Cristiano Ronaldo 
@cristiano
112.6M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
107.1M followers

Rihanna 
@rihanna
98.2M followers

NASA 
@nasa
92.2M followers

Justin Bieber 
@justinbieber
91.4M followers

KATY PERRY 
@katyperry
88.9M followers

Taylor Swift 
@taylorswift13
82.8M followers

Lady Gaga 
@ladygaga
74.3M followers

Virat Kohli 
@imvkohli
71.7M followers

Kim Kardashian 
@kimkardashian
70.4M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
64.6M followers

Bill Gates 
@billgates
64.5M followers

The Ellen Show
@theellenshow
62.4M followers

Selena Gomez 
@selenagomez
61.9M followers

CNN 
@cnn
61.8M followers

X 
@x
60.8M followers





















