Skip to main content
gamedev.net
🔒 Locked

[web] alternative to php

Started by DaBookshah 15 replies 2.2k views
Original Post
DaBookshah
DaBookshah
The situation is, I have to use PHP at work. But it sucks, really REALLY badly. Anyway, I would like to find a different language I can use. Criteria: Runs with IIS, windows Free/opensource Something with functional elements would be nice Templating engine a plus Perl sounds better, although with similar syntax which I hate. I've thought of python or scheme, but hopefully the experts here can suggest some which I haven't thought of at all. I miss static typing, but somehow I don't think I'll find anything with that. Thanks for the help Rohan
ToohrVyk
ToohrVyk
ASP.NET 2.0 fits pretty well, though it's obviously not open source. You get to use any .NET-compatible language, from C# to F#.
benryves
benryves
Quote:
Original post by ToohrVyk
ASP.NET 2.0 fits pretty well, though it's obviously not open source. You get to use any .NET-compatible language, from C# to F#.
Or even PHP. [grin] The advantage there, of course, is you can mix and match the existing PHP code with any of the new code you write... From a quick search there are also Python and Ruby compilers targetting the CLR.

If you insist on it being open source, head over to Mono, though their implementation runs on Apache.
[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]
DaBookshah
DaBookshah
Quote:
Original post by benryves
Or even PHP. [grin]


God help us.

DaBookshah
DaBookshah
Ok, I wouldn't go into it normally, but might as well just in case I'm missing something.

- Inconsisitent function naming - My biggest gripe, it's horrible.
- too many built-in functions.
- why the hell would you want to put $ in front of everything
- Quite a few times typos(as in, ones you would think would cause an error) seem to go unnoticed
- It's just so obvious that it was thrown together piece by piece, with no overall design.
benryves
benryves
error_reporting(E_ALL); might help you pick up some errors.

(Oh, and don't forget inconsistent function arguments ($needle, $haystack or $haystack, $needle), strange case sensitivity (variable names are, function names aren't), scoping, magic quotes and register globals).
[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]
benryves
benryves
Quote:
Original post by Anonymous Poster
ASP is slow like hell when it comes to processing data.
Good thing ASP.NET isn't ASP, then. [wink]

[Website] [+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++]
DaBookshah
DaBookshah
Quote:
Original post by benryves
error_reporting(E_ALL); might help you pick up some errors.


Will it stop for($i=0; i < count(); $i++) ?
Hodgman
Hodgman
Quote:
Original post by DaBookshahCriteria:
Runs with IIS, windows
Free/opensource
Something with functional elements would be nice
Templating engine a plus


I know most people will think I'm crazy, but, you could use C++

It meets all of your criteria except for the templating engine, plus its got static data types, meta-programming, and is faster than any of the other languages mentioned here.

Quote:
Original post by DaBookshah
Quote:
Original post by benryves
error_reporting(E_ALL); might help you pick up some errors.


Will it stop for($i=0; i < count(); $i++) ?

It will at least spit out a warning :P

But yes, PHP is a very messy and badly designed (or not-designed-at-all) language. Believe it or not I use it at work to write command-line tools...
carpo
carpo
I use Java (Tomcat on Apache though) and ASP.Net on my windows machine for web development and enjoy them both. I find it hard to go back to PHP now.

I chose Tomcat for my personal sites as it's opensource and in conjunction with PGSQL I can be sure of a cheap and easily portable infrastructure.
Sander
Sander
Take a look at Python. A very nice language. It's not exceptionally fast but I find it a joy to program in.
Prozak
Prozak
What would one need to start coding under ASP.Net? I have access to Visual Studio 7.

I work a lot in PHP and I love it, it does what I want, but I'll agree with pretty much everything that was said about it here already, it's a language that has suffered an ill-conceived evolution process.

I also would like to say that I don't side with people that seem to have the argument that a language that is free is automatically good for a certain project, because you take out all the licensing fees and whatnots out of the equation, which is false, because you're not choosing the language for the project because of its merits, and you may pay that in a greatly extended development time later on.

I would like to see ASP in motion, and try to ascertain in what aspects it might be the correct tool for certain projects.
Sander
Sander
Someone just asked that question here too. See this topic. Looks like you need IIS on XP or Vista, Apache with mod_mono or XSP (a light-weight ASP.net webserver).
Julle
Julle
I like Ruby on Rails, it's simple and working with databases is a charm as you use the same functions for all databases (Oracle, MYSQL, MSSQL, SQLite etc.).

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.