Friday, May 10, 2024
HomeJavaScriptThe Ember Occasions - Subject No. 141

The Ember Occasions – Subject No. 141


👋 Emberistas! 🐹

Yehuda’s Octane Tutorial 🔥,
a fast tip for refactoring your templates 📑,
dive into angle and curly bracket invocations 🔍,
simpler porting of internet sites with Percy ✨,
Feeder Corona Dashboard 📰,
monitor JavaScript’s built-in courses 💯,
Ember autostash modifier 💾,
examine learn how to use a ember-template-lint rule from an addon ✅,
decorator positioning now enforceable ↕️,
and final, however not least, stand alone EmberConf 2020 movies are out 🎥!


There’s an superior new Octane tutorial on the town 🤠 and it is written by none aside from our very personal Yehuda Katz (@wycats)!!!

Within the tutorial you will construct the schedule web page for a convention like EmberConf. It seems like simply the correct factor to construct after our superb digital EmberConf 💙💚💛💜🧡.

The primary half on this tutorial, Let’s Go, begins with one thing that not all JavaScript tutorials cowl, HTML and CSS, utilizing CSS Grid and Flex. You will learn to go from mocks to a deployed app in little or no time.

The second a part of the tutorial, Elements, can also be out and it covers refactoring out a few of the HTML duplication. It is an amazing introduction to how you should utilize parts and lists to cut back repetition.

To date there are 7 posts deliberate:

  • Let’s Go
  • Elements
  • Pulling Out Information
  • Airtable Time
  • Cleansing Issues Up
  • Including Extra Pages
  • Sharpening: Server-Facet Rendering, Prerendering and Code Splitting

So be on the look out 👀 for extra on this very useful new collection!


Abhilash L Ramesh (@abhilashlr) wrote a small and clear weblog submit with actionable tricks to make your Ember templates cleaner. So you probably have advanced if-else logic in your template that you just wish to make clearer, this weblog submit might enable you out.

He additionally added some further bonus suggestions, however no spoilers right here, head to the weblog submit to examine them out!


From Yehuda and Abhilash’s weblog posts, you bought to see a little bit of how templates work. However we have one further useful resource for you!

@0xADADA and Dan Freeman (@dfreeman) did a deep-dive into traditional and angle bracket invocations. Please take a look to learn the way these invocations deal with attributes and arguments otherwise.


You would possibly already be a daily customer of the Ember Guides.
However do you know, that the #1 studying website for Ember builders was powered with Ruby and Intermediary? After loads of contributions by many alternative neighborhood members, the app has been modernised with an Ember tech stack to make it a lot simpler for brand spanking new contributors to work on the venture!

You may not have observed the change of tech stacks underneath the hood of the Ember Guides, and that is precisely the way it ought to be! Wish to study extra about how this was executed? Make sure to learn Chris Manson’s (@mansona) newest weblog submit in regards to the course of behind the seamless Emberification of the Guides (and the Ember web site): it highlights how the visible regression testing software Percy may also help builders to bootstrap their efforts of porting a web site to a brand new tech stack with out breaking it.

You’ll be able to learn the total weblog submit on the simplabs weblog.


Feeder constructed a COVID-19 aka Corona Dashboard in Ember, however for incoming information on the topic equivalent to information media, authorities updates, analysis, social media, and journey recommendation. Test it out right here: feeder.co/reader/corona.

Feeder is a information supervisor that tracks any on-line supply you select and bundles it into an easy-to-digest studying expertise. The Corona Dashboard is constructed utilizing Feeder’s common stack that ingests public RSS feeds and filters on a set of key phrases.

Erik Rothoff Andersson (@erkie) shares Feeder’s expertise with Ember with the Occasions:

We began at Ember 2.10 and at the moment are at Ember 3.14 and counting. It is so cool that the upgrades assist to coach us learn how to develop into higher builders. One hanging factor is the a11y template linting guidelines that promote greatest practices. I had no concept about these issues, however now I do! So thanks Ember.

We have used pods because the begin, however I received tripped up by all of the tabs in Atom being known as element.js, or template.hbs, which is why I developed the Atom addon Ember tabs. Was actually comfortable when scrolling by way of ember-cli docs someday and located it talked about right here. To date I have not saved updated with the module unification, nevertheless it appears promising!

TypeScript is the one greatest innovation in a few years, and the ember-cli-typescript addon has been an incredible bridge. It is nice to see that loads of Ember inner packages at the moment are written fully with TypeScript.

We render loads of parts on display, so efficiency has been one thing we have invested loads of time in. Switching to Glimmer parts for prime quantity parts we had been capable of cut back render instances on hotspots by ~20%.

We loved studying about Ember at Feeder and hope that you just discover the Corona Dashboard helpful in these hectic instances! 💛


At his EmberConf discuss, “Autotracking: Reactivity and State in Fashionable Ember,” Chris Garrett (@pzuraq) introduced a brand new addon that can assist you monitor JavaScript’s built-in courses.

With tracked-built-ins, your app can routinely react to modifications in Objects, Arrays, Maps, Units, WeakMaps, and WeakSets.

import { tracked } from 'tracked-built-ins';

class Foo {
  @tracked worth = 123;

  obj = tracked({});
  arr = tracked([]);
  map = tracked(Map);
  set = tracked(Set);
  weakMap = tracked(WeakMap);
  weakSet = tracked(WeakSet);
}

Give it a attempt at present! Your suggestions will assist enhance autotracking in Ember. 💞


New modifier alert 🚨! Preston Sego (@NullVoxPopuli) has created ember-autostash-modifier that stashes modifications, binds these modifications to a key, and restores these modifications based mostly on that key!

This modifier is beneficial for chat apps, the place you’d wish to persist incomplete messages on a contact’s web page whereas the person navigates between different contacts earlier than ending and submitting a message, or the place you wish to bind element knowledge based mostly on the URL. Take a look at this demo of the modifier in motion.

It is so good to see the eco-system of Ember modifiers proceed to develop 😀, we won’t wait to see what the superior of us within the Ember neighborhood give you subsequent!


Mehul Kar (@mehulkar) wrote a weblog submit on learn how to ship and use an ember-template-lint rule from an addon.

First up, the Plugin API offers an summary on the ember-template-lint plugin system together with the place so as to add them or it may be the foundation of the repo because the weblog reveals. In an effort to check your template lint rule, the weblog submit outlines learn how to use Jest and configure it to run assessments within the node-tests listing. Lastly, to be able to use the plugin in an app we would want so as to add the plugin and allow the lint rule in .template-lintrc.js (like the instance under).

module.exports = {
  plugins: ['my-addon-name/template-lint-plugin'],
  guidelines: {
    'the-rule-name': true
  }
}

To comply with the detailed steps please learn the full weblog submit and have a highly effective method to encourage a sure means of programing at present!


Ever needed to put up with inconsistent decorator positions in pull requests, as a result of there wasn’t a lint rule for that?
Now there may be! 🎉 eslint-plugin-decorator-position
offers some configuration with some beneficial defaults to assist your venture obtain that final little bit of consistency.


If you happen to missed half or all the ✨✨superb EmberConf 2020 ✨✨, now’s your probability to compensate for all the good talks à la carte! Whereas the reside streams have been obtainable because the days they had been streamed, now you’ll be able to watch them as stand alone talks.

If you wish to re-live a few of the greatest moments, or watch them for the primary time, you could find the entire library of movies 📼 obtainable on your viewing pleasure on YouTube. Ensure to not miss the BonusConf classes that are included on this record!

Once more, do not forget to take a look at all of the associated sources for the talks in the convention notes by Alex DiLiberto (@alexdiliberto).

Additionally yet another reminder! We now have a request for these of you who attended EmberConf 2020:

Inform us about somebody new that you just received to speak with on the digital conf!

Tell us about your reply to this query both by tweeting us by way of Twitter utilizing the hashtag #EmberConFriends or as a message on the Ember Discord within the #support-ember-times channel. We’ll raffle an unique EmberConf retro sticker set amongst all story writers by April 6, 2020. We’re trying ahead to listen to from you and comfortable catching up on digital EmberConf!


This week we would wish to thank @pzuraq, @locks, @rwjblue, @btecu, @kratiahuja, @Gaurav0, @kturney, @chancancode, @leondmello, @zapalagrzegorz, @monitron, @MelSumner, @jtappa, @brentzc, @skaterdav85, @NullVoxPopuli, @rajasegar and @xg-wang 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 personal brief and candy query underneath bit.ly/ask-ember-core. And don’t fear, there aren’t any foolish questions, we respect all of them – promise! 🤞


Wish to write for the Ember Occasions? Have a suggestion for subsequent week’s concern? Be a 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 happening in Emberland this week by subscribing to our e-mail publication! You can too discover our posts on the Ember weblog.


That is one other wrap! ✨

Be form,

Anne-Greeth van Herwijnen, Preston Sego, Jared Galanis, Isaac Lee, Chris Ng, Jessica Jordan, Erik Rothoff, Amy Lam and the Studying Staff



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments