WordPress / wordpress-playground

Run WordPress in the browser via WebAssembly PHP
https://w.org/playground/
GNU General Public License v2.0
1.58k stars 222 forks source link

Vision and Philosophy #472

Open adamziel opened 1 year ago

adamziel commented 1 year ago

WordPress Playground Vision and Philosophy

Vision

Playground exists to bring WordPress to the people.

WordPress should be instantly accessible to users, learners, extenders, and contributors.

Learning WordPress Through Exploration

Playground aims to shift the WordPress learning journey from following screenshots and videos into engaging with a live site where it's safe and easy to creatively explore the concepts being taught.

Imagine live Playgrounds that guide users through building their first website, customizing a theme, or setting up an e-commerce store. Furthermore, users would have the freedom to take a detour and explore on their own. The goal is to not to create specific tutorials or apps, but rather to empower developers with the tools necessary to build them.

Key features include support for pre-defining an initial site setup and the ability to provide step-by-step interactive instructions.

Learning WordPress Development Through Writing Code

Playground aims to encourage and accelerate learning WordPress development.

Imagine an in-browser code editor with an instant preview of everything you build. New developers would be guided through building their first WordPress extensions, and experienced developers would hone their WordPress skills with live code snippets and interactive examples embedded in the documentation and tutorials. Furthermore, developers would be able to start developing locally with zero or almost zero setup steps.

The goal is not to build such a full-featured code editor in Playground, but rather to provide the tools necessary to build one.

Key features include running PHP code in Playground, an abstraction for synchronizing files with a Playground instance, and a PHP binary that supports CLI tools like wp-cli or phpunit.

Instant access to WordPress ecosystem

Playground aims to empower developers to build WordPress applications that are available in an instant and without any server infrastructure.

WordPress ecosystem consists of many powerful extensions that could become accessible without any pre-requisites. Imagine using WordPress as a notes app, getting acquainted with plugins and themes through official live demos, or starting a full-featured development environment with a single-click. The goal is not to build such applications, but to empower the ecosystem to make them available on demand.

Key features include abstraction for integrating a custom filesystems, in-browser support for network requests, and the ability to use and configure specific PHP extensions.

Project philosophy

Focused Framework over Alluring Add-ons

Playground focuses on the minimum work required to fulfill its vision. Therefore, new features are evaluated based on the following question: Does it bring the project closer to its vision in the long run?

Every new feature, no matter how great, makes the codebase a little bit more difficult to approach and adds a little extra time to weekly maintenance. Saying yes to an appealing feature is tempting, but it means saying no to something else. Saying no is difficult, but it makes space for what's indispensable.

Therefore, Playground makes the difficult decision and chooses to focus on its vision – even when that means saying no.

Diligent Design over Quick Quirkiness

Let the long-term success of the project lead the solutions. Some changes can be done quickly, other require more time. Move as fast as the problem allows, but no faster. Move as slow as the problem requires, but not slower.

Developers are under all sorts of time pressures so let's be kind to our future selves. An hour of diligence today saves ten hours of maintenance tomorrow.

Modular Minimalism over Coupled Complexity

WordPress Playground follows the Unix philosophy:

As Antoine de Saint-Exupéry said, "Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away." Let's aim for this kind of perfection.

flexseth commented 3 months ago

@adamziel adding this to the docs info