يحقّق المربع زيادة في الإنتاجية باستخدام Compose
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تساعد Square ملايين البائعين في إدارة أعمالهم، بدءًا من معالجة بطاقات الائتمان بشكل آمن، ووصولاً إلى حلول نقاط البيع وإعداد متجر مجاني على الإنترنت. تستخدم شركة Square واجهة مستخدم وصفية منذ فترة، ولكن بدلاً من مواصلة إنشاء إطار العمل الخاص بها، قرّرت الانتقال إلى Jetpack Compose، ما يتيح لها تجنُّب تكاليف الصيانة والاستفادة من التحسينات التي يوفّرها على نظام Android Views.
الإجراءات التي اتخذتها الشركة
بدأ فريق Square في إنشاء نظام التصميم الخاص به في Compose، بهدف تمكين فريق نظام التصميم ومهندسي المنتجات من العمل بشكل أسرع.
بما أنّ تطبيقهم منظَّم حاليًا باستخدام بنية ذات تدفّق بيانات أحادي الاتجاه، "يسهّل ذلك على مهندسي المنتجات استبدال شاشة واحدة في كل مرة باستخدام Compose". وقد لاحظوا أثناء استخدام Compose أنّ "بعض العمليات بسيطة جدًا لدرجة أنّك تتوقّع أن تكون أكثر تعقيدًا. كل شيء يعمل بشكل جيد.”
النتائج
"باستخدام Compose، يمكننا التركيز على الميزات الفريدة في Square والبنية الأساسية لواجهة المستخدم، بدلاً من حلّ المشكلة الأوسع نطاقًا المتمثلة في إنشاء إطار عمل تصريحي لواجهة المستخدم".
وقد تبيّن لفريق الهندسة أنّ Compose حسّن إنتاجيتهم، ما سهّل عليهم فهم الرموز البرمجية وتنظيمها وكتابتها، كما أنّ أدوات "استوديو Android" وفّرت عليهم الكثير من الوقت.
"أصبحت عملية تصميم المكوّنات أبسط وأسرع. ويسهل أيضًا قراءة الرمز البرمجي للمكوّنات المعقّدة. يسهّل Compose تنظيم الرموز البرمجية وجعلها
قابلة للقراءة. نظام التنسيق في Compose أبسط من الناحية النظرية، لذا يسهل فهمه. توفّر المعاينات الكثير من الوقت عند إنشاء
المكوّنات".
البدء
مزيد من المعلومات حول ميزة "إنشاء"
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2021-07-28 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2021-07-28 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Square sees increase productivity with Compose\n\n[Square](https://squareup.com/) helps millions of sellers run their\nbusiness -- from secure credit card processing to point of sale solutions to\nsetting up a free online store. Square has been moving to declarative UI for\na while but rather than continuing to build their own framework, they decided to move to\nJetpack Compose, avoiding the maintenance costs and taking advantage of the\nimprovements it brings over the Android Views system.\n\nWhat they did\n-------------\n\nThe Square team started building their design system in Compose, with the goal\nof enabling their design system team and product engineers to move faster.\nBecause their app is already organised with a unidirectional data flow\narchitecture, *\"It's really easy for product engineers to swap in Compose one\nscreen at a time.\"* While adopting Compose, they've seen that *\"sometimes it's\nalmost so simple you expect it to be more complicated. **Things just work.**\"*\n\nResults\n-------\n\n*\"By using Compose, we can **focus on things that are unique to Square** and our UI\ninfrastructure, rather than solving the broader issue of building a\ndeclarative UI framework.\"*\n\nThe engineering team found that Compose improved their productivity, making the\ncode easier to reason about, organise, and write, and the Android Studio\ntooling saved them a lot of time.\n\n*\"It's **simpler and faster to style components** . Reading the code for complicated\ncomponents is easier as well. It's **easier to organize code and make it\nreadable** in Compose. The layout system of Compose is conceptually simpler so\nit's **easier to reason about. Previews are a big time saver** when building\ncomponents.\"*\n\nGet started\n-----------\n\nLearn more about [Compose](/jetpack/compose)."]]