Something to the tune of "unfinished", "uncompleted"/"incomplete" or — even better — "outstanding".
I avoid negatives when I can, so I'd go with `outstandingTask` or `outstanding_task` (or `todo` if that's the term you use throughout the application).
I though we were past naming variables by their types? That's what their types are for.
So try naming it about what is it promising to have?
What would you name it?
What is it going to have as the value?
a promise that, if fulfilled, will return an object of uncompleted todo
Something to the tune of "unfinished", "uncompleted"/"incomplete" or — even better — "outstanding".
I avoid negatives when I can, so I'd go with `outstandingTask` or `outstanding_task` (or `todo` if that's the term you use throughout the application).
I have this convention:
So in your case: if it's the only todo.I could see what group name is. What sets apart object name and object type? Because, both Todo and Promise are object type.
I would think it would depend what the meaning of the variable is? Usually, it is not only the type which is relevant, I think.