[thelist] The Excercise of Elegance
aardvark
roselli at earthlink.net
Mon May 8 02:05:19 2000
> -----Original Message-----
> From: Frank
>
> What are some of the things that you do in order to make your code
> more elegant, that is, briefer, more concise and clearer?
whenever i revisit it, i take a quick look through and see if maybe it needs refactoring... i also
keep in mind things i did that could probably be done more efficiently if i knew how... like some
of my functions...
> One of my aims is to always write code that not only accomplishes the
> purpose in the least amount of steps, but that is very easy for a
> stranger to come up and understand my code.
for that, i comment heavily... the documentation exists on the project development, but the inline
comments really help... many of my HTML pages and server-side scripts are littered with code
that some find pointless or redundant if you can see the code... but for those who are brand
new, it can be a great help...