I'd like to optimize the readability of my codes in Fortran by using OOP. I thus use derived types. what is the best practice to name the types and derived types?
For example, is it better to:
type a
real :: var
end type
type(a) :: mya
or always begin type names by type_
like in type_a
? I like this one but maybe better ideas can be foud.
Also, is it better (then why) to use short names that are less readable or longer names that end up quite difficult to read if the type has too many "levels". For example, in a%b%c%d%e
, if a, b, c, d and e are 8 or more letters long as in country%hospital%service%patient%name
, then once again readability seems to be a concern.
Advices from experts are really welcome.