Jan 2, 2010

.NET V .PHP ::: Top 6 Reasons to Use .NET

ကၽြန္ေတာ္ကေတာ့ .Net သမားတစ္ေယာက္ပါ.. အခုႏႈိင္းယွဥ္ထားတာကလဲ website တစ္ခုမွာဖတ္မိတဲ့ article ေလးတစ္ခုကုိဘာသာျပန္ထားတာပါ.. လြတ္လပ္စြာ ကဲြလဲြႏုိင္ပါတယ္ အဲဒီေလာက္ထိေတာ့ မသိေသးပါဘူး။ ဒါေပမယ့္ .Net ကေတာ့ open source မဟုတ္ေပမယ့္ ေရးလုိ႔ေကာင္းပါတယ္ ။။

What is the .Net framework?
.Net Framework မွာ အပုိင္းႏွစ္ပုိင္းရွိပါတယ္။ တစ္ပုိင္းကေတာ့ CLR (the thing that runs code) ဆုိတဲ့ကုတ္ေတြကုိ run တဲ့အပုိင္းနဲ႔ A hierarchical set of Class Libraries လုိ႔ေခၚတဲ႔ အသင့္ေရးထားတဲ႔ libraries file (Included in those class libraries are ASP.Net ,ADO.NET (a data access system)and Windows Forms(classes for building window’s application)) ေတြပါပါတယ္။ CLR ဟာ .Net ကေန ေမြးစားယူထားတဲ႔ ဘယ္ language နဲ႔ ေရးထားတဲ့ ကုတ္ကုိမဆုိ run ႏုိင္ပါတယ္။OS ေတြမွာလဲ CLR ရွိရင္ အဲဒီ ကုတ္ေတြအားလံုးကုိ run ႏုိင္ပါတယ္။

6 great reasons to use .Net

1.Speed
.Net application အားလံုးက compiled လုပ္ျပီးသားေတြ ျဖစ္ပါတယ္..ဒါဟာ .Net ေတြကုိ interpreted လုပ္ျပီး run တဲ့ PHP ထက္ျမန္ေစပါတဲ့အခ်က္ပါပဲ။ အဲလုိမ်ိဳး PHP မွာ ကုတ္ေတြကုိ achieve လုပ္ေပးမယ့္ PHP accelerator မ်ိဳးကုိ server မွာ သပ္သပ္ installed လုပ္ေပးရပါမယ္. ဒါေပမယ့္ အဲလုိ companies မ်ိဳးက ရွားပါတယ္။ ေနာက္ျပီး OO ဟာလည္း PHP မွာထက္ ASP.Net မွာ ပုိျမန္ပါတယ္။။
2.More language support
ASP.Net ဟာ အမွန္တကယ္ OO(Object Oriented) Programming language ကုိအသံုးျပဳျပီးေရးပါတယ္။ PHP ကေတာ့ .Net language ေတြျဖစ္တဲ့ C++,C# and VB.Net ႏႈိင္းယွဥ္လုိက္ရင္ simple ျဖစ္တဲ့ scripting language နဲ႔ ေရးတာျဖစ္ပါတယ္။ .Net language ေတြမွာ programming သက္တမ္းမၾကာဘဲနဲ႔ master တစ္ေယာက္ျဖစ္ဖုိ႔ ခက္ခဲပါတယ္။ PHP ကုိသိေနလုိ႔ C# ကုိေလ့လာဖုိ႔သိပ္မခက္ေပမယ့္ ASP.Net ကိုေတာ့ PHP လုိအလြယ္တကူ သံုးႏုိင္ဖုိ႔ ခက္ပါတယ္။
ေနာက္တစ္ခုေကာင္းတာက .Net ဟာ Multi-language support ျဖစ္ပါတယ္။ ASP.Net ကုိ C++.C#,VB.Net,Jscript.Net,Python,Perl,J#,COBOL,Eiffel and Delphi တုိ႔နဲ႔ ေရးႏုိင္ပါတယ္။ ASP.Net application ကုိ PHP မွာေရးဖုိ႔ ကေတာ့ မျဖစ္ႏုိင္ေသးပါဘူး ..
.Net မွာေကာင္းတာတစ္ခုက ကုတ္ေတြကုိ ေရာေရးလုိ႔ရတာပါပဲ။ C# ကေန C++ or VB.Net နဲ႔ ေရးထားတဲ့ class ေတြကုိယူသံုးလုိ႔ရပါတယ္။ ဒါေၾကာင့္ သင့္ project အတြက္ လုိအပ္တဲ႔ အသင့္ေရးထားတဲ႔ suitable pre-written class ေတြကုိလည္း web ေပၚမွာရွာျပီး ထည္းသြင္းအသံုးျပဳနုိင္ပါတယ္။
3.Your choice of development environments
This is an area where ASP.NET shines! Microsoft ကေန a free development environment for ASP.NET called Web Matrix ကုိ ထုတ္လုိက္ပါတယ္။ အဲဒါဟာ တျခား free development environment for PHP တုိ႔ကုိ ရုိက္ခတ္သြားပါတယ္။ သူ႔မွာ built-in Web server,database administration interface FTP integration စတာေတြအားလံုးပါပါတယ္။ ဒါေတြဟာ Visual Studio.Net ကုိ မသံုးတဲ့သူေတြ အတြက္ျဖစ္ျပီး Visual Studio.Net မွာေတာ့ ဒါေတြအျပင္ ေအာက္ပါတုိ႔ကိုပါ လုပ္ေဆာင္ေပးႏုိင္ပါတယ္။
  1. သင့္ရဲ႕ database ကေန ပံုေတြ၊ report ေတြကုိ automatically ဖန္တီးေပးႏုိင္ပါတယ္
  2. Line by line ကုတ္ေတြကုိ debug လုပ္ေပးႏုိင္ပါတယ္. Run ေနတဲ့ အဆင့္တုိင္းမွာ ဘာေတြျဖစ္ေနလဲဆုိတာကုိ ၾကည့္လုိ႔ရပါတယ္
  3. Execution ရဲ႕ အလယ္မွာ variable ေတြ ကုိ temporary value change ေပးလုိ႔ရပါတယ္ ။။အေျဖမွာ ေနာက္တမ်ိဳးထြက္မထြက္ကုိ စစ္ၾကည့္လုိ႔ရပါတယ္။
  4. Debugging လုပ္ေနတဲ့ အခ်ိန္မွာ Mouse ကုိ variable အေပၚကုိ တင္လုိက္တာနဲ႔ လက္ရွိ variable မွာ ရွိေနတဲ႔ တန္ဖုိးကုိ ၾကည့္လုိ႔ရပါတယ္။

4.It’s part of .Net
ASP.Net ဟာလည္း .Netရဲ႕ အစိတ္အပုိင္းျဖစ္တာမုိ႔ benefit ေတြအမ်ားၾကီးရွိပါတယ္။ ASP.Net ေရးတာကို သိတာနဲ႔ ရုိးရုိး application ေတြကုိလည္း ေရးတတ္သြားပါမယ္။ PHP has PHP-GTK, but it's currently very immature compared to .NET.
5.It’s cheaper to develop for
ဒါကေတာ့ ထူးဆန္းပါတယ္။ ASP.Net က ဒီေလာက္ေကာင္းေပမယ့္ သူ႔ရဲ႕ကုန္က်စရိတ္က free နီးပါးပါပဲ ( including the code editor,Web server and FTP client) .. PHP မွာေတာ့ (PHP development environment composed of UltraEdit , Bullet Proof FTP, mySQLfront ) စတာေတြကုန္က်ပါတယ္ ..ဒါေပမယ့္ hosting ASP.NET is still more expensive than PHP.
6.It’s Cross-Platform
.NET is currently pretty much tied to the Windows platform. This is a bad thing, but I'm quite confident that .NET will become very cross-platform in a few years.
MORE INFO>> http://articles.sitepoint.com/article/v-php-top-6-reasons-use-net

No comments:

Post a Comment