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

Use Julian style of code? #89

Closed
Datseris opened this issue Apr 6, 2023 · 8 comments
Closed

Use Julian style of code? #89

Datseris opened this issue Apr 6, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@Datseris
Copy link
Contributor

Datseris commented Apr 6, 2023

I've noticed that most names/options in BifurcationKit.jl does not follow the Julia style guide when it comes to naming: https://docs.julialang.org/en/v1/manual/style-guide/#Use-naming-conventions-consistent-with-Julia-base/

If anything, it seems to be a style of a different language altogether, as there is no point where snakeCase should be used (according to the official guide). This raises a conceptual disconnect when using this package. Using the style guide comes with a lot of benefits, see e.g. slide number 11 here: https://github.com/JuliaDynamics/GoodScientificCodeWorkshop/blob/main/block2_clearcode/block2_slides.pdf

image

Is there a solid reason that all keyword arguments are snakeCase instead of low_case_with_underscores ? If not, perhaps it is worth considering changing these things in a 1.0 release.

@rveltz
Copy link
Member

rveltz commented Apr 6, 2023

I would say that the only convention I am not using is the function names sakeCase versus snake_case. Module and struct start with a upper case.

I will change this, you are right

@Datseris
Copy link
Contributor Author

Datseris commented Apr 6, 2023

You are also not using the same style for the names of keyword arguments, which typically are snake_case in Julia.

@antoine-levitt
Copy link
Contributor

I do find this pretty jarring too, changing it would simplify getting into the code (although it's your code, so you do what you want with it!). Also, indentation is off (julia packages usually have 4 spaces instead of tabs). https://github.com/domluna/JuliaFormatter.jl can possibly help (although I personally hate much of their decisions, so you have to select only the parts you want...)

@rveltz
Copy link
Member

rveltz commented Apr 17, 2023

I will comply! I just have a bigger project to commit before making these changes.

@rveltz rveltz added the enhancement New feature or request label May 22, 2023
@rveltz
Copy link
Member

rveltz commented Sep 22, 2023

Hi,

The last version should address most of this

@rveltz
Copy link
Member

rveltz commented Sep 24, 2023 via email

@rveltz
Copy link
Member

rveltz commented Nov 18, 2023

Is it more up to the standards now? We have been working a lot on this.

@rveltz
Copy link
Member

rveltz commented Apr 2, 2024

Feel free to re-open if you spot some non Julian choice

@rveltz rveltz closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants