Egor Ogarkov

Egor Ogarkov

Software Engineer at JetBrains and programming languages polyglot. I do like brining things from other languages and environments and mixing them together to create new ideas. Before I became an engineer, I played DotA and DotA 2 professionally ;)
Less Struggle With Lifetimes
React Day Berlin 2022React Day Berlin 2022
6 min
Less Struggle With Lifetimes
How many times in your developer career you forget to remove an event listener? Close web socket connection? Unsubscribe from updates from any source? Or you are just to run some cleanup tasks, but every time you should do it manually. In this talk, I will show a new concept “Lifetime”, which will change your mindset about solving the problems above, make it all easy and even automated. I will show how I use it in everyday development and how it makes my application better and secure. I will also show how it improves DX and productivity. And I believe it’s something your team might want to use too.