-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solve a general issue of configurability of the display #27
Comments
This was brought up again, and this is my verdict:
Here's which features count as what and why:
Here's how major features would work: just like how it's done now, just add a new permutation into the URL. Here's how minor features would work: most features would be toggled using pure CSS (should work even back to IE6), but if Javascript is enabled then the settings could be saved into a non-expiring cookie. Considering the frameworks the opcode table now uses, there would be zero incompatible browsers which would be displaying the table incorrectly, so it would be okay to make this change. If this proposal gets approved, then I could implement this myself (including the magic CSS and Javascript code necessary), as I still have talent from back in the day of writing CSS and Javascript compatible with much older browsers, including Internet Explorer, without needing any Javascript framework other than VanillaJS. |
There is a problem with being able to add new ways to display the opcode table differently.
It's actually quite easy to add code to change how things display via some config.
The problem is that since all variants have to be pre-rendered to be served from a static webpage, and no query parameters can be used to specify the config, currently the config of the layout is simply just encoded into the URL itself (like
dark
,classicoctal
, etc.).The problem with this approach is that it can't be scaled: eventually we'd have ridiculous URLs like
ClassicOctalHexShortaluMcycle
(first letters capitalized for readability, all URLs are lowercase currently otherwise).There have been some other suggestions, but they also have their own downsides:
While I sadly don't have any better clue on how to deal with this issue, I have thought of something:
It might be possible to keep the static URLs for "mainline" combinations (like
dark
orclassicoctal
), but more situation-specific configs (like the beforementionedClassicCotalHexShortaluMcycle
) could just have an optional prefix with a completely meaningless (sequential?) number attached to it (so something like/optables/layout-203
, or simly just/optables/203
).If we end up considering this URL layout, then I also suggest branching off the colorscheme/theme as an URL part if possible (so
/optables/classic/203
for example), so we have less pain which would be caused by this numbering scheme. Although an alternative could also be to always include the theme as a prefix, and the rest of the configs would be just an arbitary number (so/optables/classic-203
for example). I think this would be the best option, especially if the/optables/<theme>/<config>
format is not possible.Whatever the case, I don't think it's possible to flag this in any way on Github, but this issue blocks basically all other issues which are requesting an alternative way to display some information.
The text was updated successfully, but these errors were encountered: