Conversation
dxdc
commented
Jul 5, 2020
- Fix .gitignore
- Add linting to code and address all linting warnings/errors (including removing unused variables)
- Simplify logic for doorTargetBias, doorCurrentBias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sigh. This is what having a MacBook with one of those blasted keyboards does. Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m not comfortable with this one. Why force the most recent versions upon all of us if we aren’t ready for them? If there’s a good reason, all for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this one up before I could get to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give me the argument for why single versus double quotes. Other than visual preference, I don’t see the need here. Thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer extra parens where possible for improved readability (line 159 in the base). I’m also not a fan of excess carriage returns (lines 163-169 in your patch). Lines 199+...too many spaces, My coding convention is two spaces (no tabs). I believe that has 3.
@hjdhjd you didn't comment on the individual lines so I don't know what you're referring to? will work on the ones I can though. |
I barely use half the features on github...so bear with my learning curve here as I figure out the social coding etiquette. 😄 |
So the patches I’m good with: fixing the typos, updating from a series of ifs to a switch/case statement. The rest I have questions about. 😄 Can you break this up into multiple PRs, or, if you prefer to just update this PR and you can be patient with me while I sort out how to cherry pick updates, I’d appreciate it. |
@hjdhjd made the following changes:
It may be easier for you to review the individual files and confirm:
Lastly,
This is how to comment on individual lines. Click the "+" icon. |
I'm assuming (?) this is referring to package.json. This doesn't force new versions, just checks against them. They are dev dependencies. |
Yeah, but this dev, for instance, isn’t using node 14 on all his platforms. 😄 |
@dxdc So here’s my question - if I merge this PR now, how can I see what are all the changes that are being merged in, since there are now multiple patches on top of patches here? |
Ah :) OK. Updated to the latest v10 package
For the diff, you can click on : https://github.com/hjdhjd/homebridge-myq2/pull/67/files |
Sorry - brain fart. This happens when you get old. 😄 |
Couple of more questions...so why reduce the import block as much as you chose to? I’m going off of the plugin template that the homebridge folks published. Why swap out var for let...serves no functional purpose in the code? |
Been watching for a while now… After a lackluster experience speaking to Chamberlain - very much appreciate the work being done here. Great garage door opener - less than great homekit integration. The work being done here bridges that gap.
Sincerely - Thanks !
… On Jul 5, 2020, at 5:09 PM, dxdc ***@***.***> wrote:
Yeah, but this dev, for instance, isn’t using node 14 on all his platforms.
Ah :) OK. Updated to the latest v10 package
So here’s my question - if I merge this PR now, how can I see what are all the changes that are being merged in, since there are now multiple patches on top of patches here?
For the diff, you can click on : https://github.com/hjdhjd/homebridge-myq2/pull/67/files <https://github.com/hjdhjd/homebridge-myq2/pull/67/files>
or here:
<https://user-images.githubusercontent.com/7200365/86543230-4e135e80-bee2-11ea-9d3d-b65dd6163652.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#67 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APK2HVT4FEBTLCQQ5U2FZ2TR2D23BANCNFSM4OQ6QBMA>.
|
You should only import what is used in that file. If not used, they should be removed.
https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75 |
Fair enough...and thanks, sincerely, for making this better @dxdc. |
@whreams Thanks...it’s a fun little side project. Really appreciate the support! |
Thanks to Chamberlain, it continues to be….. ;)
… On Jul 5, 2020, at 5:17 PM, hjdhjd ***@***.***> wrote:
@whreams <https://github.com/whreams> Thanks...it’s a fun little side project.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#67 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/APK2HVVGSMFLTSMIUK3NTXTR2D3WZANCNFSM4OQ6QBMA>.
|
This issue is locked to prevent necroposting on closed issues. Please create a new issue for related discussion, if needed. |