Skip to content
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

Investigate Lessons Learnt from Vouzamo/Lego #47

Closed
tthiery opened this issue Jul 14, 2020 · 4 comments
Closed

Investigate Lessons Learnt from Vouzamo/Lego #47

tthiery opened this issue Jul 14, 2020 · 4 comments
Labels
investigation Stuff to investigate
Milestone

Comments

@tthiery
Copy link
Member

tthiery commented Jul 14, 2020

MIT licensed source code, found here

@tthiery tthiery added this to the v2.1 milestone Jul 14, 2020
@tthiery
Copy link
Member Author

tthiery commented Jul 14, 2020

Interesting

  • Focus on Routines (e.g. RangeCalibrations) similar in vision than the Functions namespace here.
  • Also focus on Technic Motors
  • Implements a hub to device message forwarding similar where nathankellenicki/node-poweredup is heading to.
  • Mixes device and ports
  • Also uses convenience interfaces on technic hub (like PortA/PortB)
  • Implements named commands on (e.g.) motor as an extension

Do not copy/regress

  • Uses Time based awaits to allow device to process message instead of awaiting response (e.g. for SetSingleInputMode)
  • Partial Message parsing

Lesson Learnt to consider

  • Hub owns a Queue for messages
  • Uses CW and CCW abbreviation... SharpBrick.PowerdUP only uses +/- without defining them
  • Guarding by capabilities of the device (e.g. input/output mode, combined modes support, etc)
  • Init BLE connection by known hub ids
  • Support multiple device connections at once (does SharpBrick.PoweredUp?)
  • Usage of netstandard2.0. SharpBrick.PoweredUp uses netstandard2.1 which essentially blocks adoptation by .NET Framework (forever) and UWP (till .NET 5 is out).

@tthiery
Copy link
Member Author

tthiery commented Jul 14, 2020

@Vouzamo I took the liberty to analyze to analyze your library Vouzamo/Lego. Very interesting read. Many similar decisions and some interesting outcomes.

@Vouzamo
Copy link

Vouzamo commented Jul 14, 2020

This is great. I haven't been able to commit much time at all for the past few weeks but keen to contribute anything I can as my availability improves in the coming weeks.

Given that you have already surpassed the capabilities in my repo and addressed some of the deficiencies, I will treat it as a deprecated library / personal project and link to yours once I have time to update it.

Further development and enhancements can be to yours to avoid fragmentation / duplication etc. Let me know how you prefer contributions to work? PRs from feature branches or fork and PR from forked repo etc.

@tthiery
Copy link
Member Author

tthiery commented Jul 14, 2020

@Vouzamo See https://github.com/sharpbrick/powered-up/blob/master/CONTRIBUTING.md

If you find something missing in the guide, just open an issue. Since open source and hobby projects like this live from collaboration and everyone's benefit, my goal will be to release Pull Requests quickly after merge. So as soon as there are contributions, I will keep the releases small and on the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigation Stuff to investigate
Projects
None yet
Development

No branches or pull requests

2 participants