According to the React maintainers, React developers reach for the useEffect hook too quickly. It is far from the only hook with many naive usages. Why won’t we go through my favorite example of an incorrect usage for useRef?
PHP
Readonly Property Defaults in PHP 8.6: A Four-Year-Old Restriction Finally Lifts
A clear overview of PHP 8.6’s readonly property defaults RFC, why the old restriction existed, and why interface properties made it worth revisiting. It also covers the practical edge cases, so you know where the Read more…