Comments (6)
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.
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.
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.
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.
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.
Agreed. Thanks for the input, closing the issue.
from bismuthclient.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bismuthclient.