Hike Messenger ทำงานได้รวดเร็วและง่ายขึ้นด้วยคอมโพเนนต์สถาปัตยกรรมของ Android
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

Hike เปิดตัวในปี 2012 และกำลังสร้างผลิตภัณฑ์โดยมีเป้าหมายเพื่อลดความซับซ้อนของอินเทอร์เน็ตเพื่อนำอินเดียเข้าสู่โลกออนไลน์ Hike ผสานรวมแชท การรับส่งข้อความ ฟีด
และการผสานรวมกับแอปการชำระเงินและการเดินทางของบุคคลที่สาม
บริษัทได้พัฒนาฟีเจอร์เหล่านี้อย่างรวดเร็วและในเวลาที่ต่างกัน ซึ่งส่งผลให้เกิดสิ่งที่บริษัทเรียกว่า "หนี้ทางเทคนิคและสถาปัตยกรรมที่สำคัญ" เนื่องจากหนี้ทางเทคนิคนี้กลายเป็นคอขวดที่ส่งผลต่อ
ความเสถียร ความสามารถในการบำรุงรักษา และประสิทธิภาพ บริษัทจึงต้องการลดความซับซ้อนของโค้ดอย่างรวดเร็ว
สิ่งที่พวกเขาทำ
Hike หันมาใช้คอมโพเนนต์สถาปัตยกรรมของ Android ซึ่งกลายเป็น "มีดพับสารพัดประโยชน์ของเราในการรับมือกับความท้าทายทั้งหมดนี้" CTO Vishwanath Ramarao กล่าว โดยเริ่มใช้ ViewModel ซึ่งช่วยให้ข้อมูลคงอยู่ได้แม้จะมีการเปลี่ยนแปลงการกำหนดค่า (เช่น การหมุนหน้าจอ) LiveData ซึ่งเป็นคลาสที่เก็บข้อมูลที่สังเกตได้ และไลบรารีความคงทนของ Room
"เราเป็นแอปที่ทันสมัยและตอบสนองได้ดี Room และ LiveData จึงเข้ากันได้ดีกับหลักการออกแบบที่มุ่งเน้นอนาคตของเรา" Ramarao กล่าวเสริม
นอกจากนี้ Hike ยังประเมินไลบรารีการแบ่งหน้า
ซึ่งช่วยให้แอปโหลดข้อมูลจากแหล่งข้อมูลได้ทีละน้อยตามต้องการ
โดยไม่ทำให้เกิดการโอเวอร์โหลดในอุปกรณ์หรือต้องรอนานเกินไปสำหรับการค้นหาฐานข้อมูลขนาดใหญ่
"เราทราบเกี่ยวกับ Architecture Components โดยทั่วไปและต้องการดูข้อมูลเพิ่มเติม"
Ramarao กล่าว "แต่สิ่งที่เริ่มต้นจากการสำรวจแนวทางปฏิบัติแนะนำของระบบนิเวศ Android
กลายมาเป็นเครื่องมือสำคัญในการจัดการหนี้ทางเทคนิคและ
สถาปัตยกรรมของเรา ท้ายที่สุดแล้วก็กลายเป็นวิธีปรับปรุงสถาปัตยกรรมและแนวทางปฏิบัติในการพัฒนาของเราให้ทันสมัย"
ผลลัพธ์
Architecture Components ช่วยให้ Hike ลดจำนวนบรรทัดโค้ดทั้งหมดในแอปได้อย่างมาก ทั้งยังทำให้โค้ดอ่านง่ายขึ้นและบำรุงรักษาได้ง่ายขึ้นด้วย นอกจากนี้ Android Architecture Components ยังช่วยให้
เพิ่มคะแนนผู้ใช้ที่ไม่มีข้อขัดข้องให้สูงกว่า 99% ได้
ซึ่งเป็นสิ่งที่พวกเขาพยายามทำให้สำเร็จมาโดยตลอด
เริ่มต้นใช้งาน
คอมโพเนนต์สถาปัตยกรรมของ Android เปิดให้นักพัฒนาแอปทุกคนใช้บริการได้ในส่วนของ Android Jetpack เริ่มต้นใช้งานคอมโพเนนต์สถาปัตยกรรมของ Android
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2018-05-03 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2018-05-03 UTC"],[],[],null,["# Hike Messenger gains speed and simplicity with Android Architecture Components\n\nLaunched in 2012, Hike is building products with the aim of simplifying the\ninternet to bring India online. Hike combines chat, messaging, feeds,\nand integrations with third-party transportation and payment apps.\nIt developed these features very rapidly and at different points in\ntime, resulting in what the company called \"significant technical and\narchitectural debt.\" Because this debt was becoming a bottleneck to\nstability, maintainability and performance, the company wanted to simplify\nits code quickly.\n\nWhat they did\n-------------\n\nHike turned to [Android Architecture Components](/jetpack/arch), which\nbecame \"our Swiss army knife to tackle all of these challenges\" says\nCTO Vishwanath Ramarao. It began using\n[ViewModel](/topic/libraries/architecture/viewmodel), which allows data to\nsurvive configuration changes (such as screen rotations);\n[LiveData](/topic/libraries/architecture/livedata), an\nobservable data-holder class; and the\n[Room](/topic/libraries/architecture/room) persistence library.\n\"We're a modern, reactive app, and Room and LiveData fit really\nwell with our forward-design principles\" Ramarao adds.\n\nHike is also evaluating the [Paging Library](/topic/libraries/paging),\nwhich makes it easier for an app gradually to load information as needed from a\ndata source, without overloading the device or waiting too long for a big\ndatabase query.\n\u003e \"We were aware of Architecture Components in general and wanted to learn more\"\n\u003e Ramarao says. \"But what started as an exploration of the Android-ecosystem\n\u003e best practices became an important tool to tackle our technical and\n\u003e architectural debt. It ultimately became a way of modernizing our\n\u003e architecture and development practice\".\n\nResults\n-------\n\nThanks to Architecture Components, Hike significantly reduced the total\nlines of code in their app, while also making that code more readable\nand maintainable. Android Architecture Components also helped them to\nraise their crash-free user ratings to well beyond 99 percent,\nsomething they'd struggled to accomplish in the past.\n\nGet started\n-----------\n\nAndroid Architecture Components is open to all developers as part of\n[Android Jetpack](/jetpack). [Get\nstarted with Android Architecture Components](/jetpack/arch)."]]