Ask HN: What Is Bad Code?
I was debugging my hobby project when I noticed several constructs like this:
1128: 14000001 b 112c
112c: 14000001 b 1130
1130: f85f03a8 ldur x8, [x29, #-16]
I couldn't help but think "What is bad code anyway?" If it runs and fails gracefully, is it good? Is it about maintainability? If it generates code like the above, is it bad or are a few wasted bytes nothing to worry about when working at a higher level?What's your take on the distinctions we should make when reading and writing code?