Shameer C. has a tutorial on refactoring with Scientist. Scientist is an experimental framework for PHP that allows you to refactor and improve upon existing code in a live environment, without incurring risk or breakages.
Scientist works by creating an experiment around the code that we want to try. We need to create callbacks around the original code (Control) and refactored code (Trial) that we want to experiment. Scientist will run both functions and return the result of Control while generating a detailed report of its findings. Scientist doesn’t know what to do with the report, so we need to create Journals to handle them.
Filed in: Laravel Tutorials
Join the weekly newsletter and never miss out on new tips, tutorials, and more.
- SENIOR FULL STACK SOFTWARE ENGINEER
Fort Worth, Texas
- PHP Web Developer
Christ for all Nations
- PHP Developer
Manhattan, KS (open to Remote)
- Mid-Senior Laravel Developer
- Full Stack Web Developer
Las Vegas, NV
- Staff Software Engineer (Laravel)
- Software Engineer (PHP, Laravel, Vue)
Los Angeles, CA
How To Rescue Legacy Code through Refactoring
Jeroen Moons shares his advice for getting a legacy codebase under control. It’s full of great information, and…
Four Strategies for Organizing Code
Martin Sandin has an article outlining four strategies for organizing code. He goes through each of the four strategi…