Follow us: social_twitter_button_blue_16social_facebook_button_blue_16

Deskew Blog

Programming, music, software and hardware!
Tags >> coding style

Symmetry in coding style

Posted by: dhj in Software Development

Tagged in: pascal , indentation , Delphi , coding style

dhj

Symmetry is good. Any scientist worth his or her salt will tell you that there are many clues and insights to be found by looking for symmetry.

And yet, when it comes to writing code, most developers are either not paying any attention, don't care, or (if I may be optimistic) haven't thought about the benefits of leveraging symmetry as a driver for good coding style.

Of course, there is plenty of debate about what constitutes good coding style. Unfortunately, it's my sense that most people don't really think too much about the issue and simply adopt  whatever style to which they have previously been exposed. That's why we end up with the bizarre asymetrical style inherited from the C world, i.e,