php, asp, jsp which one to go for? and why?

which web technology to choose

So you always had questions like…

  • What language to use php, java/jsp/servlet or asp for web-app development?
  • Which is better asp/jsp/php?
  • Java Developer: Why to use php anyways? Its not OO!
  • php Developer: Why to make things so complicated!

This may fire a debate but before it does I just want to tell you that this is just my opinion… A wise man somewhere-somehow said..

Listen to everyone but just do what you wanna do!

Now, it goes this way.. I was a college student thought why not to make one site I heard of making that stuff in php.. Now the question was why not Java (say it jsp, servlet, struts, jsf and what not… all are basically from same family and that is JAVA) or may be the Microsoft thing (asp, .net, aspx, iis etc. all microsoft stuff).

If I had chosen php saying “buddy this is open source” what about java.. haa? here I am giving some of the points which made me choose php over the other server side technologies…

  • PHP is open-source, yes Java is but Microsoft isn’t (So, for me asp is out here at first point)
  • PHP is light to server unfortunately Java is not (Java’s application servers are too heavy for my apps).
  • PHP could be compiled just to have optimized output just like Java and ASP but on the other hand it does not require compilation (being a scripting language) and all long server restarts which Java server may require.
  • Java offers me MVC based frameworks like struts and jsf but wait PHP now offers even better frameworks like cakePHP, codeIgniter etc.
  • Java is an Obeject Oriented Language meaning am always playing in classes and objects, so what php (5+) now offers the same.
  • Java had so many utility libraries just download the jar and use it.. so is the case with php
  • PHP shared servers are easy to find and are light to pocket, this is not the case with Java.

Conclusion by me..

If you wanna make a web-app just small as my homepage or just huge as facebook you can go for PHP

so where does JAVA fits? for that I will put some more points…

  • If your application is too big and is to be maintained by several people you may follow some kind of strict OO methodology and design patterns you may go with php but here JAVA is a better option.
  • If your application is less web and more serverside, say you want to make a bank-application it deals more with transactions, accounts, bulk operations etc., these kind of applications are better if made in JAVA technologies. Generally a N-tier system is made where the web side is just for taking your request (like you wanna send some money to ur buddy u place a request) the main part is transactions, bulk operations (several accounts are given an interest of say 5%). These operations are generally not done within a client-server request rather should be done by the server running applications (EJB’s and Java Pojo’s do this work).
  • If your client is ready to invest more money go for Java. ( :D )

So, If you making an application which process less for web and more server side work (transactions or bulk operations) go with java…

all are good at their places just you need to know what you want to attain.

Pages:
  1. every point holds True…recently read some policies of Microsoft about media player that made them pay million of dollars…hope they too go OS one day…

  2. adityajoshee

    I have worked on both the languages and JSP beats PHP in almost every aspect except that in speed both are the same for small applications but definitely JSP for the larger ones and the other is that PHP is bit easier to code while developing small services . JSP is better approved and is used by most big organisations , its is powered by Java which is ultimate language for cross-platform…

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>