Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^10: bug or curly bracket hell?

by afoken (Chancellor)
on Jan 26, 2023 at 09:12 UTC ( [id://11149886]=note: print w/replies, xml ) Need Help??


in reply to Re^9: bug or curly bracket hell?
in thread bug or curly bracket hell?

Perl doesn't care how long or short your code is. As a general rule, aim for readability, not brevity.

From long experience, and especially from several years of writing medical and aerospace software: Optimize your code for readability, because most of the time, you will READ your (or someone else's) code. And more often than you will like, you will have to read old, ugly code from people who wanted to outsmart compiler and/or coworkers. And the worst code will be your own old code.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149886]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-07-13 19:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.