Re: Code or tools

Uri Guttman <[email protected]> Thu, 17 Aug 2023 23:03:19 -0400
Newsgroups gmane.comp.lang.perl.beginners
Organization Which Clone Am I?
Message-ID <[email protected]>
On 8/17/23 23:00, Lars Noodén wrote:
>
> I would vote for 3. Readability.  Comments are going to be part of that.
>  Maybe a smaller or larger part depending on what you are writing, but
> a part nonetheless.
>
> The reason for that vote is that you read the code so many more times
> than you write it. In fact you keep reading it while you write it, even
> before you forget what's in it and have to re-read it yet again to
> refresh your mind on how it works and what it does specifically. Then
> your colleagues will be reading it as well, for various reasons.
>
> So if you emphasize readability, you will help everyone out including
> your present and future self through the processes of both creation and
> maintenance.

agreed. here is a good way to remember this:

write your code as if the maintainer is a homicidal maniac who knows 
where you live!

uri

-- 
https://uriguttman.blogspot.com/
A Long Strange Trip
A blog about computers, food, my life and silliness.


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/