টুইটার কোটলিনের সাথে বিকাশকারীর উত্পাদনশীলতা এবং কোড নির্ভরযোগ্যতা বাড়ায়
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।

টুইটার হল বহুল ব্যবহৃত সোশ্যাল মিডিয়া প্ল্যাটফর্মগুলির মধ্যে একটি যেখানে ব্যবহারকারীরা যেকোনো মুহূর্তে বিশ্বে কী ঘটছে তা দেখতে পারেন। প্রকৌশল দল 2017 সালে তাদের কোডবেসকে আরও রক্ষণাবেক্ষণযোগ্য এবং তাদের Android অ্যাপকে Kotlin-এর শূন্য নিরাপত্তা বৈশিষ্ট্যের ফলে আরও নির্ভরযোগ্য করার লক্ষ্য নিয়ে Kotlin চালু করেছিল।
তারা কি করেছিল
দলটি প্রাথমিকভাবে কোটলিনকে পেরিস্কোপের কোডবেস এবং টুইটার অ্যাপের পেরিস্কোপ বৈশিষ্ট্যে প্রবর্তন করেছিল এবং কোটলিন ব্যবহারের সুবিধা এবং ট্রেডঅফ পরীক্ষা করতে সক্ষম হয়েছিল। উত্পাদনশীলতা এবং কোড নির্ভরযোগ্যতার উন্নতিতে মুগ্ধ হয়ে, তারা ধীরে ধীরে টুইটার অ্যাপের অন্যান্য বৈশিষ্ট্যগুলিতে কোটলিন যুক্ত করা শুরু করে।
কোটলিন টুইটারকে তাদের অ্যাপে কোডের পরিমাণ কমাতে সাহায্য করেছে, বয়লারপ্লেট রক্ষণাবেক্ষণ কমিয়েছে এবং দলকে আরও বেশি উৎপাদনশীল হতে সক্ষম করেছে। তারা ডেটা ক্লাস, সিল করা ক্লাস এবং ডিফল্ট প্যারামিটারের মতো ভাষার বৈশিষ্ট্যগুলি ব্যবহার করেছিল, যা তাদের কম কোড এবং দ্রুত লিখতে সক্ষম হয়েছিল। কোটলিনের স্মার্ট কাস্টিং তাদের দলকে লিখতে এবং বজায় রাখার জন্য প্রয়োজনীয় কোডের পরিমাণও কমিয়ে দিয়েছে।
"কোটলিন ব্যবহার করা একটি আনন্দ। বয়লারপ্লেটের হ্রাস আমাদের লেখার জন্য প্রয়োজনীয় কোডের পরিমাণ হ্রাস করে।" - অ্যান্ডি ফক্স, টুইটারে সিনিয়র সফটওয়্যার ইঞ্জিনিয়ার
কোটলিনের শূন্য নিরাপত্তা বৈশিষ্ট্যগুলিও টুইটারের কোড নির্ভরযোগ্যতা বাড়িয়েছে। প্রাথমিকভাবে যখন দলটি কোটলিনকে পরিচয় করিয়ে দেয়, তখন তারা নীরব ব্যর্থতাগুলি উন্মোচন করেছিল যা আগে সনাক্ত করা যায়নি। কম্পাইল টাইম নাল চেকিং টিমকে শীঘ্রই সমস্যাগুলি শনাক্ত করতে এবং শূন্যতার ত্রুটিগুলি আরও সক্রিয়ভাবে পরিচালনা করতে দেয়।
ফলাফল
Kotlin দত্তক নেওয়ার পরে, দলটি তাদের অ্যাপের জন্য চমৎকার সিস্টেম স্বাস্থ্য এবং কার্যকারিতা দেখতে অব্যাহত রেখেছে। একই সময়ে, তারা তাদের দলের উত্পাদনশীলতা উন্নত করেছে এবং রানটাইমের পরিবর্তে কম্পাইলের সময় গুরুতর ত্রুটিগুলি ধরার মাধ্যমে তাদের অ্যাপকে আরও নিরাপদ করেছে। উত্পাদনশীলতা এবং কোড নির্ভরযোগ্যতা বৃদ্ধির সাথে, দলটি কোটলিনে ফ্লিটস, ডিএম প্রতিক্রিয়া এবং তালিকার মতো অনেকগুলি নতুন বৈশিষ্ট্য লেখার সিদ্ধান্ত নিয়েছে৷
এবার শুরু করা যাক
Kotlin-এর সাথে একটি Android অ্যাপ তৈরি করার বিষয়ে আরও জানুন।
এই পৃষ্ঠার কন্টেন্ট ও কোডের নমুনাগুলি Content License-এ বর্ণিত লাইসেন্সের অধীনস্থ। Java এবং OpenJDK হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2020-10-21 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"]],["2020-10-21 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Twitter increases developer productivity and code reliability with Kotlin\n\n[Twitter](https://play.google.com/store/apps/details?id=com.twitter.android&hl=en)\nis one of the most widely used social media platforms where users can see what's\nhappening in the world at any given moment.\nThe engineering team introduced Kotlin in 2017 with the goal of making their\ncodebase more maintainable and their Android app more reliable as a result of\nKotlin's [null safety features](/kotlin/common-patterns#nullability).\n\nWhat they did\n-------------\n\nThe team initially introduced Kotlin into [Periscope](https://play.google.com/store/apps/details?id=tv.periscope.android&referrer)'s\ncodebase and into the Periscope feature of the Twitter app, and were able to\ntest the benefits and tradeoffs of using Kotlin. Impressed with the improvements\nto productivity and code reliability, they gradually began adding Kotlin to\nother features of the Twitter app.\n\nKotlin has helped Twitter decrease the amount of code in their app,\nminimizing boilerplate maintenance and **enabling the team to be more\nproductive.** They used language features such as data classes, sealed\nclasses, and default parameters, which allowed them to be able to write less\ncode, and faster. Kotlin's smart casting has also reduced the amount of code\ntheir team needs to write and maintain.\n\n*\"Kotlin is a joy to use. The reduction in boilerplate reduces the amount of\ncode we need to write.\" - Andy Fox, Senior Software Engineer at Twitter*\n\nKotlin's null safety features have also increased Twitter's code reliability.\nInitially when the team introduced Kotlin, they uncovered silent failures that\nhad previously gone undetected. Compile time null checking allows the team to\n**detect issues sooner, and handle nullability errors more\nproactively.**\n\nResults\n-------\n\nAfter adopting Kotlin, the team has continued to see excellent system health\nand performance for their app. At the same time, they've improved their team's\nproductivity and made their app safer by catching critical errors at compile\ntime instead of runtime. With the increases in productivity and code\nreliability, the team has decided to write many new features such as Fleets,\nDM Reactions, and Lists in Kotlin.\n\nGet started\n-----------\n\nLearn more about [developing an Android app with Kotlin](/kotlin)."]]