3 ms·
"overly verbose" might be giving too much credit... it's bad code
by catshirt 10y ago
"overly verbose" might be giving too much credit... it's bad code
- macspoofing 10y agoNo. 'Verbose' is correct. It's not bad code. It's a simple control flow.
- andrepd 10y agoUsing a branch when you can just do an assignment is objectively bad code.
- deleted 10y ago[deleted]
- macspoofing 10y agoObjectively eh? And bad code by what criteria? In this case, it's a little more verbose than it needs to be, but hurts nothing.
- mirekrusin 10y agoBut violates DRY = bad code. Not incorrect because it does what it's suppose to, just in a bad way.