Creative Coder Myanmar
1.79K subscribers
680 photos
3 videos
163 links
Web Development ခရီးစဉ်ကို
Creative Coder နှင့်စတင်လိုက်ပါ။🚀
Download Telegram
၂၀၂၆ မှာ App တစ်ခုက "အလုပ်လုပ်ရုံ" နဲ့ မလုံလောက်တော့ပါဘူး၊ "မြန်နေဖို့" လည်း လိုပါတယ်။

User တွေဟာ ၃ စက္ကန့်ထက်ပိုကြာတဲ့ Website တွေကို စိတ်မရှည်ကြတော့ပါဘူး။ ကိုယ်ဆောက်လိုက်တဲ့ Vue + Laravel App က ဘယ်လောက်ပဲ Feature တွေစုံနေပါစေ၊ လေးနေမယ်ဆိုရင်တော့ User တွေသဘောကျမှာမဟုတ်ပါဘူး။

ဒါကြောင့် App တွေကို မြန်သွားစေမယ့် Performance Tips (၃) ချက် ကို မျှဝေပေးလိုက်ပါတယ်။

📝 Inertia SSR (Server-Side Rendering) ကို အသုံးချပါ Vue နဲ့ Laravel ကို Inertia.js နဲ့ တွဲသုံးတဲ့အခါ Client-side မှာတင်တင်ပေးတာထက် SSR ကိုပါ တွဲသုံးပါ။ ဒါမှသာ First Contentful Paint ပိုမြန်လာပြီး SEO အတွက်လည်း အထောက်အကူဖြစ်စေမှာပါ။

📝 Laravel API Resources & Caching Backend ကနေ Data တွေအကုန်လုံးကို ပစ်မပေးပါနဲ့။ Eloquent Resources ကိုသုံးပြီး လိုအပ်တဲ့ Data field တွေကိုပဲ Filter လုပ်ပြီး ပို့ပါ။ ခဏခဏပြောင်းလဲလေ့မရှိတဲ့ Data တွေကိုတော့ Redis (သို့) Laravel ရဲ့ Cache ကိုသုံးပြီး Database Load ကို လျှော့ချပါ။

📝Vue 3 Async Components & Composables App တစ်ခုလုံးရဲ့ Code တွေကို တစ်ခါတည်း Load မလုပ်ပါနဲ့။ defineAsyncComponent ကိုသုံးပြီး လိုအပ်မှသာ Component တွေကို ခေါ်သုံးပါ။ ဒါဟာ Initial Bundle Size ကို သိသိသာသာ သေးငယ်သွားစေပါတယ်။

"အလုပ်ပြီးဖို့တင် မဟုတ်ဘဲ၊ အကောင်းဆုံး Performance ရအောင် ဘယ်လိုရေးရမလဲ?" ဆိုတာက Professional Developer တစ်ယောက်နဲ့ Beginner တစ်ယောက်ကြားက ကွာခြားချက်ပါပဲ။

ဒီလို Optimization နည်းလမ်းတွေကို စာတွေ့တင်မဟုတ်ဘဲ လက်တွေ့ Project တွေမှာ ဘယ်လိုထည့်သွင်းရမလဲဆိုတာကို ကျနော်တို့ Vue + Laravel Batch (2) မှာ သေသေချာချာ Guide လုပ်ပေးသွားမှာပါ။

Code ကို အရည်အသွေးရှိရှိ (Quality) ရေးတတ်ဖို့နဲ့ Performance အကောင်းဆုံးထွက်အောင် တည်ဆောက်တတ်ဖို့ စာရင်းပေးလို့ရပါပြီ

👉 သင်တန်းအသေးစိတ်ကို Messenger ကနေ စုံစမ်းနိုင်ပါပြီ: m.me/creativecodermm ကို "Vue Laravel " လို့ ပို့လိုက်ပါ။

— Creative Coder Myanmar

#CreativeCoderMyanmar #WebPerformance #VueJS #Laravel #InertiaJS #CleanCode #FullstackDevelopment
1