English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

which is better ??? any prescription ?? similar to C++ ?

2007-02-02 22:28:43 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

anytime... anyday... i's always prefer PHP!

2007-02-02 22:31:25 · answer #1 · answered by Anonymous · 1 0

Honestly, the answer is: it depends.

Whether to use PHP, ASP.net, or Java depends on the unique needs of the project. PHP is a great language for small to medium size projects (even e-commerce) and can run on almost any webserver and platform.

.NET and Java are considered more 'enterprise-ready'. .NET is a Windows only solution, meaning that, pretty much, you will have to have Windows servers to run the code. There is, however, the open-source Mono project that attempts to create a run-time environment that will allow .NET code to run on a Unix/Linux server. Java will run on any environment (Mac, Windows, Unix, Linux).

Also, with .NET you are pretty much limited to Microsoft IDEs and the IIS web server. With Java, there are numerous IDEs and webserver (free and otherwise) to choose from. Whether that matters to you, again, depends.

If you are looking for something akin to C++, Java is the closest of the three as it was based largely on C++ (though without some of the C++ gotchas like destructors and pointers). If you wish to peruse a Microsoft-based approach, go with C#, as it is closely modeled after Java and has some very similar constructs.

You will be able to find PHP developers and hosting MUCH cheaper than .NET and Java developers and hosting.

If you are asking so that you can decide which to learn to get a job in software development, I say learn PHP first (it's easier) then learn either .NET or Java.

Good luck!

2007-02-03 10:39:22 · answer #2 · answered by Common Sense Guy 2 · 0 0

ASP.NET because with .NET you can build reusable libraries and use them from Windows / Web or any other type of applications.

For example, You might build the Data Access Layer and Business Logic Layers and compile them into .NET assemblies, then use them in several applications like you with one ASP.NET application, several windows applications for administrative purposes, and perhaps Windows Services.

In PHP you cannot achieve this paradigm. I have worked with PHP and code reusing is hard to attain. At its best, you can use include files to reuse your code. In addition, the code sometimes ends up not being as clean as in a well designed ASP.NET application.

PHP however has its benefits. For example it is open source, fast, and easy to use. It can very suitable for simple web applications. However if you're planning a complex web application, you will benefit more from an Object Oriented Designed Solution - hence making ASP.NET a better choice.

Is it similar to C++? In time you will learn that the syntax of a language is the last of your problems. The capabilities of the language is what you should study.

PHP's syntax is easy to learn. ASP.NET itself is not a programming language, so if you decide to go for ASP.NET you can program your application with any .NET language (the most famous are C# and VB.NET).

Thank You

2007-02-03 09:30:23 · answer #3 · answered by Smutty 6 · 0 0

Functionally, PHP and ASP.Net are absolutely equivalent. Anything you can do in one you can do in the other. The only difference is, doing it with PHP is going to be far less expensive. With PHP, you can deploy on an open-source software stack (Linux/FreeBSD + Apache + MySQL), although PHP works quite well with Oracle, if you can afford it. ASP.Net runs only on Windows and does not integrate with MySQL natively, so you need to either use ODBC or employ an expensive commercial database server, such as SQL Server or Oracle.

Prescriptions? Use what you are more comfortable with. Both technologies are solid if used properly. PHP's inability to scale (to which some posters in this thread alluded) is a myth; Friendster, in fact, solved their scalability problems by switching from JSP to PHP...

2007-02-03 19:21:34 · answer #4 · answered by NC 7 · 0 0

I prefer asp.net with c#.net as backing. PHP reminds me a lot of classic ASP, where you don't have a very thorough seperation of presentation, business, and data layers which ultimately leads to decreased ease of code maintenance. Also, with asp.net, its basically an extended html tag set that you wire up to c# event handlers. Its just like c++ but with a garbage collector. I can go from writing windows programs to writing web programs in the same language, and with a similar event driven methodology which is convenient.

I think part of it boils down to what you want to create. I'm making gazillion dollar sites for electronic medical records where the clients are willing to pay for extra infastructure and plumbing work up front. There's a lot of crazy stuff going on in the background with information from like 3-4 different database servers being presented on one web page request. Asp.net allows me to manage that sort of thing better IMO

If you want to churn out a dating site, or simple e-commerce site, with a single database, or you're concerned with rapid application development where the customer may not want to spend 10 grand on research proposals, php may actually be a better choice. You don't have to set up X layers of abstraction to make things acceptable or working in PHP. That's not to say that you can't do that sort of thing with asp.net I just think that all the code gen asp.net does when in a rapid application development scenario is overkill.

2007-02-03 08:11:59 · answer #5 · answered by Anonymous · 0 0

depends on u r skill.

2007-02-03 07:55:56 · answer #6 · answered by dipak 2 · 0 0

fedest.com, questions and answers