Android Developers Blog: Twitter going all in on Jetpack Compose for feature development: greater productivity, less bugs


Posted by The Android Group

Twitter going all in for Jetpack Compose feature development 

As one particular of the most greatly made use of social media platforms, Twitter is usually searching for methods to far better hook up its customers. At the similar time, in order to competently build new functions while sustaining current kinds, developers will need supportive infrastructure. The Twitter engineering staff turned to Jetpack Compose to kick-start out a significantly needed overhaul of the app’s UI foundation. With Compose, builders can effortlessly obtain and use the suitable APIs, fluidly type and modularize elements, and in the end build extra with a lot less code.

Twitter launches UI overhaul

A handful of teams such as the Android Shopper UI team, Client Acquisition, Twitter Blue, and Communities teams revamped their growth processes, inspiring enjoyment amongst Twitter’s engineers. “Many teams at Twitter have adopted Compose in their day-to-day workflows,” mentioned Sneha Patil, senior software package engineer and complex lead on the Communities crew for Twitter for Android. By removing the do the job of producing and location up custom theming and attributes, Compose designed creating functions and applying style needs substantially quicker and more simple than what they knowledgeable with Views. Jetpack Compose enabled these teams to work more rapidly and far more successfully, guarantee reusability in their code, and simply onboard new engineers.

Revitalizing the advancement process

Producing dynamic information is uncomplicated with Compose. The Twitter team utilized the LazyColumn composable to create UI without having the want for an Adapter or ViewHolder, simplifying the system of writing code that seamlessly delivers layouts, themes, and styles to existence. With less lines to compose, development groups at Twitter reduced their boilerplate, knowledgeable considerably less bugs through development and releases, enabled UI experimentation, and sped up the testing processes. These enhancements heightened efficiency so developers could commit much more time constructing what tends to make Twitter distinctive.

They also employed Compose to create stateless parts that are reusable across the app. The overall flexibility of Compose manufactured it much easier and more quickly to meet design and style necessities, making the set up of theming and styling simpler for both of those new and seasoned engineers to work with.

Building new features using Compose

Offered the advancements experienced, they determined to make an whole new feature employing Compose. They developed the Communities aspect, Twitter’s devoted area where by customers can interact in conversations they treatment about most, from the ground up applying Compose. Dependent on the teams’ previous encounter employing Views for other options, constructing with Compose was substantially speedier and they had a lot less bugs. “It was like magic,” mentioned Sneha, “It is a match changer for how we can acquire on Android with Compose.

Quote from Yoali Sotomayer Baqueiro 

Compose boosts growth output

Compose boosted the velocity and performance of Twitter engineers’ UI advancement. Developers very easily included and built with Compose, which created it less complicated for them to modularize code, reuse parts, and split down dependencies. The team consistently utilizes UI experimentation, and Compose helped enhance their self-assurance in knowing what the parts that react to person interactions, details updates, and different screen measurements will search like in manufacturing.

These teams’ original good results with Compose impressed other advancement teams at Twitter to adhere to fit. Now, even engineers performing on sophisticated legacy parts are looking into adopting it.

In general, Compose has not only removed a lot of of the obstacles the crew seasoned in Sights — it also added enjoyment into the workflow, with some builders all set to abandon old techniques for good. “I’m enthusiastic to compose a lot more Compose and under no circumstances contact an XML format once more,” reported Yoali Sotomayor Baqueiro, software program engineer for Android Consumer UI at Twitter. “It tends to make producing UI not just less complicated but also much more enjoyment and intuitive.

https://www.youtube.com/look at?v=7N9rKu7l_5U

Get started out

Enhance your UI growth with Compose.

Next Post

What Digital Marketing Skills Do You Need for the Metaverse?

Internet 3. is the following action in the evolution of the Planet Huge Web. It promises to hook up us in new and fascinating approaches many thanks to far more mobile-centric, application-primarily based capabilities that give customers management more than how they accessibility the Online. As individuals continue to get […]
What Digital Marketing Skills Do You Need for the Metaverse?

You May Like