Thursday, May 9, 2024
HomeJavaScriptThe Ember Occasions - Problem No. 145

The Ember Occasions – Problem No. 145


👋 Emberistas! 🐹

Ember Styleguide 4.0.0 launch 🔥,
autotracking case examine with TrackedMap 🐾🗺,
easy drag and drop in Ember Octane 🐺,
meet 2 builders who grew to become Ember builders 🎉,
and final, however not least, watch the brand new EmberMap video on the {{fn}} helper 📺!



A brand new Ember Styleguide launch was reduce at the moment 🛳 and it represents an enormous quantity of labor by various contributors over the past 12 months: 372 commits, 719 recordsdata and 13 contributors to be actual! 😱 Take a look at the app right here on the net as nicely.

To see any of the person adjustments, please take a look at the pre-release variations within the changelog. The adjustments are too many to seize right here, however listed here are a couple of of the excessive stage overviews:

  • Take away ember-cli-addon docs in favor of field-guide for higher website positioning
  • Take away parts that aren’t actively being utilized in any challenge
  • Implement base kinds which are frequent throughout all the Ember web sites
  • Implement frequent CSS helpers for issues that do not want a devoted element
  • Improve a lot of the remaining parts to Glimmer parts
  • Streamline the CSS construct pipeline to take away duplicate CSS and enhance its Lighthouse rating

Chris Manson (@mansona), Mel Sumner (@MelSumner), Florian Pichler (@pichfl) and so many extra deserve large props 🙌🙌🙌 for this milestone launch that may assist growth in all of the Ember net properties! 🎉


Within the newest version of his weblog submit sequence on autotracking in Ember Octane, Ember Core crew member Chris Garrett (@pzuraq) offers us perception into an fascinating case examine to discover the new reactivity mannequin in Ember Octane even additional. He outlines the right way to construct a TrackedMap – an autotracked model of JavaScript’s built-in Map class – and why constructing and utilizing such a category will enhance the developer ergonomics and efficiency of our Ember apps.

Curious to be taught extra? Learn the total submit on @pzuraq’s weblog!

And by the way in which: Regardless that the case examine can be an in depth information on the right way to develop your individual TrackedMap, you do not have to construct it your self, to have the ability to use this superior function in your Ember app. Take a look at @pzuraq’s neighborhood addons tracked-built-ins or tracked-maps-and-sets to autotrack Maps at the moment!


In his tutorial, Easy Drag and Drop in Ember Octane, Ember developer Derek Gavey (@dgavey) offers you an easy Ember Octane approach of creating an HTML drag and drop interface on your web site. The code is minimal and you may lengthen it to fulfill your wants.

The key? You should utilize modifiers to simplify including drag occasions. Derek breaks all the pieces down for you and explains every step.

I feel articles like this may assist you to construct your developer skillset. There’s numerous helpful data in Derek Gavey’s piece. We sit up for studying his subsequent article on the right way to make a sortable record!


Say whats up to Francisco Quintero (@cesc1989). Francisco is a software program engineer who lately migrated his app Intrati from Svelte to Ember Octane in 16 days! In each instances, a pal advisable the framework and he realized by studying documentation, writing checks, and coding by trial-and-error.

Within the weblog submit, Francisco shares what he appreciated and what he discovered to be tough to do in Svelte and Ember. He additionally shares the notes that he compiled whereas studying Ember. We encourage you to learn them to grasp extra what utilizing Ember will be like for a brand new developer.

(Each Francisco’s weblog submit and notes are written in Spanish. In the event you’re not acquainted with the language, you need to use Google Translate or one other translation software program.)


Subsequent, please welcome Jenny Judova (@JennyJudova). Jenny is a UI engineer who has expertise with React and commenced to be taught Ember for her present job.

Within the weblog submit, Jenny explains step-by-step the right way to create a Todo app and relates Ember Octane code to what you would possibly see carried out in React. She finds that it is simpler to be taught a brand new language when it is in comparison with one thing you already know, even when the comparisons is probably not good.

If you’re inquisitive about studying extra about fixing the Todo downside in Ember and React, please take a look at the weblog submit!


This version of EmberMap’s What’s New in Ember sequence discusses the fn or operate helper – Ember’s conceptual shift in binding actions on the supply, relatively than on the invocation web site.

The fn helper which has been out there since Ember 3.11, gives a technique to go arguments to actions. Whereas this can be one thing Ember already offered for a very long time, the EmberMap video goes by way of the nuisance of how the fn helper gives added performance by binding the this context and currying the arguments handed. For instance, it means that you can go parameters alongside to capabilities in your templates:

<!-- Earlier than -->
<button {{motion 'handleClick' 123}}>Click on Me!</button>
<MyComponent @onClick={{motion 'handleClick' 123}} />

<!-- After -->
<button {{on "click on" (fn this.handleClick 123)}}>Click on Me!</button>
<MyComponent @onClick={{fn this.handleClick 123}} />

Take a look at the total EmberMap video and check out utilizing the fn helper in your app at the moment!


This week we might prefer to thank @locks, @rwjblue, @runspired, @rwwagner90, @nummi, @Turbo87, @pzuraq, @Gaurav0, @alexeykostevich, @mansona, @sandstrom, @rajasegar, @skaterdav85, @bantic, @RajaSK05, @chiragpat and @rahilvora 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 below bit.ly/ask-ember-core. And don’t fear, there are not any foolish questions, we recognize all of them – promise! 🤞


Wish to write for the Ember Occasions? Have a suggestion for subsequent week’s difficulty? Be part of us at #support-ember-times on the Ember Neighborhood 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! It’s also possible to discover our posts on the Ember weblog.


That is one other wrap! ✨

Be form,

Chris Ng, Matthew Roderick, Jared Galanis, Isaac Lee, Jessica Jordan, Amy Lam and the Studying Workforce



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments