Variable naming conventions - wb8tyw/D-Rats GitHub Wiki

Starting this page because there is some ambiguity in names used for variables, which causes confusion.

I am proposing the following for naming to for converted code to be phased in.

Currently station, call, callsign are used with different meanings.

Port has multiple meanings in the code: Radio/network connection description or TCP/IP port.

  • active_sessions - A dict of active sessions, this was formerly called "sm".
  • call - Amateur Radio call sign - Lets deprecate this as call can have other meanings in code.
  • callsign - Amateur Radio call sign
  • station - an instance of the station_status.Station class
  • stationid - Amateur Radio Callsign plus a suffix code.
  • session_id - Session ID number. This is currently also known as "ident", "id", "_id", and "station_id"