<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Min on Medium]]></title>
        <description><![CDATA[Stories by Min on Medium]]></description>
        <link>https://medium.com/@minthantzin?source=rss-50843920a47d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KytHv4APYCuVMzpORGHlLg.jpeg</url>
            <title>Stories by Min on Medium</title>
            <link>https://medium.com/@minthantzin?source=rss-50843920a47d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 12:34:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@minthantzin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Code refactoring Story (1)]]></title>
            <link>https://minthantzin.medium.com/code-refactoring-story-1-901e35093f9f?source=rss-50843920a47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/901e35093f9f</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[code]]></category>
            <category><![CDATA[bug-fixes]]></category>
            <category><![CDATA[refactoring]]></category>
            <dc:creator><![CDATA[Min]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 17:59:15 GMT</pubDate>
            <atom:updated>2020-11-25T17:59:15.919Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*82OKNkht0sSaSX21-X8zkw.jpeg" /></figure><p>ဒီနေ့ကျွန်တော် share ချင်တာကတော့ ကျွန်တော် application bug တစ်ခုရှင်းရင်းမြင်မိတာလေးတွေကိုရေးချင်တာပါ။</p><p>application တစ်ခု team member တွေစုရေးထားခဲ့ရင်းbug တစ်ခုဖြစ်လာခဲ့တယ်</p><p>development ကိုteam နဲ့လုပ်ကြတာဖြစ်တဲ့အတွက်task အားတဲ့လူက ၀င် ပြီး bug fix ကြရစမြဲပါ</p><p>ကျွန်တ်ောကအားတော့အဲ့ဒီ bug ကိုရှင်းဖို့တာ၀န်ကျလာခဲ့တယ်</p><p>bug ကတော့ရိုးရိုးလေးပါ barchart တစ်ခုမှာdata တွေ position လွဲနေတာ</p><p>အဲ့တာနဲ့ကျွန်တော်လည်း အဲ့ဒီ class ကိုဖွင်ပြီး barchart ရဲ့လုပ်ဆောင်ချက်တွေရေးတဲ့နေရာကိုသွားပြီး barchart နားဘာမှားလည်းဆိုတာသွားစစ်တာပေါ.</p><p>ပြသနာက data position လွဲတာက barchartမှာပါတဲ့ label က တစ်ခုနဲ့တစ်ခု space ၇မ်းယူပြိး labelတပ်တာလွဲသွားတာ’ ပြသာနာကိုသိပြီဖြစ်လို့ကျွန်တော်လည်း barchart libary ရဲ့. official linkကိုသွားပြီးအ ခြားလူ ဆွေးနွေးချက်တွေဖတ်ရင်းစမ်းသုံးကြည့်တော့တာဘဲ</p><p>ပထမဆုံးနည်းလမ်းကတော့ barchart dataset width ကို change ပြီး စမ်းတဲ့နည်း ကျွန်တော်လည်းအလုပ်လုပ်ရဲ့လားဆိုပြီးစမ်းတာပေါ့ ကျွန်တော် code ထဲထည့်ပြီးရေးလိုက်တယ် run ကြည့်တော့အလုပ်မလုပ်ဘူး (chart မှာ ဘာမှ ပြောင်းလည်းခြင်းမရှိဘူး)ok အာ့ဆိုလည်းနောက်တစ်နည်းပါ့နော် barchart group လုပ်တာကို space ထည့်တဲ့နည်း အဲ့တာလည်းမ ပြောင်းဘူး ဗျ နည်းတွေသာစုံသွားတယ် chart ကဘာမှထူးမလာဘူး လူကလည်းတော်တော်ထူပူသွားတယ်ဘာလို့တစ်ခုမှအလုပ်မလုပ်တာလည်းပေါ့ ဒီလိုနဲ applicationကို uninstall လုပ်ပြီးပြန် run ပြီး screen တစ်ခုပြီးတစ်ခု၀င်ကြည့်ပြီစမ်းကြည့်တယ်အာ့မှာထူးဆန်းတာက ကျွန်တော်ပြင်တဲ့ code တစ်ခါတစ်လေ reload လုပ်ရင်းပြောင်းသွားတယ်</p><p>အာ့တော့မှသေချာပြီး chart ကို setup လုပ်တာတစ်နေရာထဲမဟုတ် တော့ဘူးဆိုတာသတိထားမိလာတယ် အာ့တော့ code line 900 နီးပါးရှိတဲ့ class တစ်ခုကိုကျွန်တော် trace. လိုက်ဖို့လိုပြီဆိုတာသိလိုက်တယ်</p><blockquote><strong>ကျွန်တော်fix ရမည့် bugက chart မှာ positionလွဲတာတစ်ခုထဲပါ (fix တဲ့နည်းက လည်းchart group လုပ်ရင် spaceing value တစ်ခုထည့်ပေးယုံပါဘဲ)</strong></blockquote><p>ဒီလိုနဲ့ code line 900နီးပါးရှိတဲ့. class ကို trac လိုက်တယ်</p><ul><li>classရဲ့လုပ်တောင်ချက်က ပထမအကြိမ် network ကနေ data ယူပြီး နောက်တစ်ခါ ဆို cache ကယူတာ</li></ul><p>အာ့မှာကျွန်တော်ပြင်လိုက်တဲ့code ဘာလို့အလုပ်လုပ်ချင်လုပ်တယ်မလုပ်ချင်မလုပဘူးလည်းဆိုတာသိရလိုက်ရတယ် ကျွန်တော်ပြင်နေတဲ့ chart က cache. က data ရမှလုပ်တာကိုး</p><p>ပြရမည့် view ကတစ်ခုထဲ data ကလည်းအတူတူဘဲ နှစ်နေရာ view.ကိုsetupလုပ်ထားတာ</p><h3>ဘယ်လိုရှင်းလိုက်လည်း</h3><p>ပထမဆုံးbarchart setup လုပ်ထားတဲ့ duplicate ဖြစ်နေတဲ့ code ကို function တစ်ခုထဲထည့်ပြီး bugfix အရင်ရှင်းလိုက်တယ် ဒီလိုရေးပေးလိုက်တော့ barchart ကိုဘယ်သူဖြစ်ဖြစ် data ပေးပြီးပြချင်ရင် ဒီ.function ကိုခေါယုံပါဘဲ barchart နဲ့ပတ်သတ်ပြီးမည့် bug ,change ဆို ဒီ.function ကနေပြင်လို့ရသွားပြီး</p><p>နောက်တော barchart setup လုပ်တာ step တွေများတော့. ခြား class က barchart သုံးရင် ဒီလိုတူညီနေတဲ့ setup step.တွေလုပ်ဖို့မလိုအောင် barchart builder. class တစ်ခုဆောက်ပြီး data နဲ့ barchart view ပေးတာနဲ့ setup လုပ်ဖို့တာ၀န်ကို barchart builder class ကိုလုပ်ပေးလုပ်လိုက်တယ်</p><p>ကျွန်တော်လည်းအာ့ bug တစ်ခုတည်းနဲ့ တစ်နေ့နီပါးကုန်သွားတယ် development လုပ်ခဲ့စဥ် အချိန်ကုန်သက်သာအောင် မြန်မြန်ရေးလိုက်လို့ သက်သာသွားတဲ့အချိန်နဲ့ bug fix သေးသေး ကို အများကြီးပေးလိုက်ရတာနဲ့တွက်ရင် သက်သာတာတစ်နာရီပြန်ပေးလိုက်ရတာ က………</p><blockquote>နောက် story ဆက်ပါအုန်းမည်….</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=901e35093f9f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Client အလိုကျ (၁)]]></title>
            <link>https://minthantzin.medium.com/client-%E1%80%A1%E1%80%9C%E1%80%AD%E1%80%AF%E1%80%80%E1%80%BB-%E1%81%81-976ea36f4c89?source=rss-50843920a47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/976ea36f4c89</guid>
            <category><![CDATA[androiddev]]></category>
            <dc:creator><![CDATA[Min]]></dc:creator>
            <pubDate>Fri, 06 Nov 2020 18:50:28 GMT</pubDate>
            <atom:updated>2020-11-06T18:50:28.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5PF6MsWX2dmTm9qYvVqaXw.jpeg" /></figure><p>ကျွန်တော်က android developer ဖြစ်တဲ့အလျောက် အားရင်အားသလို play store မှာ နာမည်ရှိတဲ့app တွေ ၀င်ကြည့်ဖြစ်တယ် အထူးသဖြင့် make in myanmar appတွေပေါ့အဲ့ဒီမှာ တစ်ချို့ အရာတွေက နည်နည်းအားနည်းနေတာတွေ့ရတယ်</p><ul><li>State management ,configuration ချိန်းဖြစ်လို့state တွေပြန်ထိန်းရမယ်ဘ။ညာ ကို အသာထားအုန်း အာ့တာမပြောလို ဘူး list တစ်ခုကနေ detail ကို ၀င်သွားတယ်back ပြန်ထွက်လာတော့ အာ့list တွေကို ပြန်ဆွဲနေတာမျိုး online shop app တွေမှာတွေ့ရတယ် ။</li><li>Menu select တာ လွဲနေတာ မျိုး ကိုယ့်page detail ကိုရောက်နေတာ home ကို selectထားတုန်း menu က</li><li>နောက်တစ်ခုက permissionကိုယ့်appနယ်ပယ်နဲ့မဆိုင်ဘဲ user dataရသလောက်ယူတာမျိုး</li><li>နောက်တစ်ခုက အ့ာpermission ကို သူ့နဲ့သက်ဆိုင်တဲ့ feature မသုံးခင် တောင်းနေတာမျိုးတွေ ကသဘာ၀မကျဘူး</li><li>နောက်တစ်ခု က ဒီpermission မပေးရင် appတစ်ခုလုံးမသုံးနဲ့ဆိုတာမျိုး</li><li>နောက်တစ်ခုက location လိုချင်တယ်ဆိုတာနဲ့ GPS ဖွင့်ပေးပါ ဘာညာတောင်းနေတာဘဲ ကိုယ်လိုချင်တဲ့ locationဘယ်လောက်တိကျ လည်းသိချင်တာပေါမူတည်ပြီး GPS ကနေယူမလား အခြားprovider ကနေယူမလားမခွဲဘယ် location ဆိုမသိဘူး GPS ဖွင့်ပေးပါဆိုတာမျိုး</li><li>နောက်တစ်ခုlocation ဖွင့်ပေးပါဆိုပြီး setting ထဲက location permissionကို သွားပြီuser ကို appကနေ မောင်းထုတ်နေတာမျိုး</li><li>နောက်တစ်ခုက ကိုယ့်appကဘာမှန်းတောင်မသိရသေးဘူး subscriptionလုပ် free တစ်ပတ် ပြီးရင် autoဖြတ်မယ်ဆိုတာမျိုး user က အထဲကိုမ၀င်ကြည့ရသေးတာဘာဆိုဘာမှကိုမသိသေးတာ appမှာဘာပါလည်းဆိုတာ အာ့လိုappမျိုး တစ်ခု တွေဖူးတယ် တစ်ခုထက်ပိုတွေ့ခဲ့ဖူးတယ်ထင်ပါတယ်မမှတ်မိတော့လို.။</li><li>Screen တစ်ခုမှာ အပေါက header က ဒါငါ့နေရာမဆင်းဘူးဟေ့ဆိုပြီး အောက်ကscrollရင် interactionမရှိဘဲ သေနေတာမျိုး</li><li>နောက်တစ်ခုက promotion notiတွေ ပို့နေရရင်ပြီးရောဆိုပြီး ယောက်ကျားလေးတစ်ယောက်ကို မိန်းကလေးအတွင်းခံpromotion ရှိတာကိုလာ‌ပြီးnotiပေးနေတာမျိုး ။</li><li>Online shop app အချို့တွေ အများစုထင်ပါတယ် တစ်ခါဖွင့်လိုက်တယ် ထိပ်ဆုံး၁၀ခုလောက်က product 1 ကနေတစ်ဆယ် နောက်တစ်ကလည်း product 1 ကနေတစ်ဆယ် ဆိုတော့ ဒီတစ်ဆိုင်လုံးက ဆယ်ခုဘဲရှိလို့ ဒီ၁၀ခုကို ဖွင့်တိုင်းလာလာပြနေသလိုမျိုး ။</li><li>paganation ကို next page ဖတ်ရင် loading ကို အလယ် တည့်တည့်မှာလာပြထားမျိုး…..</li></ul><p>ဒါမျိုးတွေကတော့ ဂရုပြုသင့်ပါတယ် ။</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=976ea36f4c89" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Code  Architecture in android]]></title>
            <link>https://minthantzin.medium.com/code-architecture-in-android-f87536600a8a?source=rss-50843920a47d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f87536600a8a</guid>
            <category><![CDATA[mvvm]]></category>
            <category><![CDATA[android-architecture]]></category>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[design-patterns]]></category>
            <dc:creator><![CDATA[Min]]></dc:creator>
            <pubDate>Thu, 15 Oct 2020 16:09:50 GMT</pubDate>
            <atom:updated>2020-10-15T16:09:50.144Z</atom:updated>
            <content:encoded><![CDATA[<h4>Code Architecture in android</h4><p>Architecture အကြောင်းမပြောခင်ကျွန်တော်တို့ကဘာလို့ android development မှာ ဒီလို architecture တွေလိုတာလည်းဆိုတာအနည်းဆုံးသိဖို့လိုမည်ထင်ပါတယ်</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*7lfTJ89Le-UwJFcrKGqmEw.png" /></figure><p><strong><em>အကြောင်းအပြချက်တွေအများကြီးထဲကမှအချို့အချက်တွေ</em></strong></p><p>၁။ကိုယ်ရေးထားတဲ့ code တွေကိုယ်အခြား dev တွေ၀င်ရေးတဲ့အခါ ၀င်ရေးတဲ့ dev တွေစိတ်မဆင်းရဲရအောင်(ကုဒ်ရေးရင်းကုသိုလ်ရတာပေါ့)</p><p>၂။client changes တွေလာတဲ့အခါ ရေးထားတာကြာနေလို့ဘယ်နားပြင်ရမလည်းသေချာမသိတော့ရင်တောင် code design arc ကြောင့် trac ရတာအချိန်ကုန်သက်သာနိင်တယ်</p><p>၃။code base ကြီးလာတာနဲ့အမျှ maintain လုပ်ရတာ ခက်ခဲလာနိုင် ေခြကိုလျာ့ချနိင်တယ်</p><p>၄။ unit test တွေဘာtest တွေညာtest တွေရေးတဲ့ခါ ကိုယ်ရေးထားတဲ့code တွေ testရေးဖို့ ပိုလွယ်ကူလာတယ်</p><p>၅။code chages လုပ်လာတာနဲံအမျှဖြစ်လာနိုင်မယ့် bug တွေအလွန်နည်းလာတယ်</p><p>၆။ view ,data, bussinesslogicတွေသီးသန့်ရပ်တည်နိုင်လို့ code trace ရတာ လွယ်တယ်</p><blockquote>Dont Comment Bad code -rewrite it</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*-avSeP-OBdAR3nnXz44kFg.jpeg" /><figcaption><a href="https://protocoderspoint.com/">https://protocoderspoint.com/</a></figcaption></figure><p><strong>codeရေးတဲ့အခါ arc pattern တွေနဲ့ စနစ်တကျရရေးဖို့ အနည်းဆုံးဘာတွေသိဖို့လိုမလည်း</strong></p><p>၁။arc pattern တွေမသုံးဘဲရေးတဲ့ code တွေကြောင့်ကိုယ်တိုင် တိုင်ပတ်ဖူးရမယ်။ ကိုယ် code ကိုယ် refactor လုပ်ရင်းနဲ့ဘာလို့ဒီ code ရေးခဲ့တာလည်းကိုစဥ်းစားရင်းနဲံ တိုင်ပတ်ဖူးရမယ် ။ (စတာ)</p><p>၂။oop ,functional programing တွေသဘောတရားကိုနားလည်ထားရမည် reactive တွေပါ နားလည်ဖို့တော့လိုပါတယ်</p><p>၃။design pattern တွေ (creational ,structural,behavioral) စတာတွေသိဖို့လိုမယ် အကုန်လုံးမရရင်တောင် အနည်းဆုံးတော့(observable ,builder,adapter,singleton) လေးတွေလောက်လိုမယ်</p><p>၄။အနည်းဆုံး SOLID ကိုတော့နည်းလည်ထားသင့်တယ်</p><p><strong>android မှာ ဘာ Architecture တွေရှိလည်း ဘယ်လိုတွေရေးခဲ့ကြလည်း</strong></p><p>၁။ဘာarchitecture မှာ မသုံးဘဲစရေးခဲ့တာ god activityရေးထုံး activity ထဲမှာဘဲလာသမျှ data,logic ,view တွေကိုထည့်ရေးတာ</p><p>၂။ MVC</p><p>၃။MVP</p><p>၄။MVVM</p><p>၅။MVI</p><p>၆။MvRx</p><p>ဒါတွေက လက်ရှိအသုံးများတာတွေပေါ့</p><p>အာ့ထဲကမှMVP ,MVVM ကိုဘဲ အသေးစိတ်ရှင်းသွားပါ့မယ် ဘာလို့လည်းဆိုတော့ကျွန်တော်အသုံးများလို့တော်တောများများdev တွေလည်းသုံးကြလို့ပါ။</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f87536600a8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>