Re:Ask HN: What can lead to misleading names of functions?
by Nextgrid on Friday November 26, 2021 @05:23AM
(#29348962)
The real reason for PHP's bad function names is that early in the language's history, the hash function used to map function names to their actual code was the length of the string, so you couldn't have two function with a name of the same length, thus the intentionally inconsistent naming convention.
[ Parent
| on HN ]
Re:Ask HN: What can lead to misleading names of functions?
by JZN666 on Friday November 26, 2021 @01:43PM
(#29352819)
But this gives very short set of possible function names (up to 20 characters length (?), more is not adequate for development). And even with this parse_str could be named something like "url_parse_query_params_from_str(str)".