It's not, if you look at the people who share. It's now the same effort to share with thousands of people than it was to share with your friends 20 years ago. But it got more complicated to buy music in relation to get shared music for free.
Jobs said: "Peoples want buttons". That was when he introduced the "new" iPod Shuffle. Especially at sports it's useful to control your iPod without having to look at it. Guess people are still buying it.
In the integer case the type doesn't matter. '7' == 7 == ('7' + 0) == (7 . ''). If you look at how arrays are stored use an int as key isn't such a bad idea.
If you have '07' you would lose the leading zero.
BTW: I used 07 instead of 08 as numbers written as literal are treated as octal if they start with a zero.
On the model I've seen a couple of years ago the top of the battery has all needed informations. And you don't even have to search for cables or a battery as the compartment will beep loud enough.
If I could a range of 6 IPs and all you need to get my real name, then, yes, my IP address is peronally identifiable. You say that's not always the case and you don't know when it is? So you better not track any IP.
The usual "haven't really used PHP, but read enough rants to know it".
1. Culture. For a long time the mysqli library did not allow the use of parameterized queries leading to the unhealthy culture of concatenating or interpolating sql queries and even "require" arguments.
That's the first version of mysqli from 2003. In line 148 you'll find: "PHP_FUNCTION(mysqli_bind_param)". Mysqli had it since the beginning.
3. super-weak type system, meaning that you can never trust what you expect to be an integer to be just that.
If its type is int it's an int. Nothing unexpected. Or do you mean you can't trust HTTP, because a client could send nonnumerical values in a header that should be numeric. You see it's usual on the web to have everything transfered as string and PHP is made for this usecase. But if you don't have data from outside you don't have these uncertainness.
4. stupid attempts to accomodate developers and save LOCs by introducing "magic quotes", superglobals and the ability to "automagically" map query parameters to global variables.
One thing are mistakes made years ago. The other is not breaking existing code in a minor version. Someone still using stuff like magic quotes has turned it on on purpose or wouldn't read any warning anyway.
4. The fact that PHP is merely a glue layer, relying on binary extensions written in C with the usual buffer overflows, memory corruptions etc.
PHP isn't just a glue layer at least since PHP 5. And if C is so bad, what are all the other scripting languages written in?
Since they were working with the blessing of the **AA, Doesn't matter. In Germany there was a company working with similar tactics and IIRC they had the blessing of IFPI. But neither the artists nor the labels were asked, so they were still operating illegal. As long as the RIAA doesn't hold the copyright directly they can't bless something like this.
There are two things I do, sometimes in combination, but most of the time just one of them.
1) If the security guards ask me if the may look at my bag without greeting, I just reply with "pardon?" to gave them a second and a third try. Mostly they just repeat the same sentence as I didn't unterstand them. After that I'm telling them it's normal to greet someone, especially if you want something and say hello and try to shake hand. Most of them act like I'm seriously ill and won't shake hand, a couple of them do greet. I then say if they greet me the next time they may look in my bag, whish them a good day and good bye. Unfortunately the common response to my hello is "just tell me if you don't want me to look in your bag and now please leave". Like I was the one who was unfriendly to start with.
2) Sometimes I have a little note (called bag inspection authorization) with me for them to sign. It says, they may not tell someone else what's in my bag, they may not take/steal something out of my bag or destroy it and if they want something to be removed our and other section of my bag opened it's me who will touch it and not them. Nothing unusual and nothing they shouldn't do anyway. Still there has only be one who happily signed the note and had a laugh doing so.
The most important thing is to know why they do it. They want to save money and catch thieves. I make it expensive for the shop taking more time than usual and abstract them, while they could catch a real thief. If everyone would do it they would just stop as it would be,... sorry... is, a stupid idea.
Re:Shouldn't it be just "Wicked PHP?"
on
Wicked Cool PHP
·
· Score: 1
These aren't arcane "computer-science" concepts. They're real world limitations that make it hard to write good software in PHP. Other languages, like Perl, Python, and Ruby force you to think about the inherent problems in web development If this would be true these languages won't have the same problems like XSS or SQL injections. The stupid PHP developer would be just as stupid in any other language.
instead of embedding variables in SQL statements, use a query builder. Instead of mixing HTML and code, use a template library. Instead of using $GET indescribably, structure your code so data only flow where they're needed. http://php.net/pdo (I don't like hiding SQL just because, that's why I use prepared statements instead of a query builder) http://smarty.php.net/ or just PHP, which is a template language (if you know how to separate) http://php.net/filter
It's not like the language forces you to do all the evil things. Many of the problems have been solved and solutions are available by default. I guess the real problems are old books and people who still haven't upgraded (also people using PHP5 like PHP4).
@3 you mean this? $class = new ReflectionClass('classname'); while ($class) {
echo $class->getName(), ' ';
$class = $class->getParentClass(); }
@1 you can disable the file upload feature and use php://input instead. But you won't need it to show an upload progress meter. That's already a feature of the file upload handler, but needs an extension so it can be handled from PHP. http://pecl.php.net/package/uploadprogress is one and it's also part of http://pecl.php.net/package/APC .
... PHP-TAL... There is no point bolting another layer of that on top of them. Which is why I strongly dislike Smarty and it's ilk. PHP-TAL is the same as Smarty just with a different syntax. And much more code in the generated templates. A short 11 lines template, which outputs data in a table gets a 18 line compiled template and smarty, while PHP-TAL needs 40 lines to do the same. And I don't need a benchmark to see PHP-TAL produces slower code with all the function calls and controller classes.
MD5 crypt hashes produce characters that need escaping Not really. Normally you'll get a hexadecimal number as string. So you have 0-9 and a-f (or A-F).
Just because they've introduced namespaces as a feature in the language, doesn't mean the entire API gets organized using namespaces. So this means the namespace argument is bullshit. You don't get a good API just because you have namespaces, but also you can have a good API without namespaces. Seems like if people need strawman arguments to bash PHP it can't be that bad.
Shutdown the server - stopping 100% of the hackers. Less work -> much more effective.
In mysqli_query() the order is ressource, string. Don't use an outdated extension - problem solved.
You mean Sumsi? http://www.kleinezeitung.at/steiermark/leibnitz/wolfsberg_im_schwarzautal/2526258/weststeirisches-kaenguru-sumsi-nach-kaernten-ausgewandert.story
It's not, if you look at the people who share. It's now the same effort to share with thousands of people than it was to share with your friends 20 years ago. But it got more complicated to buy music in relation to get shared music for free.
Jobs said: "Peoples want buttons". That was when he introduced the "new" iPod Shuffle. Especially at sports it's useful to control your iPod without having to look at it. Guess people are still buying it.
In the integer case the type doesn't matter. '7' == 7 == ('7' + 0) == (7 . ''). If you look at how arrays are stored use an int as key isn't such a bad idea.
If you have '07' you would lose the leading zero.
BTW: I used 07 instead of 08 as numbers written as literal are treated as octal if they start with a zero.
You don't need one of their store cards because they'll match your banking account numbers
Even if you use your debit card instead of just paying cash they only get one piece of information: "has paid EUR XXX". There's nothing you can track.
On the model I've seen a couple of years ago the top of the battery has all needed informations. And you don't even have to search for cables or a battery as the compartment will beep loud enough.
If I could a range of 6 IPs and all you need to get my real name, then, yes, my IP address is peronally identifiable. You say that's not always the case and you don't know when it is? So you better not track any IP.
Even if Ruby is 1000 times faster, there will still be people complaining.
1000 times faster than super ultra duper slow is still slow ;)
Which is also possible with search keywords, if you combine it with bookmarklets: javascript:var+s=%s;... I've at least two such keywords.
- Call someone a Nazi
The archivement Nazis might have a problem with this.
The usual "haven't really used PHP, but read enough rants to know it".
1. Culture. For a long time the mysqli library did not allow the use of parameterized queries leading to the unhealthy culture of concatenating or interpolating sql queries and even "require" arguments.
That's the first version of mysqli from 2003. In line 148 you'll find: "PHP_FUNCTION(mysqli_bind_param)". Mysqli had it since the beginning.
3. super-weak type system, meaning that you can never trust what you expect to be an integer to be just that.
If its type is int it's an int. Nothing unexpected. Or do you mean you can't trust HTTP, because a client could send nonnumerical values in a header that should be numeric. You see it's usual on the web to have everything transfered as string and PHP is made for this usecase. But if you don't have data from outside you don't have these uncertainness.
4. stupid attempts to accomodate developers and save LOCs by introducing "magic quotes", superglobals and the ability to "automagically" map query parameters to global variables.
One thing are mistakes made years ago. The other is not breaking existing code in a minor version. Someone still using stuff like magic quotes has turned it on on purpose or wouldn't read any warning anyway.
4. The fact that PHP is merely a glue layer, relying on binary extensions written in C with the usual buffer overflows, memory corruptions etc.
PHP isn't just a glue layer at least since PHP 5. And if C is so bad, what are all the other scripting languages written in?
With the gnu tools installed use ggrep - also works with other commands, i.e. find becomes gfind, ..
$x--==-1; // valid PHP
Actually the most recent example is Austrians Innenminister Günther Platter: http://platterwatch.at/PLATTERS-FINGERABDRUCK.html
There are also some other Austrian politicians who made their fingerprint public: http://platterwatch.at/IHREN-ABDRUCK-BITTE.html
There are two things I do, sometimes in combination, but most of the time just one of them.
... sorry ... is, a stupid idea.
1) If the security guards ask me if the may look at my bag without greeting, I just reply with "pardon?" to gave them a second and a third try. Mostly they just repeat the same sentence as I didn't unterstand them. After that I'm telling them it's normal to greet someone, especially if you want something and say hello and try to shake hand. Most of them act like I'm seriously ill and won't shake hand, a couple of them do greet. I then say if they greet me the next time they may look in my bag, whish them a good day and good bye. Unfortunately the common response to my hello is "just tell me if you don't want me to look in your bag and now please leave". Like I was the one who was unfriendly to start with.
2) Sometimes I have a little note (called bag inspection authorization) with me for them to sign. It says, they may not tell someone else what's in my bag, they may not take/steal something out of my bag or destroy it and if they want something to be removed our and other section of my bag opened it's me who will touch it and not them. Nothing unusual and nothing they shouldn't do anyway. Still there has only be one who happily signed the note and had a laugh doing so.
The most important thing is to know why they do it. They want to save money and catch thieves. I make it expensive for the shop taking more time than usual and abstract them, while they could catch a real thief. If everyone would do it they would just stop as it would be,
So ... you are using SuperPiMP instead ;)
http://smarty.php.net/ or just PHP, which is a template language (if you know how to separate)
http://php.net/filter
It's not like the language forces you to do all the evil things. Many of the problems have been solved and solutions are available by default. I guess the real problems are old books and people who still haven't upgraded (also people using PHP5 like PHP4).
*BANG*
@3 you mean this?
$class = new ReflectionClass('classname');
while ($class) {
echo $class->getName(), ' ';
$class = $class->getParentClass();
}
@1 you can disable the file upload feature and use php://input instead. But you won't need it to show an upload progress meter. That's already a feature of the file upload handler, but needs an extension so it can be handled from PHP. http://pecl.php.net/package/uploadprogress is one and it's also part of http://pecl.php.net/package/APC .
... PHP-TAL