This is the third installment of our Intern Diaries series, wherein each week our lovely interns try to give you the inside scoop on what being a programming intern at a high-tech startup is really like. [For Part 1 and Part 2] This week Ingrid tackles what makes for great code. See what she’s discovered below.
I’ve been considering what defines well-designed code this summer both via literature and my own experiences. It’s a big question so I’ve been taking my time, and slowly amassing a list of the characteristics of awesome code. However, this past week, the list has become longer and clearer in my mind because of the introduction of three-person code reviews. At this point, I’ve decided that the seven characteristics of stellar code are:
- Simplicity: the code takes the least convoluted and shortest way to resolve the issue.
- Readability: the code is formatted so it isn’t a pain to read. For example, I can assert with confidence that the C# ? operator can be easily replaced with an if/else statement just for the readability factor.
- Flexibility: if a piece of code is repeated frequently, can it be made into a method? Continue reading The Intern Diaries: Ingrid