And I'm sick of your attitude. You have to understand Charlie that people have coding preferences, just because they may not be the same of yours there is no need to complain?
Printable View
No, he's just acting like he knows something.. and is trying to "outsmart me" and tell me the "correct" way to do things.
Yet at the beginning of this year, had had a Habbo JPEG avatar, didn't know a lick of PHP, and liked to "test divs".
I just want to say something to Charlie.
Just because someone uses
Or someone else usesPHP Code:echo "hi";
Or another person usesPHP Code:echo 'hi';
It still works, there isn't any need to bang on about parenthesis or pretty code, you need to learn to respect that people have very different methods of coding and people always will. I would understand if the methods didn't work or absolutely killed loading times but they don't.PHP Code:echo ("hi");
@denta, lol.
Well there really is no point in doing:
when you could just do:PHP Code:echo 'hello ' . $name . ' yeah so here is the motd: ' . $motd . ' cause today is ' . $date . ' yeah so k.';
PHP Code:echo "hello {$name} yeah so here is the motd: {$motd} cause today is {$date}";
Not really, if you do it the way like I said.. it's wasting time.. and giving PHP to hard of a time.
'' was really invented for short phrases and short strings with no variables. Hence the reason in C languages it's max char range is 3.
I feel like being an *******:
Well there really is no point in doing:
when you could just do:PHP Code:echo "hello {$name} yeah so here is the motd: {$motd} cause today is {$date}";
More to the point coding preference can be bad. Using parenthesis or wrong quotes in any script can and has been proven and has legitimate reasons to slow it down.PHP Code:echo "hello $name yeah so here is the motd: $motd cause today is $date";
Dentafrice, is that built into ZDE?
and I do this
echo( 'I rather do this, cause ' . $im_awesome . ' and thats that.' );
OMG PARENTHESIS' OMG MURDERR REIGGNZ JA RULLE my neg
Precisely, I've just been looking through this thread trying to come up with something to say which will shut everyone up.
Coding PHP has a lot of preference mixed into it, whether you want to use () or not, " or ', they all have their uses and it's all preference. There is no right or wrong, nor is there with indenting, so stop bloody going on about it. The only benefit with using " against ' and () against none is the speed would be increased if you were coding on a server with heavy traffic. Which none of you in this thread do. (Unless Invent has posted).