General Refactoring #11
Labels
note > help wanted
Extra attention is needed
type > enhancement
New feature or request
type > meta-issue
Represent the topic of other issues
This issue is related to the topic of refactoring, in particular why we do things this way and if/how we should improve them.
We are writing this issue in preparation of a meeting we will have (not yet planned) regarding improving the codebase.
The following is a (not exhaustive) list of things, everyone is free to leave comments regarding these points, or any ideas they might have:
.warning(...)
will print in yellow and we will not have any.yellow(...)
function.The way we do it now is all over the place, any time we need to create a file we generate the name locally.
The clear improvement is unifying this system to allow better consistency and an easier time naming stuff, without the risk of forgetting some attribute.
AnnotatedGraph
(and the superclassGraph
) we have many places where the data is structured as a1-to-1
mapping.dict
s, but given that we require both key->value and value->key access, it would be better to have a data structure that natively supports this kinds of operations (dict
does not, and for this reason we have many pieces of code that are overcomplicated).bidict
offered by the library bidict.I have other ideas, but I will leave this list as is for now.
As said before, feel free to comment with other points or anything you think would help.
The text was updated successfully, but these errors were encountered: