Hacker News new | ask | show | jobs
by sghiassy 522 days ago
In Jetpack compose, the Composer is embedded by the compiler at build time into function calls

https://medium.com/androiddevelopers/under-the-hood-of-jetpa...

I’m still not sure how I feel about it. While more annoying, I think I’d like to see it, rather than just have magic behind the hood

1 comments

seeing it is great. coming into a hairy monolith and having to plumb one variable through half a dozen layers to get to the creamy nougat later you actually wanted it in, is not. having to do that more than once it's why they invented the "magic" implicit context variable.
But if you had to do it manually, it would presumably be plumbed everywhere to start with.

And if it wasn’t immediately available, it would give you a strong signal to wonder what you’re doing wrong