SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30
  1. #26
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    and there's more ...

    just been trolling the lists and see that a couple of new php5 functions that will probably be added to the core .. which reminded me of this thread , they are ...

    php_check_syntax() & php_strip_whitespace()

    which errr, well check the syntax of a file (presumably before include()'ing) & stripping whitespace (and comments) from a file , something (the latter) I have had to implement more than once in a real messy way , the former I never attempted but a damn fine idea I reckon.

    again 2 functions that may never find thier way into PERL but for the overhead involved I think are priceless.

  2. #27
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi.

    A language that exposes it's parser (tokeniser) and everything in teh runtime (reflection) is an excellent idea. It is one of the big advantages of having a scripting language that we pay such a high price for. All sorts of tools can be created within the language itself, a la Smalltalk.

    Lots of good things are happening. Shame about namespaces though.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  3. #28
    SitePoint Evangelist ghurtado's Avatar
    Join Date
    Sep 2003
    Location
    Wixom, Michigan
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    php_check_syntax() :
    AWESOME idea... i did not know about that one

  4. #29
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,123
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Many of the authors' points are valid though. Naming, spacing, etc do in fact make the uptake of PHP much harder. In the bit of Perl coding I've done it's often much easier to find a function and, really, you can almost take a guess-stab at it and hit the nail on the head 50% of the time.

    I also hate the fact that in PHP there are often 3-4 ways to do the same thing, but one function is "best". That's a huge learning curve.

    I can't say whether either is better since I'm not an expert at either, but certainly a redo of the naming conventions would help adoption of PHP.

    J
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  5. #30
    Non-Member coo_t2's Avatar
    Join Date
    Feb 2003
    Location
    Dog Street
    Posts
    1,819
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Jeremy W.

    I also hate the fact that in PHP there are often 3-4 ways to do the same thing

    J
    With Perl there's usually about 5,467,392 ways to do the same thing.
    With 5,467,391 of those ways involving cryptic, funky syntax.

    If they fix this in Perl6, I think it could be a truly great language. And supposedly Perl6 is supposed to have a smaller, simpler syntax.

    --ed


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
  •