|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
因为ASP脚本语言非常简单,因此其代码也简单易懂,结合HTML代码,可快速地完成网站的应用程序。还无法完全实现一些企业级的功能:完全的集群、负载均横。ByCoreyRoth,SeniorWebDeveloper
SpecialtoZDNet
Forawhile,theJava2EnterpriseEdition(J2EE)architecturelookedlikethebestwaytodevelopmulti-tieredapplications.JavaServerPages(JSP)andservletshadmanyadvantagesovertheActiveServerPages(ASP)andComponentObjectModel(COM+)platforms.However,IthinkthatisabouttochangewithMicrosoft.Netonthehorizon.Microsoft.Netisprovidingasimilarplatformbutwithmorefunctionality,anditquitepossiblycouldhavethefoundationforbeingcross-platformatsomestage.AccordingtoSun,JSPisbetterthanASPforthefollowingreasons:Ithasplatformandserverindependence,ithasextensibleJSPtagsandASPisinterpreted.Luckily,ASP.Netchangesallofthis.
ThebiggestargumentwhyJavaissuperioristhatitisacross-platformenvironment.Havingcross-platformisgreat,butatwhatcost?Javaisslowbydesign.WithJava,everytimeyourunyourprogramitgoesthroughtheJavaVirtualMachine,aninterpreter,whichthenconvertstheJavabytecodestonativecode.MicrosoftmayenduphavingsupportforplatformindependencewiththewayprogramsarecompiledwithMicrosoft.Net.
Whenaprogramiscompiledwith.Net,itiscompiledintoaDLLorEXEinMicrosoftIntermediateLanguage(MSIL)format,aprocessorindependentassemblylanguage.MSILdoesnotcontainanydependenciesonanyparticularoperatingsystemorarchitecture.ThefirsttimethisEXEisexecuted,itusesJustInTime(JIT)compilationtoconverttheMSILintonativecode.Sothefirsttimeyourunit,itmaybeslower,butsubsequentexecutionswillbefaster.Asyoucansee,thishasthepotentialforadaptationtoacross-platformsituation,butMicrosofthasntmadeanypromisesofthatyet.
Now,IdontknowifMicrosoftwilleveractuallyconvert.Nettoworkonotherplatforms,buttheyareputtingthesupportinthereforit.Myresponsetocross-platformis:Whocares?ForJava,allthatmeansisthatitworkson50differenttypesofUnix.AsfarasIamconcerned,theIntelplatformistheonlyonethatisworthbotheringwith.DesignwiseitmaybeinferiortotheSparcorAlpha,buttheIntelplatformistheonlyoneMicrosoftdevelopsfor.
Oftagsandscripts
ASP3.0doesnothaveextensibletags,anadvantagethatJSPhasheldoverASPforquitesometime.NowwithASP.Net,extensibletagsareavailable.ThroughtheuseofWebForms,ASP.Netisabletododatabinding,formvalidationandmorewithoutthedeveloperhavingtowriteanyscriptatall.DevelopersevenhavetheabilitytowritetheirowncustomWebFormcontrolstosuittheirownneeds.
AnotherprobleminthepastwithASPwasthatitwasaninterpretedlanguage,whereasJSPpagesarecompiledintoservletsthefirsttimetheJSPpageisaccessed.WhatSunneglectstomentionisthattheservletisstillinterpretedwiththeJavaVirtualMachine.WithASP.Net,pageswillnowbeprecompiledtoMSILandthenuseJITcompiling,justlikeJSP.Thedifferenceis.Netgetscompiledonceintonativecode,andservletsareinterpretedeverytimetheyareexecuted.Inthelongrun,Ithinkthiswillresultin.Netcodebeingmoreefficient.
Microsofts.Netmaynotbeperfect.Sinceitstillisinbeta,itmaychangequiteabitbeforeitisactuallyreleased.However,Ithinkitisagreatalternativetowhatwehadbefore.Inthepast,usingCOMandtheMicrosoftTransactionServer(MTS)wasanightmarefordevelopersandusingJ2EEwasslowerthandeath.Iadmitforalongtime,theJ2EEplatformwassuperiortoASPandCOM+.With.Netcomingsoon,Sunshouldbelookingfornewwaystoimproveitsplatformandremaincompetitive.Otherwise,itmaybelosingfuturedevelopers.
CoreyRothisaSeniorWebDeveloperforWordSpinners,aTulsa,OK-basedWebdevelopmentcompany.HehasfiveyearsofexperienceindevelopingWebsites,andstartedhisWebdevelopmentcareeratCreativeLabs.CoreyisalsoconsideredalocalexpertinMicrosofttechnologies,includingActiveServerPages,COM+andMicrosoftSiteServer.
Disclaimer:YourTurnisacommentarycolumnwrittenbyaZDNetNewsreader.Theopinionsexpressedhereinarethoseoftheauthor,notthoseofZDNet,ZDNetNewsnoritseditors.
强大的可扩展性。ASP具有强大的扩展性,可以实现与多种网络、硬件设备的连接:通过专用的通讯线路远程接入企业;通过远程拨号服务器为远程拨号客户提供服务;通过WAP为移动电话互联网客户服务。 |
|