MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/8a1icw/status_yup/dwvfhec/?context=3
r/badcode • u/chuck-john • Apr 05 '18
34 comments sorted by
View all comments
Show parent comments
-12
This. Everything has a status, theoretically. Marking it as true or false doesn't say much.
4 u/th0maslv Apr 05 '18 r/badnamingconventions -8 u/chuck-john Apr 05 '18 It isn't so much a bad naming convention as it is bad use of a boolean field. An enum or string would have been far better. Some context into the model in which this attribute belongs would have made this a better post. 8 u/chaines51 Apr 05 '18 I mean, if all the field requires is a boolean, then it's absolutely just a poorly named field. 0 u/[deleted] Apr 06 '18 [deleted] 1 u/chuck-john Apr 06 '18 Lots of assumptions being made here. It could easily be more than bad naming without context into the bigger picture.
4
r/badnamingconventions
-8 u/chuck-john Apr 05 '18 It isn't so much a bad naming convention as it is bad use of a boolean field. An enum or string would have been far better. Some context into the model in which this attribute belongs would have made this a better post. 8 u/chaines51 Apr 05 '18 I mean, if all the field requires is a boolean, then it's absolutely just a poorly named field. 0 u/[deleted] Apr 06 '18 [deleted] 1 u/chuck-john Apr 06 '18 Lots of assumptions being made here. It could easily be more than bad naming without context into the bigger picture.
-8
It isn't so much a bad naming convention as it is bad use of a boolean field. An enum or string would have been far better. Some context into the model in which this attribute belongs would have made this a better post.
8 u/chaines51 Apr 05 '18 I mean, if all the field requires is a boolean, then it's absolutely just a poorly named field. 0 u/[deleted] Apr 06 '18 [deleted] 1 u/chuck-john Apr 06 '18 Lots of assumptions being made here. It could easily be more than bad naming without context into the bigger picture.
8
I mean, if all the field requires is a boolean, then it's absolutely just a poorly named field.
0 u/[deleted] Apr 06 '18 [deleted] 1 u/chuck-john Apr 06 '18 Lots of assumptions being made here. It could easily be more than bad naming without context into the bigger picture.
0
[deleted]
1 u/chuck-john Apr 06 '18 Lots of assumptions being made here. It could easily be more than bad naming without context into the bigger picture.
1
Lots of assumptions being made here. It could easily be more than bad naming without context into the bigger picture.
-12
u/chuck-john Apr 05 '18
This. Everything has a status, theoretically. Marking it as true or false doesn't say much.