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

rename example project folder names to match java but hyphenated #95

Merged
merged 1 commit into from
Dec 21, 2023

Conversation

fletch3555
Copy link
Contributor

I figured since we're going for parity, we might as well have consistency.

If we want full parity, I'm happy to switch this to no hyphens instead just like the java examples.

Thoughts?

Copy link
Member

@virtuald virtuald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we were to do this, there are a bunch of links to examples in frc-docs that also need to be updated.

... if others support support this renaming, then this is fine, but I don't feel strongly about it. Probably now is as good a time as any to make the change.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

armbot-offboard?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup: https://github.com/wpilibsuite/allwpilib/tree/main/wpilibjExamples/src/main/java/edu/wpi/first/wpilibj/examples/armbotoffboard

Other *bot examples are already hyphenated (hatch-bot, mecanum-bot, differential-drive-bot). Figured I'd keep that pattern consistent.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have to disagree. Everything else about these is following the java examples.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WTF, why are the Java and C++ examples named differently?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, because of the directory is part of the package name, and java package names are always all lowercase.

... yeah, we probably should follow the C++ conventions for example naming, and Java for the actual example content, it'll be a lot easier to read. But we already merged this. Lame.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah fair point. Okay, I'll get that changed and open yet another PR (you must hate seeing my name pop up by now). Probably later tonight

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#97

@fletch3555
Copy link
Contributor Author

If we were to do this, there are a bunch of links to examples in frc-docs that also need to be updated.

... if others support support this renaming, then this is fine, but I don't feel strongly about it. Probably now is as good a time as any to make the change.

Perfectly fair. My OCD-tendencies like consistency, but it really wasn't much work at all so either way.

I was tempted to go the other way and remove the hyphens entirely, but I'd actually rather change the java side to match this if to be honest. I find this to be a bit more readable since we're keeping everything lowercase.

@jasondaming
Copy link
Collaborator

My opinion would be to either match the Java examples exactly or just leave it and be "better" in the future.

@fletch3555 fletch3555 force-pushed the rename-examples-for-consistency branch from 4613ec4 to 715b524 Compare December 21, 2023 06:25
@fletch3555
Copy link
Contributor Author

My opinion would be to either match the Java examples exactly or just leave it and be "better" in the future.

I'm inclined to agree. The idea didn't come to me until I was committing these changes. I've now updated them to remove the hyphens. I still need to take a closer look to confirm they're all correct, but this should at least be 99% of it

@virtuald virtuald merged commit 7082531 into robotpy:main Dec 21, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants