-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wire class seems useless? #32
Comments
There do seem to be several references to |
Something like that. This isn't as clear to me anymore as I thought it was when I first looked into doing this. I may have jumped the gun here... Either of those two would, from my point of view, simplify the logic of the code. After taking a look again, it looks to me like the Based on my limited understanding, an alternative from a future development and testing standpoint that may be good to consider is if we could somehow make a more general I'm not sure what I suggested above would actually simplify things but it'd be nice if we could start to separate classes so they were less dependent on one another. |
It may be helpful to run a documentation initiative to better understand why classes exist. It may also make it easier to know which classes should be deprecated. Getting more thorough Javadoc into this would help a bit. |
Presumably, the concept of wire was initially introduced b/c, in a real circuit, wires connect gates. However, cello doesn't appear to use the Wire class at all. The structure of the graph is maintained by a Gate and not a Wire (Wire doesn't look to me like it's aware of anything).
I'm currently working on developing a set of tests for cello as a side project but bumping into a lot of difficulties b/c a lot of the classes are fairly tightly coupled, have functionality outside their purview, and there aren't any interfaces. As such, I'm starting w/ refactoring fairly large amounts of code. Should you agree with me on the Wire class, I'll also try to work on getting rid of it.
The text was updated successfully, but these errors were encountered: