Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

refactor/standardize remote proof workflow #47

Open
daviddahl opened this issue Nov 5, 2018 · 1 comment
Open

refactor/standardize remote proof workflow #47

daviddahl opened this issue Nov 5, 2018 · 1 comment
Labels
API enhancement New feature or request help wanted Extra attention is needed

Comments

@daviddahl
Copy link
Contributor

It would be nice to create a standard class with standard methods to allow for easy adding of social proof published sites.

So, extract out the Gist code and reddit code and make a standard class that can be implemented for additional sources of proofs.

I imagine the interface implements something like:

  • getRawData(url)
  • extractProof(rawData)

Then the proof can just be handled generically

@daviddahl daviddahl changed the title refactor remote proof publishing refactor/standardize remote proof workflow Nov 5, 2018
@daviddahl daviddahl added enhancement New feature or request help wanted Extra attention is needed API labels Nov 5, 2018
@cdeng001
Copy link
Contributor

cdeng001 commented Nov 7, 2018

For building interfaces in js, are you ok with using duck typing?

the only other way to get C-like interfaces is to use a transpiler of some sort. typescript

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants