Haskell or PHP?

Status
Not open for further replies.

LongBanana

Regular Member
Joined
Oct 23, 2009
Messages
409
Reaction score
250
Recently, I found out that Haskell can be used for web development and is very fast and takes a lot less lines of code to get things done.
I don't know the language yet, but I know it's a functional language.

I've been doing some PHP work lately and i'm still learning. Although it is more widely used, I am leaning towards trying to learn Haskell to create my websites from now on.

What do you guys think?
 
Any programmers here with experience with Haskell?
 
You will have more support learning PHP. More examples, more people using it, and more businesses using it. Why would you want to learn a more obscure language?
 
My old lecturer talked about Haskell alot on lectures... It made me curious too and am wondering if there is much support for it from the major hosting providers (or any). I have never seen a line of Haskell code before but if is similar to PHP and Java I may put aside some time to learn it.
 
Let me give you my example, i've been working primarily in PHP and Python, both languages are used for web development, i think than Python is better language overall, even for web in some cases.
Depending of job requirements i'm trying to choose the right language for job. But in most cases i don't look what language is better overall or what language fit better for given job, i choose language depending on amount of time i will spend programming (reading documentation, finding examples, finding right libraries ...).

For me, when i'm building web apps amount of time with PHP < amount of time with Python, so PHP > Python, on the other hand when i'm working on automatization tasks and scapping bots Python > PHP.
Haskell probably will be best tool for some tasks, maybe i'm wrong, but i doubt it will be web development.
 
Last edited:
The sad but true fact is that for Web Development you are going to have a VERY hard time trying to escape using PHP.

I don't even personally want to use/learn the language but I really have no choice. My forum uses it, Wordpress, Facebook , etc..

There's just not much you can do without it these days.
 
The sad but true fact is that for Web Development you are going to have a VERY hard time trying to escape using PHP.

I don't even personally want to use/learn the language but I really have no choice. My forum uses it, Wordpress, Facebook , etc..

There's just not much you can do without it these days.

From what i understand...there's not much that PHP "can't do"...so why bother learning Haskell?

Unless Haskell has something unique to offer?

...(just sayin)

~D
 
php for real development. haskell or any other functional programming for bragging rights with yer friends ;)
 
I say just stick with PHP or Python. You will have an easier task debugging your pages or getting help than with an unsupported 'lazy functional programming language'.
 
Heard haskell for the first time
Whats this.?

Functional programming language, it goes into the "academic languages" group, good for teaching, praised my many, but you'll rarely see it in practical/industrial use.
 
With Haskell you will probably need your own server to run it. PHP runs on every hosting, even the free ones.
 
A friend of mine toyed around quite a bit with Haskell and while it's a great concept, it hasn't found too much "grip" in real world - at least not yet.

Being a functional programming language (as weedsmoker already mentioned), it's usually taught alongside Prolog and other fundamentally different programming languages.
 
Haskell is probably one of the hardest languages to learn. I would highly recommend using something else unless you have many years experience in programming.
 
Status
Not open for further replies.
Back
Top