engineering-best-practices
engineering-best-practices copied to clipboard
XWP Engineering Best Practices
When trying to visit `docs.xwp.co` I received an error that the domain was inaccessible. It has been this way for a few days now. Just wanted to flag this as...
Some of Codex links in the document are already redirected to new docs and some will be soon. This PR updates them to go to new docs directly.
Extending and modifying the WordPress block editor is becoming one of the common tasks nowadays. We should consider creating a guide on how to best work with the Gutenberg codebase,...
The current [React guide](https://github.com/xwp/engineering-best-practices/blob/propose/js-updates/languages/js/react.md) should be updated to cover the latest best practices, i.e. using simple functional components along with both built-in and custom [hooks](https://reactjs.org/docs/hooks-intro.html). Hooks and functional components are...
From @edmundcwm: `wp_localize_script()` type-casts all values to string (as seen here) so on the JS side we’d need to parse them back to the intended type. ``` // foo.php wp_localize_script(...
- How to update just one dependency? - Explain how version constrains for packages in `composer.json` impact the results of `composer update`. - Suggest pinning packages to exact versions to...
Connecting to an mysql database running in Chassis (or other Vagrant machine), requires some additional steps and connection process. This issue tracks that documentation.
https://xwp.github.io/engineering-best-practices/php/#design-patterns