RealAdventures Blog
RealAdventures - Accommodations, Resorts, Vacations & Adventure Travel - RealAdventures

Consistency in PHP

Posted on August 14, 2007

Over the last few weeks, I’ve slowly been driven more and more crazy by the lack of consistency in PHP. Granted, I’ve known (and accepted) that PHP was inconsistent in both function naming convention and parameter order for quite a while now but it’s a lot more frustrating when you’re working through a large project and have to refer to the documentation to see which order they’ve gone for this time. Then I saw the error: “Parse error: syntax error, unexpected ‘[’, expecting T_PAAMAYIM_NEKUDOTAYIM…” and thought they’ve really lost the plot this time.

Turns out PAAMAYIM NEKUDOTAYIM is the hebrew for “double colon”. So the error was actually referring to a :: syntax problem. Wouldn’t it have been much simpler for everybody involved to have all of the token names in English (or any language provided it was consistent)? Can we look forward to error messages in foreign languages in future? While they’ll be humorous (as I’ll admit, the PAA… thing is), they detract from one of PHPs main goals of being easy to use.

I anxiously await PHP6, the best feature I’ve heard about is that they’re going to make the language more consistent, even at the cost of backwards compatibility.

» Filed Under Development

Comments

Leave a Reply




AddThis Social Bookmark Button


Add Your Listing Today!

Advertise On RealAdventures...





Home | About Us | Advertise | Affiliates | Blog | Careers | Forum | FAQ/Help | Links & Resources | Photo Gallery | Privacy Policy | Staff | Support

Accommodations
Top Categories
Top Destinations
Accommodations & Resorts
Bed & Breakfasts
Campgrounds & RV Parks
Health Spas & Retreats
Hotels & Resorts
Timeshares
Vacation Rentals
Youth Hostels
Adventure Travel & Sports
Active Travel
Airborne Thrills
Ballooning
Bike Tours
Canoeing & Kayaking
Cooking Schools
Cruises
Dude Ranch
EcoTour
Fishing
Golf
Hiking/Trekking
Horseback Riding
Hunting
Language School
Local Attractions
Motorcycle Tour
Rafting
Rock Climbing
Sailing
Scuba & Snorkeling
Sight-Seeing Tour
Skiing & Snowboarding
Whale Watching
Wildlife & Safaris
Boston
Dallas
Grand Canyon
Los Angeles
Las Vegas
Miami
New York City
San Francisco
California
Colorado
Florida
Hawaii
Maine
New York
Texas
Washington, DC
Australia
Canada
Fiji
Greece
Italy
Ireland
Mexico
Spain
United Kingdom


RealAdventures


Disclaimer: Information provided through RealAdventures website, newsletters, e-mails or other services has been provided directly by the companies and/or individuals owning or offering the products/services. RealAdventures does not guarantee or warranty the accuracy of the information contained herein. It is the sole responsibility of the user to ensure the accuracy and clarity of any posted material and to determine the suitability of any service for their particular needs or requirements. Likewise, it is the responsibility of advertisers to determine the suitability and credit worthiness of potential customers prior to any transaction.

Copyright © 1998-2007 Cedora, Inc. - RealAdventures. All Rights Reserved.