Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Not in order in Hash output

by MidLifeXis (Monsignor)
on Oct 11, 2012 at 12:37 UTC ( #998433=note: print w/replies, xml ) Need Help??

in reply to Not in order in Hash output

Just a couple comments on the coding style I have seen you use in many of your posts.

  • my is a token separate from the name of the variable. Whitespace can help with readability. The formatting that you seem to prefer (my$var ...) is not one that I typically see, is unexpected, and (at least for me) causes a break in the flow while mentally parsing the code. More typical is my $var ....
  • When assigning to a hash, it can be more readable to write %hash = ( a => 1, b => 2, c => 3, ... ). The 'fat comma' is another indicator to my synaptic-based parser that this is a hash assignment.

Nothing that is end-of-the-world type stuff, but more indicators to help my future-self understand what I was thinking when I originally wrote the code.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://998433]
[marinersk]: LanX, the problem is that the lack of interface visual stability is disconcerting to me. The Nodelet appearing and disappearing is distracting, and despite over a decade, still troubles me. It jangles me.
[LanX]: I see
[marinersk]: I appear to be unusually dependent on spacial stability. I have had trouble from someone moving an object a mere four inches to the left.
[Eily]: I think the solution is to write posts so brilliant that you gain XP on each refresh, no matter how often :P
[marinersk]: Eily++ and LOL
[marinersk]: I get a lighter version of this disconcertion (new word?) when the n points remaining until rank disappears.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-05-29 13:55 GMT
Find Nodes?
    Voting Booth?