Variable Naming in Julia should catch up with Python via snake_case

Continuing the discussion from Experience report after finishing a (reasonably substantial) Julia project in 2024:

4 Likes

Thanks for linking to that deep dive. Am I right that the issue with snake_case is simply that the party line favors no case (although studly caps seems to be in widespread use for package names)? I’ve never encountered problems with snake_case even in Makie, which is the example cited.

1 Like

Gladly. As for what the issue is with case I believe per searching this site for snake_case the nocase seems to be an organic growth (charitably stated) from a couple of random (less charitably stated) comments back in 2018. Anyhow I hope to revisit the issue of the variable naming style guide because I find the nocase and one character variable names nearly useless for doing a local search on my code base. Also, even though Python recommends PascalCase for types I’m starting to think types should be Screaming_Snake_Case so that one doesn’t have to resort to arcane Regex just to search for and find relevant code.

BTW for local desktop search of my code and corresponding design documents and math / Ai / ML research papers documents and PDFs Open Source Recoll works great for me,
here is a link https://www.recoll.org/
HTH

1 Like