4 ms·
Using a branch when you can just do an assignment is objectively bad code.
by andrepd 10y ago
Using 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.