3 ms·
This is a huge annoyance for me, as is providing an example in the terms of 'A', 'B', 'C', and 'D'. PHP's manual is terrible for this. It's not just a naming p
by FuzzyDunlop 15y ago
This is a huge annoyance for me, as is providing an example in the terms of 'A', 'B', 'C', and 'D'.
PHP's manual is terrible for this. It's not just a naming problem, but a total failure to explain the purpose of that concept or function with a proper use-case.
class A {
public function a($a) {
$this->a = $a;
}
}
class _A extends A {
}
class B {
public function b($b) {
$this->b = $b;
}
}
$foo = new A;
$bar = new _A;
$baz = new B;
....
Another thing is stuff like this:
Array.sort(function(a, b) {
return a - b;
});
Firstly, if you're a beginner, that means absolutely nothing other than an array is being sorted. Secondly, if you do know what it is, it fails to explain what else you might be able to do other than sorting from lowest to highest.