News for hackers. Stuff that matters.
Re:Go with PHP by thomasfromcdnjs on Thursday May 11, 2023 @02:21AM (#35898381)
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.

Re:Go with PHP by ofrzeta on Thursday May 11, 2023 @02:35AM (#35898521)
So what's the programming language that's 100% consistent? For example Python isn't.
Re:Go with PHP by cutler on Thursday May 11, 2023 @07:04AM (#35900479)
Ruby, Clojure, Go, Kotlin, Rust.
Re:Go with PHP by pdimitar on Thursday May 11, 2023 @07:45AM (#35900786)
I 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.
Re:Go with PHP by xigoi on Thursday May 11, 2023 @10:33AM (#35902692)
Perfect is the enemy of good. There are many languages much more consistent than PHP.
Re:Go with PHP by lostdesign on Thursday May 11, 2023 @05:31AM (#35899816)
Yeah, 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