#webdev
Read more stories on Hashnode
Articles with this tag
A nice refactoring I've learned recently is to utilize types in conditionals. For years I’ve been doing if (!empty($posts)), but Rector, a tool to...
Laravel 10 is making the headlines these days. However, many apps are stuck in older versions, or at least still use the syntax and methods of older...
Various guides exist on how to do this in Laravel, but all the ones I found (this and this) worked only up to Laravel 8. The reason is that in v9 the...
You just have to try Rector. Heck, let the tests break, just run it. · I have to say it from the start, the only thing that comes close to safely...
Removing unreachable and redundant code will benefit you massively over time. There's a tool to do this automatically for you. · It's important to take a...
Rector has a catalog of refactorings ready for us to consume and expand upon. · Continuing from the last post, we're now exploring other Rector...