Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: parse a file TXT similar to XML

by eyepopslikeamosquito (Archbishop)
on Mar 31, 2022 at 07:02 UTC ( [id://11142564]=note: print w/replies, xml ) Need Help??


in reply to Re: parse a file TXT similar to XML
in thread RESOLVED - parse a file TXT similar to XML

You seem very impressed with 'parse the file in "oneline"'. It is not impressive at all. It's exceptionally difficult to read, a maintenance nightmare, and extremely error-prone. I strongly recommend you avoid code like this.

kudos to kcott!

From On Coding Standards and Code Reviews, three sobering guidelines to keep in mind before trying to outdo an office colleague in a clever one-liner contest:

  • Correctness, simplicity and clarity come first. Avoid unnecessary cleverness.
  • Favour readability over brevity.
  • Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Replies are listed 'Best First'.
Re^3: parse a file TXT similar to XML
by x-lours (Sexton) on Mar 31, 2022 at 10:56 UTC
    Thanks for advice. I will keep this in mind ;-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-25 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found