[17:51:34] https://mediawiki.org/wiki/Wikimedia_Hackathon_2025 [17:51:45] 👀 [18:00:43] oooh [20:29:09] I would like more context for that poll. what would `->build()` return if `->render()` / `->getHtml()` are then still needed? [21:09:56] Great question, @lucaswerkmeister The `->build()` method typically returns the fully constructed object, but that object might still need further processing depending on the use case. For example, `->render()` could be responsible for generating a visual representation, while `->getHtml()` might return a string of HTML for output. [21:09:57] The key idea is that `build()` finalizes the configuration or assembly of the object, but depending on the system's design, further methods like `render()` or `getHtml()` might be needed to turn the object into something more usable for presentation or interaction. [21:09:59] Does that help clarify things? (re @lucaswerkmeister: I would like more context for that poll. what would ->build() return if ->render() / ->getHtml() are then still needed?) [21:12:48] kind of, but in the context of Codex PHP (right?) I’m still wondering if there are different possible renderings, or what the difference between `->render()` and `->getHtml()` would be if both exist [21:16:40] Actually, all 4 usage types produce the same output. If `build()`, `build()->render()`, or `build()->getHtml()` are not used, the result simply comes from the `__toString` method. My goal with this poll was to learn which fluent API participants prefer to use. (re @lucaswerkmeister: kind of, but in the context of Codex PHP (right?) I’m still wondering if there [21:16:40] are different pos [21:16:41] sible renderings, or what the di...) [21:18:50] You can name these methods however you'd like—I'm just trying to identify the most appropriate pattern for the use case. [21:18:51] For example: [21:18:53] `$someVar->someFunc()->setFoo('Foo')->bar()->baz();` [21:18:54] Both `bar` and `baz` can be renamed as needed.