andytudhope / what

A better way to make memes on ao
5 stars 2 forks source link

Display actual functions #2

Open andytudhope opened 6 months ago

andytudhope commented 6 months ago

Once I load the Pattern and Handle into my Proposals table here they are stored as hexidecimal references.

Which means that, when I pull them into the web UI to display to people what they're voting on, no-one actually has any idea :sweat_smile:

This may link to the work required to load actual functions, rather than just Handlers.utils.whatever, described in #1

twilson63 commented 6 months ago

There are many ways to solve this, what I would recommend is at the time you load the function, also store the source along side.

{
  name,
  pattern,
  patternSource,
  handle,
  handleSource
}

This you can read the source to display to the user, but there are other ways

COINsciencer commented 3 months ago

good