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

Re^2: Code style question

by Marshall (Canon)
on May 20, 2021 at 16:20 UTC ( #11132788=note: print w/replies, xml ) Need Help??


in reply to Re: Code style question
in thread Code style question

Indenting style is just that, indenting style. There is no official answer to this indentation question. I have a preference for 3. That doesn't mean that 2 or 4 is "wrong".

Replies are listed 'Best First'.
Re^3: Code style question
by Fletch (Chancellor) on May 20, 2021 at 16:30 UTC

    Yes it is wrong. Wait . . . I'm sorry, was this just the five minute argument or the full half hour? :)

    Edit: 98% an unserious comment solely to make the Python (Monty) reference.

    The cake is a lie.
    The cake is a lie.
    The cake is a lie.

      Hah! Whitespace and well written comments are some of the most important things in code. In my code, when the "subject/purpose" changes, I add a blank line. That blank line is important and it is there for a reason! The compiler doesn't care, but the humans do care!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-07-30 18:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?