1
submitted 2 years ago* (last edited 2 years ago) by sisyphean@programming.dev to c/programming@programming.dev

Whenever you store a value that has a unit in a variable, config option or CLI switch, include the unit in the name. So:

  • maxRequestSize => maxRequestSizeBytes
  • elapsedTime => elapsedSeconds
  • cacheSize => cacheSizeMB
  • chargingTime => chargingTimeHours
  • fileSizeLimit => fileSizeLimitGB
  • temperatureThreshold => temperatureThresholdCelsius
  • diskSpace => diskSpaceTerabytes
  • flightAltitude => flightAltitudeFeet
  • monitorRefreshRate => monitorRefreshRateHz
  • serverResponseTimeout => serverResponseTimeoutMs
  • connectionSpeed => connectionSpeedMbps

EDIT: I know it’s better to use types to represent units. Please don’t write yet another comment about it. You can find my response to that point here: https://programming.dev/comment/219329

2
Who even uses Celsius (programming.dev)
5
Who even uses Celsius (programming.dev)
submitted 2 years ago by sisyphean@programming.dev to c/memes@lemmy.ml
0

I’m a moderator of a smaller community. I’m posting quality content multiple times a day, and I posted about it in New Communities. The number of subscribers is low but it’s growing steadily.

Could you please give me some advice on growing this community? I don’t want to spam/flood or come off as rude or weird, but I really believe in it and think it would be useful to many people.

26
i++ (programming.dev)
2
1
submitted 2 years ago by sisyphean@programming.dev to c/memes@lemmy.ml
5
5
1
submitted 2 years ago* (last edited 2 years ago) by sisyphean@programming.dev to c/python@programming.dev
2
2
submitted 2 years ago by sisyphean@programming.dev to c/memes@lemmy.ml
view more: ‹ prev next ›

sisyphean

joined 2 years ago
MODERATOR OF