66 points · by oxydizer · 5d ago · 29 comments
rediwm.redios.org if you want a visual tour.
Thanks!
- https://news.ycombinator.com/item?id=50514317
- https://news.ycombinator.com/item?id=49960882
(both from the same user, neither tagged Show HN... then again, the rules say "Show HN is for something you've made," and this project was generated by a LLM)
If you're used to your RAD or layout design tool hiding that stuff from you then sure, it looks messy. And it could definitely be made more readable. And like you I've already identified some unhandled edge-cases. But is it insane? Nah.
In what way is this sane? The obvious approach would be to have the global const structure encoding the non-localized label (or a key for a localized label) and the action in a map of some sort so that they're next to each other and reviewable. If an index is needed for layout code, that could be included, preferably explicitly so it can be reviewed... or the parameters the layout code actually needs (position and size) could be in the table as well, making it clear what the heck is being built in one place in the code.
I’m somewhat less impressed now.
IN
BOXES!