HaeffnerLab / IonSim.jl

a simple tool for simulating trapped ion systems
https://ionsim.org
MIT License
70 stars 17 forks source link

Style/Consistency Checks #73

Closed neil-glikin closed 1 year ago

neil-glikin commented 2 years ago

The general hope here is to make sure that use of IonSim is easy and intuitive for a user, basically matching up with intuitive expectation as best as possible. This is a list of some of my thoughts of items to consider for this. Many of them are questions about how we should handle stuff.

Julian/coding style

Specific to IonSim

marwahaha commented 2 years ago

goal: making docstrings have consistent style

neil-glikin commented 2 years ago

Just updated first comment

neil-glikin commented 2 years ago

Resources

https://docs.julialang.org/en/v1/manual/style-guide/ https://github.com/invenia/BlueStyle

marwahaha commented 2 years ago

https://github.com/domluna/JuliaFormatter.jl (?)

marwahaha commented 1 year ago

from Kristian (see also #95)

It would be nice to create an empty Chamber(), then we consider the trapping potentials for the ions in IonTrap, then add the Laser and IonTrap into the Chamber.

marwahaha commented 1 year ago

Also: Is our convention for phrases:

with underscores, like ion_configuration
with capital letters, like IonConfiguration
with no spacing, like ionconfiguration
jbroz11 commented 1 year ago

I've been following ion_configuration for file names. IonConfiguration for structs and ionconfiguration for function names. Sometimes I break the last rule if it is not readable.