-
Notifications
You must be signed in to change notification settings - Fork 39
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
Misc refactors #599
base: master
Are you sure you want to change the base?
Misc refactors #599
Conversation
@veelenga Could you please review 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.
That's a lot of changes, and they have varying decrees of impact.
I'm wondering if it might be a good idea to extract some of the non-trivial changes into separate PRs to have them stand out more?
@straight-shoota This might seem like a lot but there's not that much changes, actually. If you think that some particular ones deserves their own PRs, please just say so. |
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.
Reviewed partially.
CI nightly jobs started failing with error:
As far as I can see it's related to:
Fixed in crystal-lang/crystal#15589 |
I would appreciate if we could extract changes in |
There's no point to do so, I've just shuffled the order of method definitions (so the private methods will come after the public ones), nothing really changed beside that. |
@veelenga I'd advise you to look at the individual commits, as opposed to trying to grok the differences from the overall view - this might answer some of your questions. |
Thanks for the heads up, but there are 37 commits, I don't think it is easier to review the individual commits one by one. |
Could you please clarify the reason for this change? It seems subjective and isn't enforced by any established rules, meaning it can't be guaranteed in the future. Additionally, someone else could join the project with a different perspective and revert the changes back or enforce other rules they think look better. Do you agree? |
Sure. That's the rule I wrote long time ago and now revisiting it after time, I'm finding it's odd having to dig through all of the private methods in order to get to the public ones. Most of other rules are written in such fashion, and I believe it's for a reason (i.e. readability). I'd happily accept a rule requiring an ordering of |
Got it, thanks for explaining. However, I personally don't find this version more readable than the previous one. The change doesn't seem to offer any significant improvement from my perspective. Also, I want to re-call what I mentioned few times during previous Misc refactoring:
This PR contains some valuable changes and improvements but mixing it with code style suggestions, while these styles are not enforced on the project, is counterproductive IMO. Code style changes should be discussed separately, maybe written somewhere, and ideally automated with linting rules before being implemented. Otherwise, we risk spending valuable review time on subjective matters rather than focusing on functional improvements. |
Co-authored-by: Vitalii Elenhaupt <[email protected]>
7fbd62a
to
ce5fced
Compare
No description provided.