Twitter | Search | |
The p is silent
I love code, music, the web, and . I am an emoji factory 🏭. He/Him/They/Them. framework core team member,
1,254
Tweets
527
Following
698
Followers
Tweets
The p is silent retweeted
Tom Dale 4h
I didn't notice Apple TV+ has a web version () but it looks like it's an Ember app. Pretty cool!
Reply Retweet Like
The p is silent Jul 9
This is how Ember is moving forward at the moment, but we also have strong control of the build-chain, so we can choose to use a particular decorator transform as a community. Definitely can see how it would be harder when you have to support all of them
Reply Retweet Like
The p is silent Jul 9
It doesn't actually, but only because converting to a getter/setter completely removes the class field (basically changes the element-type). You can't have both initialization and accessors in Babel decorators at the moment, that's the tradeoff
Reply Retweet Like
The p is silent Jul 9
ah, makes sense, though Babel decorators don't have this issue, I suppose TS users don't really have any other options at this point 😕
Reply Retweet Like
The p is silent Jul 9
ah, that makes sense. You would still need to define the getters/setters once per instance though, no?
Reply Retweet Like
The p is silent Jul 9
Interesting, it looks like you'll need to use `makeObservable` for normal decorators to work as well. Wonder what prompted the change here (cc , definitely curious if you have time!)
Reply Retweet Like
The p is silent Jul 9
FWIW, this is something that could be done with revision tracking. You could make a library that dynamically adds getters and setters which forward to storage. It would use techniques similar to the ones in this blog post:
Reply Retweet Like
The p is silent Jul 9
funnily enough, I'm actually currently working on a drop-in refactor of MobX with revision tracking so very familiar with the code right now 😄 not something that will be used with Ember (we don't need it) but definitely interesting to see the differences and similarities
Reply Retweet Like
The p is silent Jul 9
The way they do this, it looks like, is by iterating the ownProperties of the object and dynamically annotating them/turning them into observables. Personally, I think the performance of that is likely to run into some issues at scale, but I also understand hedging decorators atm
Reply Retweet Like
The p is silent retweeted
Balint Erdi Jun 29
This is the part where I am somewhat annoying to sell a few more copies of the book but I only do this every now and then. The 25% discount expires in ~14 hours, so grab a copy with coupon code "no-quarter" while you can:
Reply Retweet Like
The p is silent Jun 24
Replying to @iamdtang
I like to think of them as “functional” components 😄 similar concepts/use cases
Reply Retweet Like
The p is silent Jun 23
's create-rwjblue-release-it-setup package is hands down the best experience I've ever had setting up packages for release. Adds a changelog, automates the entire process, and makes it a breeze - just need to npx and that's it, 💯
Reply Retweet Like
The p is silent Jun 16
No, but this should be handled by the `{{modifier}}` helper. I believe that will be implemented in the course of implementing strict mode
Reply Retweet Like
The p is silent retweeted
EmberJS Jun 8
The RFC to add the --lang flag to new Ember apps has now entered FCP- get your final comments in now!
Reply Retweet Like
The p is silent retweeted
Dan Freeman Jun 4
Maintain a lib that ships with types? has written a fantastic document on how changes to your types (and to TS itself!) can impact semver guarantees. Framed for the Ember community but useful for anyone who maintains TS packages!
Reply Retweet Like
The p is silent retweeted
EmberJS Jun 1
Reply Retweet Like
The p is silent May 24
Replying to @viniciussbs
Alternatively if you still need to support IE11, consider tracked-maps-and-sets. TrackedMap should work with each-in:
Reply Retweet Like
The p is silent May 24
Replying to @viniciussbs
Decorating a property moves it to the prototype instead of the instance, since it turns it into a getter/setter, so this is expected. If you need an iterable key/value store, consider tracked-built-ins:
Reply Retweet Like
The p is silent retweeted
EmberJS May 21
Happy Global Accessibility Awareness Day! Here’s how Ember empowers developers to create accessible applications:
Reply Retweet Like
The p is silent May 21
I would personally be ok with a much more minimal and less expressive API surface. Really just a way to bypass standard proxy logging and tell the browser to log a different object. That's just for this use case though.
Reply Retweet Like