Show HN: A 300k-line Zig desktop environment with its own compositor,GUI toolkit (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
Replies (1)
Replies (1)
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.
Replies (1)
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.
Replies (1)
Replies (1)