Git Product home page Git Product logo

Comments (6)

EggPool avatar EggPool commented on July 25, 2024

Will merge/tweak part of it, but logs and options part do not belong to the module.
They at to be handled at app level, not at module level.

from bismuthclient.

hclivess avatar hclivess commented on July 25, 2024

That would mean that every app that wants to use options.py will need to keep a copy of it. So I will keep it in bisbasic.

from bismuthclient.

EggPool avatar EggPool commented on July 25, 2024

Yes.
options.py is far from generic, it's very closely tied to the node.
There is no reason to use node specific code in a module (be it bismuthclient or bisbasic) embedded by an app that itself works out of the node context.

from bismuthclient.

hclivess avatar hclivess commented on July 25, 2024

Some old dapps take some variables from node options, maybe they should ask node for them instead, that would be the most efficient way to do it. That way, options.py can stay with the node only.

from bismuthclient.

EggPool avatar EggPool commented on July 25, 2024

Yep.
The design goal of BismuthClient is to abstract the node, as well as connection to it (works with wallet servers ideally, not even node) into a simpler and transparent layer to be used by newest dapps running outside of any context.
That's why it does not rely on a specific node or node option, and does not need specific logging by default.
It is indeed an opinionated design decision not to keep compatibility with older existing dapps, that would then require their own config and some upgrade.

options.py and log.py could be suited for something like a "bis-legacy" or "bis-retrocompatibility" module, so old dapps can use them without loading new modules with legacy code (thinking out loud).
The perimeter of each module would then be clear.

from bismuthclient.

hclivess avatar hclivess commented on July 25, 2024

Agreed. Thanks for the input, closing the issue.

from bismuthclient.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.