Skip to content

remove Jaylib class, create Helpers to replace it - #62

Merged
electronstudio merged 3 commits into
5.5from
removeJaylib
Nov 22, 2024
Merged

electronstudio merged 3 commits into
5.5from
removeJaylib

Conversation

@electronstudio

Copy link
Copy Markdown
Owner

No description provided.

@MerujSargsyan MerujSargsyan left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry forgot to respond :( I do indeed like this approach but I think we should choose a standard naming for all the objects such as "createVector2" instead of "makeVector2" because everything else was "createObject".

Also, I don't know how you feel about this and Im not sure either to be honest, but maybe we could name these constructors using PascalCase in order to support the naming convention of the static functions in raylib. But of course, this isn't necessary.

@electronstudio

Copy link
Copy Markdown
Owner Author

good catch.

I can't find any precedent for using pascal case for static factory methods. Effective Java suggests calling them newVector2().

@electronstudio
electronstudio merged commit 30196b8 into 5.5 Nov 22, 2024
electronstudio added a commit that referenced this pull request Nov 22, 2024
* update to 5.5

* update raylib

* update readme

* update to 5.5

* update

* remove Jaylib class, create Helpers to replace it (#62)

* remove Jaylib class, create Helpers to replace it

* typos

* typos

* new instead of create
@glowiak

glowiak commented Nov 27, 2024

Copy link
Copy Markdown
Contributor

If anyone has troubles converting, I suggest this command:

sed -i 's/Jaylib/Colors/g' $(find . -name '*.java')

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.

3 participants