6 ms·
Exactly. array_filter and array_map, have different order of arguments. ($array, $callback) vs ($callback, $array) A small example of how inconsistent the la
by thomasfromcdnjs 3y ago
Exactly.
array_filter and array_map, have different order of arguments.
($array, $callback) vs ($callback, $array)
A small example of how inconsistent the language is from the ground up.
Most people can explain their respective web servers, but I've never heard anyone even come close to what PHP/Laravel is actually "doing".
Side Complaint: If you are working with Laravel Queue, it is such a hassle to reload your code changes when developing.
- ofrzeta 3y agoSo what's the programming language that's 100% consistent? For example Python isn't.
- cutler 3y agoRuby, Clojure, Go, Kotlin, Rust.
- pdimitar 3y agoI doubt any language is at 100% but from my work with them Elixir, Golang and Rust are predictable and a joy to use. I don't remember the last time their API has surprised me.
- xigoi 3y agoPerfect is the enemy of good. There are many languages much more consistent than PHP.
- lostdesign 3y agoYeah, but these things exist across languages. Laravel has collection methods that fix that and they can be used in any php project too. https://laravel.com/docs/10.x/collections#available-methods https://laravel.com/docs/10.x/collections#available-methods