Ember Times-Issue 131

Hello emberman! Hello, humanist! 🐹

Help improve Ember’s automatic tracking and response system💬, read the new test attendant RFC ⏳, ​​use Ember data📈, the Russian Ember community🇷🇺 optimize your application, and learn about the powerful debugging features on EmberConf💻!

Ember Octane has New reaction system Thank you Tracking attributesThey simplify the synchronization of DOM and JavaScript changes.Understand how automatic tracking works Ember guide.

To help solve some shortcomings, Chris Garrett (@pzuraq) It is recommended to introduce the decorators and classes listed below. We encourage you to participate in the RFC and provide feedback!

566. @memo Decorator

Unlike calculated properties, automatically tracked getters do not cache their values. @memo Will let you choose memory.

567. @use Decorator

This @use API will use automatic tracking to solve two problems:

  • Allow the Glimmer component to have its own life cycle behavior independent of the template definition
  • Provides a standard way of mixing declarative and imperative code

569. TrackedList class

TrackedList Changes to the array will be tracked automatically.This class is intended to replace EmberArray, Will closely follow the native array API and improve performance.

577. TrackedMap with TrackedSet class

TrackedMap with TrackedSet, Along with their weak analogues, will automatically track changes to maps and collections (dynamic collections of values). These classes will fully follow the native API.

Steve Calvert (@scalvert) It is recommended to replace the existing test attendant with Embers Test Waiter inside New test attendant RFC.

The new test attendant system will provide some benefits:

  • A kind Delete the new API of the existing pedal gun In view of the fact that we will be more clear when we declare the start and end of the waiter through the waiter beginAsync with endAsync method
  • A more powerful way to collect Debug information For the test attendant, because the attendant can be identified by the provided name
  • Default test attendant Be able to create your own more complex test waiter By commenting untracked asynchronous operations in the code base await settled() View

Share your thoughts, feedback and requirements New test attendant RFC!

Chris Soben (@runspired) Writing a blog about how to use Ember Data to build and optimize applications. You will first build an application Listicle. Listicle was originally a small application shell with a rich content list, but over time, its size will grow larger. Therefore, the build time is as slow as crawling.

At the beginning of this series, Listicle took more than 5 seconds to build and render.But as the post progresses, you will end up with an application that includes building and rendering Less than 1 second Data management by only optimizing the application! Then for fun, you will optimize the rendering.

You can check out part 1 with part 2 Now, there are more posts!You can learn about it by watching the code in this series Listicle repository.

For some Ember Data contexts, please check guide. You can learn about architecture and history in Chris’ EmberFest Ember data 2019 Conference talk.

Hubble It is a popular geek media site among Russian developers. It is somewhat similar to Hacker News, except that it is populated by user-submitted articles instead of links. Yaroslav Popov (@chilicoder) Recognizing the shortage of Ember articles on Habr.com, we recently started translating our own Ember Times (Issue #129, Issue #130) On Habr.com, and Octane is here with Super Rental Tutorial-Part 1!

@chilicoder also mentioned to check Ember Telegram Channel, Host Alex Kanunnikov (@lifeart). This is one of the best ways to get help Embers Russian, They welcome everyone to join! Thank you for your help in cultivating the Russian Ember community!

You have undoubtedly heard her talk about Use Ember to create a progressive web application
with Bulletproof plug-in test Before but now Samantha De Barros (@sdebarros)
Be prepared to share more useful knowledge, which is essential to any professional JavaScript developer.

in EmberConf this year She will teach us The power of debugging; What tools can you use to quickly track errors in development and production environments, and how to find a solution to the Ember architecture while doing so.

In an exclusive interview with Ember Times, Samanta shared with us why debugging tools and strategies are so powerful when developing Ember applications:

I think it is important to learn debugging techniques. In most cases, because it can help you better find errors, or even the way the application works. To some extent, I think this is necessary because it will help your work!

I also think that when you start looking at other people’s code, it’s difficult at first, but after a while you will no longer be afraid to see these complex frameworks, you have a better understanding of everything, and you start Realize-it’s just the end in JavaScript. So I think debugging technology is helpful for finding errors and uncovering the mystery of the framework.

What was our experience when we started to learn more about debugging strategies? Here, Samanta can share her own experience and the experience of the people working with her:

When you pair with someone or try to solve a problem, you often encounter something that makes people say, “Oh, this is fun!” When I see other people’s speeches or see their work, I It’s cool to see that they have some hints about things I don’t know yet! You realize that there are many tools that can make front-end work easier.

People who know more about debugging usually say: “Oh, yes, this is cool, it really simplifies the tasks I need to do” or “Oh, I don’t know if you can find this information in the app.”

EmberConf is a unique experience that you and your team should never miss. Samanta shared her thoughts on why the conference is so good:

I think it’s a different experience when you attend a meeting as a speaker or a participant. When you just go to a lecture, you will get a lot of inspiration. You will find that people are doing things that you may not have done. It will inspire something in your heart and make you want to learn new things or improve you. Some things work. […]

I would say that getting inspiration and making connections are the best things about EmberConf. If I had to recommend anything to attendees, I would say: “Just ask other attendees or speakers.” Just listening to the lecture is enough, but the opportunity to communicate with others makes the meeting great.

If you want to learn more about successfully debugging Ember applications, please join more than 800 other Ember developers at EmberConf in Portland, Oregon, March 16-18, 2020. Ticket prices for general audiences start at $449, so don’t hesitate Register today!

This week we want to thank @bobisjan, @pzuraq, @lock, @mjanjic0​​1, @runspired, @igorT, @dmuneras, @mixonic, @chancancode, @泊, @efx, @josemarluedke, Mansona, @pichfl, @skaterdav85, @jenweber, @mcfiredrill, @tomdale, @conormag, @rwjblue, @Turbo87, @stefanpenner, @xg-wang Thanks for their contributions to Ember and related repositories! 💖

Want to know about Ember, Ember Data, Glimmer, or plugins in the Ember ecosystem, but don’t know where to consult? Readers’ questions are only answered for you!

Submit your own Short and sweet problem under bit.ly/ask-ember-coreDon’t worry, there are no stupid questions, we thank them-guaranteed! 🤞

Want to write for Ember Times? Any suggestions for next week’s problem?join us #support-ember-times in Ember community discord Or ping us @embertimes On Twitter.

Subscribe to our channel to get the latest news from Emberland this week Email newsletter!You can also find our posts in the following locations People Blog.

That is another package! ✨

Be kind,

Chris Ng, Amy Lam, Isaac Lee, Jessica Jordan and the learning team

Leave a Reply

Your email address will not be published. Required fields are marked *