One of the most sought-after features for PHP is Generics: The ability to have a type that takes another type as a parameter. It’s a feature found in most compiled languages by now, but implementing generics in an interpreted language like PHP, where all the type checking would have to be done at runtime, has always proven Really Really Hard(tm), Really Really Slow(tm), or both.
PHP
Prevent cognitive debt by manually retyping LLM-generated code
Ankur Sethi argues that manually retyping LLM-generated code is a practical way to avoid cognitive debt. It slows you down, but helps you understand the code, catch bad suggestions, and keep a strong mental model Read more…