Page 5 of 5 FirstFirst 12345
Results 41 to 46 of 46
  1. #41
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    To be honest parenthesis means nothing but garbage, I've said it once and I'll say it again Charlie, preference.

    If someone wants to use the following:
    PHP Code:
    <?php

    echo "Hello";
    echo 
    'Hello';
    echo (
    "Hello");

    ?>
    darn god boy just let them. It does absolutely nothing to the script at all. Yes, the proper way would be to use double quotes, not singles but it works the same anyway. If you spent more time correcting your own code than others you may actually have a point.
    Back for a while.

  2. #42
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Excellent2 View Post
    To be honest parenthesis means nothing but garbage, I've said it once and I'll say it again Charlie, preference.

    If someone wants to use the following:
    PHP Code:
    <?php

    echo "Hello";
    echo 
    'Hello';
    echo (
    "Hello");

    ?>
    darn god boy just let them. It does absolutely nothing to the script at all. Yes, the proper way would be to use double quotes, not singles but it works the same anyway. If you spent more time correcting your own code than others you may actually have a point.
    Actually in that case the proper way would be to use single quotes.

    Dentafrice, I admit that I was wrong, I used a bad example, which I thought was a good example, your benchmarks showed that I was wrong.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  3. #43
    Join Date
    Feb 2006
    Location
    London
    Posts
    7,904
    Tokens
    197

    Latest Awards:

    Default

    Quote Originally Posted by Hypertext View Post
    Actually in that case the proper way would be to use single quotes.

    Dentafrice, I admit that I was wrong, I used a bad example, which I thought was a good example, your benchmarks showed that I was wrong.
    Well you just got an example wrong yet you made this thread making digs at the 'preferances' people use - if people are used to coding that way don't have OCD let them code like that because they're probably used to it.

    Wow it slows the script down by 1 ms you say? Blimey - that's a lot.
    That's why we seize the moment, try to freeze it and own it, squeeze it and hold it cause we consider these minutes golden.


  4. #44
    Join Date
    Oct 2006
    Location
    Peterborough, UK
    Posts
    3,855
    Tokens
    216

    Latest Awards:

    Default

    Quote Originally Posted by Hypertext View Post
    Actually in that case the proper way would be to use single quotes.

    Dentafrice, I admit that I was wrong, I used a bad example, which I thought was a good example, your benchmarks showed that I was wrong.
    The "proper" way is to do it how you want to, if you can do it other ways and it works identically then there are no "rules" there is no "proper" way, you can do it how you goddamn like, who gives a **** if there's a .003 slowdown, good coders don't "like doing it there way" they simply don't care what you think. Also try ranting at your boss who likes using ("") when you "think" '' is right, see how quickly you find yourself out on your ass.

    Stop trying to push your beliefs on other people I don't care what you think, I'm gonna use '', ('') "" and ("") just as much as I want and there's approximately 0% chance (give or take 0%) that anything you can say or do will stop me.


    visit my internet web site on the internet
    http://dong.engineer/
    it is just videos by bill wurtz videos you have been warned

  5. #45
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Charlie you and I both know you soley created this thread to have a dig at PHP newbies on here like me etc. Infact nearly everything you've said is wrong and you've made yourself out to be some moaning little boy who wants to join the popular group.

    You forget that 2-3 months ago you where still stealing Dentafrice's code and asking him silly questions. Now, because you have a low life job at a going nowhere website you think you're the best coder around - wrong sonny. Whoever told you that using "" or '' would slow down a small script rapidly or that it was wrong is also wrong, make sure you check php.net more often.

    You should also concentrate more on your own code rather than others as I'm pretty sure you make a lot of mistakes.
    Back for a while.

  6. #46
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Not to be cliche but we learn from our mistakes

    Also, what a useless thread. This was quite obviously intended to start an argument and the stuff you have highlighted is pretty much insignificant as few people on this forum will be building big scripts which will be affected by the whether you use " or '.

    :rolleyes:


Page 5 of 5 FirstFirst 12345

Posting Permissions

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