Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: How has your coding style changed over the years?

by hda (Chaplain)
on Aug 07, 2022 at 17:05 UTC ( [id://11146000]=note: print w/replies, xml ) Need Help??

in reply to How has your coding style changed over the years?

I am pretty much on the same page as the OP and others, but I have a fondness for this type of indentation:
foo { some code line; foo { some code line; some code line; } }
which I find it useful for tracking nested structures and more visually pleasing than the pure K&R. Indentation is four spaces.

I also use a final semicolon in the last line within curly brackets even when that is not strictly necessary. In that way I do not need to think about the last semicolon when doing tests or adjustments in the code.


Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-05-23 11:19 GMT
Find Nodes?
    Voting Booth?

    No recent polls found