4 ms·
I get it now, the screenshot shows it all. I have gotten good with debugging php, but I can see that leaning into repl as a development environment has a lot of
by makeitrain 4y ago
I get it now, the screenshot shows it all. I have gotten good with debugging php, but I can see that leaning into repl as a development environment has a lot of benefits. Looks like you can experiment with code, keep the returned data, and reuse what you come up with.
Php has psy shell. When it is loaded for a Drupal/symfony site, you can run api calls against the database. This is where things get tricky.
I can imagine better tooling for psy shell that could protect the underlying data to experiment with code before executing it. It would be great to develop system updates this way if we could work on a copy of the data until we’re happy with the output, then run it for real.
I use psy shell to load services and see what their methods do. The environment is not persistent, but maybe I can export my work to a file. Would love to keep results around for testing or running other functions on.
- deleted 4y ago[deleted]