I need a break …
each try is shorter, no patience for stupidity, bu then comes one of my smart colleagues and tells me wonder stories and I have to confirm that … ;)
after pages of explaining, reading, discussing stupid irrelevancies, hypothetical and edge cases their suggestions for something very simple, simple because no error in the input array
just to give it a sense, the array values have this format: [int] => ‘word/123’
while the number can have 1 – 3 digits and the array is not ordered and may have dups
I will not add the wild reasons they gave, they are not exactly wrong, but they are thinking on three legs … here it is:
chatgpt ...
usort($arr_v, fn($a, $b) => version_compare(substr($b,strpos($b,'/') + 1), substr($a,strpos($a,'/') + 1)));
claude ...
natsort($arr_v);
$arr_v = array_unique(array_values(array_reverse($arr_v)));
me ...
$arr_v = array_unique($arr_v);
rsort($arr_v,SORT_NATURAL);
they are just tin cans with some memory, the trend now seems to be make them talk like “beastie boy brothers” and when discussing php loop iterations they come up with “under the hood”, “surprisingly precise”, “absolute unique” and other slang crap from poetry classes maybe?
is my future in danger?
if I could I would shut down all AIs and restart a normal world with people’s intelligence and real values, also putting the AI inventors in prison for good I think it to be very reasonable step

Leave a Reply