Wednesday, November 22, 2006

Snakes and adders

I posted earlier that one of the things I disliked about Python was the way that it forces you to indent code to create code blocks. I said that I preferred (for example) Pascal's method, which puts begin...end markers around them. However, it seems it only takes a little bit of practice to get used to typing "Tab" before you write code, and in fact, begin...end tags or no, makes code a lot more readable.

Some languages, by contrast, are so "flexible" with regard to syntax and code layout that they are infamous as "write-only languages", i.e. you can write them, but heaven help the poor sod who has to go in and debug your program months later - even if it's you! C, which falls into this category, can often look to the non-programmer (or, perhaps, even to the presumably-nowadays-rare non-C-programmer) as if one has taken a bag of punctuation marks and sprinkled them around like confetti!

Or then again, maybe it's just me ;-).

No comments: