Refactoring from Callback Hell to Observables – Live Coding in TS

by | May 7, 2019 | Voxxed Days Frontend 2019

Victor Rentea is one of the top Technical Trainers in Romania. He trained and coached more than 1200 developers of 30+ companies over the 6 years of his training activity. At IBM, even though they call him a Lead Architect, he writes code each day: he’s maniac about Clean Code, so expect seeing some hard-core refactoring. Victor is a key community member: organized the largest 3 Bucharest Java User Group meetups in history. In 2018 he founded the Bucharest Software Craftsmanship Community in which he runs open sessions about clean code, refactoring, pair programming and TDD. He posts daily on LinkedIN, Twitter and Facebook thoughts about culture, technical excellence and Software Craftsmanship. Victor is now regularly invited to speak at major international conferences (30+ talks until now, #2 best at Devoxx Belgium 2018). His live-coding sessions are insane, lightning-fast but well crafted, full of enthusiasm, deep insights and take-away tips. Things that he learned the hard way during his 14 years of experience. You can find out more about him on victorrentea.ro

Marian Stanciu is a talented Fronted Developer with Full-Stack experience. Despite being at the start of his career, he already successfully tech-lead the development of 3 projects at IBM, and is currently in charge of leading one the largest projects of IBM Romania. He is an avid learner always striving to understand the deep philosophy of frameworks, and a remarkable developer, having developed several reusable libraries and tools.

You send a request, then you wait for the response. And so it begins… After you get back A, you request B, then C, but only after you also receive D and the user clicks ”OK” in a modal dialog. Sounds familiar? So you know the pain! Asynchronism is probably the most difficult mental leap Single-Page Apps forced us to take, especially if you want to write clean, maintainable code. Join this live-coding session to see us refactoring TypeScript code from callback-hell to promises and then Observables, pair programming and discussing lots of best practices we established for our projects at IBM.

As we go, we will intentionally avoid any framework-specific intelligence: there will be a minimal Angular7 app, but our focus will remain on paradigms and principles. And at the end, we also prepared a tiny surprise for you: a way to avoid your client/server data structures to ever go out of sync again.