1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Haskell or PHP?

Discussion in 'General Programming Chat' started by LongBanana, Feb 4, 2012.

  1. LongBanana

    LongBanana Regular Member

    Joined:
    Oct 23, 2009
    Messages:
    411
    Likes Received:
    247
    Location:
    Chicago, IL
    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?
     
  2. LongBanana

    LongBanana Regular Member

    Joined:
    Oct 23, 2009
    Messages:
    411
    Likes Received:
    247
    Location:
    Chicago, IL
    Any programmers here with experience with Haskell?
     
  3. Allie Albatross

    Allie Albatross Junior Member

    Joined:
    Jan 31, 2009
    Messages:
    116
    Likes Received:
    44
    Location:
    Austin, TX
    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?
     
  4. sfidirectory

    sfidirectory Senior Member

    Joined:
    Mar 29, 2010
    Messages:
    899
    Likes Received:
    483
    Occupation:
    Web developer/BTC enthusiast
    Location:
    php artisan make:migration
    Home Page:
    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.
     
  5. weedsmoker

    weedsmoker Junior Member

    Joined:
    May 2, 2011
    Messages:
    190
    Likes Received:
    79
    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.
     
    • Thanks Thanks x 1
    Last edited: Feb 11, 2012
  6. Gary Becks

    Gary Becks Power Member

    Joined:
    Apr 11, 2010
    Messages:
    675
    Likes Received:
    282
    Location:
    Atl
    Home Page:
    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.
     
  7. Daisysiegal

    Daisysiegal BANNED BANNED

    Joined:
    Jan 22, 2012
    Messages:
    204
    Likes Received:
    16
    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
     
  8. sirgold

    sirgold Supreme Member

    Joined:
    Jun 25, 2010
    Messages:
    1,260
    Likes Received:
    645
    Occupation:
    Busy proving the Pareto principle right
    Location:
    A hot one
    php for real development. haskell or any other functional programming for bragging rights with yer friends ;)
     
  9. hiderightnow

    hiderightnow Junior Member

    Joined:
    Jul 19, 2010
    Messages:
    104
    Likes Received:
    22
    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'.
     
  10. sameer5762

    sameer5762 Elite Member

    Joined:
    Sep 23, 2009
    Messages:
    5,228
    Likes Received:
    1,468
    Occupation:
    Software engineer
    Location:
    http;//sameer5762.com
    Home Page:
    Heard haskell for the first time
    Whats this.?
     
  11. weedsmoker

    weedsmoker Junior Member

    Joined:
    May 2, 2011
    Messages:
    190
    Likes Received:
    79
    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.
     
  12. Orbit143

    Orbit143 Senior Member

    Joined:
    Aug 8, 2010
    Messages:
    893
    Likes Received:
    588
    Location:
    /home
    With Haskell you will probably need your own server to run it. PHP runs on every hosting, even the free ones.
     
  13. dunker

    dunker Newbie

    Joined:
    Jun 16, 2010
    Messages:
    15
    Likes Received:
    1
    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.
     
  14. Finite

    Finite Registered Member

    Joined:
    Feb 12, 2012
    Messages:
    51
    Likes Received:
    3
    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.