Tuesday, July 31, 2018

Linus good taste code

What makes good taste? @ GitHub

"Linus Torvalds in an TED interview talked about the idea of good taste in code or what I like to call elegance. As one might expect from two slides meant to make a point during a talk, he omits a lot of details to keep it short and simple. This post digs into the specifics of his example (deleting an element from a list) and adds another example (inserting an element in a list) including working code."

"Linus: not good": has extra if statement
Bad taste

"Linus: good"
Good taste


No comments: