DEV Community

Discussion on: Question: Naming date variables

Collapse
 
webbureaucrat profile image
webbureaucrat

The naming convention here is pretty good. I agree types in names isn't ideal, but I think you've got a good reason.

However, if you want more descriptive names than type names, consider naming them by where the values are coming from or where they are going. Presumably there's a reason why you're representing dates as strings / ISO8601s, so is this an eventDateForDisplay? Is it an eventDateFromJson?