Thread: If PHP Were British

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,157

    If PHP Were British

    If PHP Were British - Added Bytes by Dave Child

    The especially funny part, my favorite, is where
    Code:
        try {
        // Code here
        } catch (Exception $e) {
        // Handle exception
        die('Message');
        }
    becomes
    Code:
        would_you_mind {
        // Code here
        } actually_i_do_mind (Exception Łe) {
        // Politely move on
        cheerio('Message');
        }
    Haha. This is classic. From now on I'm using this in my C++:
    Code:
    #define would_you_mind try
    #define actually_i_do_mind catch

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    25,499
    Paamayim nekudotayim.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    Chennai, India
    Posts
    2,645
    My favourite was the class(aka upper_class) ...example ..
    public: and protected: changed to
    state and hereditary !

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. British Photo's are fakes
    By Clyde in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 05-21-2004, 10:26 PM
  2. Distance and the British way of doing things
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 07-13-2003, 12:15 PM
  3. a british question/joke
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-02-2002, 02:05 PM
  4. british
    By jinx in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-31-2002, 05:47 PM
  5. British Telecom ownz j00!
    By Govtcheez in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 02-12-2002, 12:17 PM
Website Security Test