SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast greg606's Avatar
    Join Date
    Jan 2006
    Location
    Poland, Wrocław
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question What have Ruby and .NET that PHP doesn't have?

    What have Ruby and .NET that PHP doesn't have?
    for end-user and for developer?

    Regards,
    Greg

  2. #2
    SitePoint Zealot
    Join Date
    Sep 2008
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP has bad past with bad design.
    Modern PHP is not that bad but I personally have to work with code written for many years.

    Old PHP is awful and complex language.

    So PHP with so many versions of PHP is very bad thing that makes many problems and It often requires to re-code it to fit new "best PHP practices".

    In future there would be unicode PHP that would be incompatible with current PHP.
    It is never ending story.

    Ruby will switch to unicode soon also.

    .NET and Java are unicode based from beginning

  3. #3
    SitePoint Addict chestertondevelopment's Avatar
    Join Date
    Dec 2005
    Location
    Essex, UK
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by max7
    In future there would be unicode PHP that would be incompatible with current PHP.
    It is never ending story.
    Not true, strings will just be treated the same as they are now.

    PHP is not as bad as people make out, functions are a bit inconsistent but it is a language made for the web and is very good at what it does. I believe Ruby has a lot to go to work on the web, although Rails does have situations where it was useful.

  4. #4
    SitePoint Wizard
    Join Date
    Feb 2007
    Posts
    1,274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by chestertondevelopment View Post
    Not true, strings will just be treated the same as they are now.
    Oh yes. As PHP currently lacks a data type for binary data (e.g. images or audio) the string has been widely (mis)used for handling binary data. Scripts using string functions to manipulate binary data will fail.

  5. #5
    SitePoint Zealot
    Join Date
    Sep 2008
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by chestertondevelopment View Post
    Not true, strings will just be treated the same as they are now.

    PHP is not as bad as people make out, functions are a bit inconsistent but it is a language made for the web and is very good at what it does. I believe Ruby has a lot to go to work on the web, although Rails does have situations where it was useful.
    I tried my PHP code in Quercus (http://quercus.caucho.com/) Java implementation of PHP.
    It already uses unicode strings and someone from caucho told that it implements unicode strings as it is planned to implement in PHP6.

    My code was not working. (This test was done ~year ago)

    May be PHP guys re-thinked or caucho team misunderstood PHP6 ideas.

    My script was processing binary data for RPC implementation.

    UTF-8 sits could be affected also.

  6. #6
    SitePoint Zealot sherl0ck's Avatar
    Join Date
    Aug 2008
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ruby has closure, while php doesn't

  7. #7
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by max7 View Post
    I tried my PHP code in Quercus Java implementation of PHP....My code was not working.
    That is because Quercus is not PHP. It mimics PHP's syntax but it is not PHP.
    If you want to try out PHP 6 Unicode support then download PHP 6, not a clone.

    Quote Originally Posted by sherl0ck View Post
    ruby has closure, while php doesn't
    PHP 5.3 does have Closures.
    Last edited by logic_earth; Dec 2, 2008 at 06:02.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.



Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •