Tag Archives: readability

Coding Style: Terse vs Verbose

One coding style issues that causes many arguments is the distinction between the Terse/Elegant/Succinct style and the Verbose/Legible/Debuggable style. As usual, each side explains that their style is the only rational choice and that the other approach is obviously wrong. First, let’s look at the two styles to see what they say. In order to… Read More »

Sturgeon’s Revelation of Code

One problem with comparing different programming languages is finding a valid comparison. It’s pretty hard to really compare two different languages. On the other hand, it’s pretty easy to compare example code from the two languages. Unfortunately, comparing code examples is likely to run into Sturgeon’s Revelation, or Sturgeon’s Law: 90% of everything is crap.… Read More »

Code Comment Guidelines

In my last post (Thoughts on Code Comments), I described two opposing camps that argue about code comments. Like much of the craft of programming, the commenting of code is too complicated for a simple set of rules. In this post, I will describe a set of guidelines that I’ve adopted over the years. These… Read More »

Notation vs. Paradigm

Recently, I’ve been taken with the idea of programming languages as notation. When most people look at a programming language, they see syntax and possibly an underlying paradigm. I see the same, I just find the idea that each language also provides a unique notation for expressing ideas quite appealing. Lately, I’ve been thinking about… Read More »

Review of Perl Best Practices

Perl Best Practices Damian Conway O’Reilly, 2005 This book is hard to summarize. There is much good advice in this book. Unfortunately, there’s also some advice that I found questionable. Conway covers some of important Perl programming and general programming best practices, including consistent formatting, use of strict and warnings, and the use of version… Read More »