I don't really know what this means. To summarise: you want to extend something but not have a dependency on it — how does that work?
-
-
Replying to @jaffathecake @slightlylate and
A design that _allows_ you to not depend on the real implementation. 1/
1 reply 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
You don't spin up real MySQL instances to test your services. Should be able to component test without spinning up real DOM. 2/
2 replies 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
Currently, there's no way to even fake the DOM/define! Define is doing black magic. 3/
3 replies 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
This is a good article: http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/ … 4/4
1 reply 0 retweets 1 like -
Replying to @pemrouz @jaffathecake and
Note the date. We fought for classes and intrinsic subclassing to ES6 to bring much of this out of magic and into explainable JS...
1 reply 0 retweets 2 likes -
Replying to @slightlylate @pemrouz and
That was a long, hard slog. The result is a DOM that is much saner and resorts to magic much less often.
1 reply 0 retweets 1 like -
Replying to @slightlylate @jaffathecake and
Appreciate all your efforts, unf twitter doesn't leave much space to ack positives. Hope you're not worn out tho, web still needs pushing :)
1 reply 0 retweets 0 likes -
Replying to @pemrouz @jaffathecake and
Absolutely, but this is one place where we're in relatively good shape. `super()` does most of the lifting; new can be called at any point..
1 reply 0 retweets 0 likes -
Replying to @slightlylate @pemrouz and
...but until you `define()`, the parser doesn't know about your class, which is fair enough.
1 reply 0 retweets 0 likes
All of this is reasonable. The magic has been safely cordoned off (at considerable effort) and the existing behaviour largely explained.
-
-
Replying to @slightlylate @pemrouz and
More to do here: form participation, breaking the monopoly on API access for validation, reusability of same, etc. But lifecycle sorted.
1 reply 0 retweets 0 likes -
This Tweet is unavailable.
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.