Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: When does programming become automatic (if ever)?

by Your Mother (Archbishop)
on Apr 13, 2016 at 11:38 UTC ( [id://1160307]=note: print w/replies, xml ) Need Help??


in reply to Re: When does programming become automatic (if ever)?
in thread When does programming become automatic (if ever)?

Replying to you but for the OP's benefit. I think you're aware of everything I'm about to write.

This is really an important revelation, I think. A year or so before I started picking up Perl I became faster in a Unix environment than just about everyone at work. It wasn't aptitude as much as comfort (I wasn't scared to try new things), good typing skills, and laziness. Typing orderstat and specstat and friends six thousand times a day was for the birds. Alias o and s afforded one finger typing, and automatic mouse-selection-buffer copy plus one button pasting meant I was faster out of the gate than everyone else. alias pd "perldoc" has been in my .aliases since I learned it exists. I live by Ctrl^R on the command line.

In an age of instant documentation, being an adept librarian/researcher is equivalent to years of training. And having comfort with the tools means that once you find something, you can make it trivial to reuse. One that comes to mind–

alias hs "perldoc -m HTTP::Status | perl -ne '/\A\s+100/ .. /510/ and +print'"

Replies are listed 'Best First'.
Re^3: When does programming become automatic (if ever)?
by Anonymous Monk on Apr 13, 2016 at 12:13 UTC
    Agreed! Another one to add to the list: sometimes it's easiest to just test something. Not sure about precedence? perl -MO=Deparse,-p -e ... Not sure what context something is in? sub ctx { warn wantarray ? "list\n" : "scalar\n" } Something else? Whip up a quick script using one of the Test:: modules. Data::Dumper and friends debug 75 to 95% of my problems. And so on...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (5)
As of 2024-04-16 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found