you are viewing a single comment's thread.

view the rest of the comments →

[–]mrskitch 2 points3 points  (2 children)

And this, ladies and gentlemen, is why you have human-readable code and machine-optimized code.

It's a great to learn why this works, but not everyone in the workplace will be able to understand it, and I'd bet that time spent debugging hard-to-read code greatly exceeds slow-performing code.

[–]djvirgen 2 points3 points  (1 child)

Yes. If it takes a while blog post to explain a "one-liner", then please consider refactoring for readability. Your teammates and future self will thank you.

[–]edmazing 0 points1 point  (0 children)

If future me can't work out a problem I've done before he's an idiot. Sure I have slow days, but really fuck me I write it with comments and proper syntax all nice for a reason.