Sunday, May 12, 2024
HomeJavaScriptThe Ember Occasions - Situation No. 138

The Ember Occasions – Situation No. 138


Blissful Worldwide Girls’s Day, Emberistas! 🐹

2020 Ember Group Survey due this Sunday 📈, the attainable way forward for app hooks and testing directories 📂, the evolution of Ember and Intercom 🚀🐹, splitting & migrating your challenge to a monorepo 🐘, learn the weblog submit on modifiers 🦄, and learn the way to make use of Ember with WebAssembly (Rust) 💡!


If you have not but, please take a short second of your day to fill out the annual survey! Your suggestions will help everybody form Ember higher. 💞


For the reason that early days of the framework, the Ember CLI has been a significant factor for productiveness and nice developer ergonomics when creating Ember apps. And some time in the past Mehul Kar (@mehulkar) submitted two new Requests for Feedback (RFCs) to counsel much more enhancements for the favourite productiveness software of any Emberista!

In RFC#575: Check Directories a brand new listing construction for testing is proposed. The change of take a look at sort names within the official Ember testing guides that adopted the implementation of RFC#232: Simplify QUnit Testing API conjures up the brand new listing format: f.e. information for testing part performance was once known as integration assessments within the former Ember QUnit testing API, and have been renamed to rendering assessments. To mirror this transformation within the documentation, the brand new RFC suggests to maneuver DOM-focused part assessments from assessments/integration/**-test.js to assessments/rendering/**-test.js accordingly. You possibly can study extra concerning the detailed design by studying the unique proposal.

With RFC#578: Potential to hook into construct course of with out addons, a suggestion for extra developer flexibility for an app’s construct course of is made. The proposal means that treeFor hooks offered by BroccoliJS – a core library for powering the Ember CLI construct pipeline – ought to be out there through the choices parameter of an Ember app occasion. This might enable future Ember builders to leverage treeFor hooks in an app itself with out creating a supplementary addon (which is presently the one means to make use of these construct pipeline APIs instantly). To study extra concerning the motivation behind this RFC, remember to take a look at the pull request on Github and be happy to go away your ideas and questions within the feedback under.


You probably have not had an opportunity to take a look at Gavin Joyce’s (@GavinJoyce) weblog submit on the evolution of Ember and Intercom, and the accompanying speak, you would possibly wish to give it a learn / watch!

The weblog submit covers the large development of Intercom over 6 years, how the corporate got here to decide on Ember and the way Intercom’s development tracks with the expansion of Ember over time.

Apparently, lots of the ideas of R&D, design and Engineering overlap with Ember’s conventions and launch cycles.

The weblog submit additionally supplies some good element on the technical evolution in Ember’s rendering engine and it supplies a have a look at how Ember Octane can allow us to write stunning, minimal and clear parts in principally native JavaScript.

It is an interesting and inspiring learn, and it’s totally cool to see how the steadiness and innovation of Ember has allowed Intercom to construct the wonderful product it’s in the present day!


Robin Philip Thomas (@MalayaliRobz) particulars his expertise having labored with an enormous codebase and the difficulties he and his staff had confronted with an enormous monolith and the way they cut up their codebase to a number of engines and add-ons. Whereas that wasn’t sufficient, he goes on to clarify how dependencies brought on issues associated to model upgrades in every repository. In consequence, he talks about how he arrived at utilizing Yarn workspaces and the way Lerna solves these issues. Take a look at the weblog submit!


Ava Gaiety Wroten (@sharpshark28) wrote a weblog submit on the ember-modifier addon which supplies an API for authoring factor modifiers in Ember.

We discover ways to use the {{on}} modifier to trace the main target state of a DOM factor. The weblog then describes the best way to deal with key presses by creating our very personal modifier equivalent to the instance {{key-down}} under:

{{!-- my-component.hbs --}}
<button
  {{key-down this.handleEnter key='Enter'}}
  My Button
</button>

In contrast to attributes, factor modifiers don’t run on the server-side, as a result of there isn’t a general-purpose and full method to serialize the outcomes of a component modifier into HTML.

Make sure you take a look at ember-render-modifiers and ember-focus-trap as nicely and browse the full article on Ember modifiers!


WebAssembly (wasm) is a know-how that allows high-performance computing (historically achieved with C or C++) on the internet.

Martin Feckie (@mfeckie) printed a information on how one can combine your Ember app with a Rust program. Martin walks you thru the best way to generate UUIDs and plot Mandelbrot units. These examples symbolize a fancy calculation that you just would possibly do in a manufacturing app.

We encourage you to take a look at the article! Alongside the best way, you too can choose up slightly little bit of TypeScript + Octane, dynamic import, and {{ref}} modifier. 🎶


This week we would prefer to thank @kratiahuja, @Gaurav0, @mansona, @MelSumner, @jenweber, @venusang, @mehulkar, @mwpastore, @MichalBryxi, @pzuraq, @HeroicEric, @igorT, @locks, and @knownasilya for his or her contributions to Ember and associated repositories! 💖


Office Hours Tomster Mascot

Questioning about one thing associated to Ember, Ember Information, Glimmer, or addons within the Ember ecosystem, however do not know the place to ask? Readers’ Questions are only for you!

Submit your individual brief and candy query beneath bit.ly/ask-ember-core. And don’t fear, there are not any foolish questions, we recognize all of them – promise! 🤞


Need to write for the Ember Occasions? Have a suggestion for subsequent week’s problem? Be part of us at #support-ember-times on the Ember Group Discord or ping us @embertimes on Twitter.

Carry on high of what is been occurring in Emberland this week by subscribing to our e-mail e-newsletter! You may as well discover our posts on the Ember weblog.


That is one other wrap! ✨

Be form,

Chris Ng, Abhilash, Jessica Jordan, Isaac Lee, Jared Galanis, Amy Lam and the Studying Group



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments