Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: What do you write when learning a new language?

by philcrow (Priest)
on Jun 04, 2008 at 18:54 UTC ( #690216=note: print w/replies, xml ) Need Help??


in reply to What do you write when learning a new language?

I start with Newton's method for the square root of two or three. This also leads to a simple answer that I don't need a debugger to check. I start with a simple loop, then move that to a subroutine, then I move the subroutine to a differnt file so I can learn to make a library. Then I expand the function in the library to handle different root finding.

I did this in Pugs to try out Perl 6 and liked it so much I wrote an article about it. But, I've done it for many other languages over the years including Perl 5 and even (shudder) COBOL.

Phil

The Gantry Web Framework Book is now available.
  • Comment on Re: What do you write when learning a new language?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://690216]
help
Chatterbox?
[1nickt]: Although the example given does not produce an error as stated, on my perl.
[1nickt]: perl -wE 'say for map { ... } 1..3;' # "Unimplemented at -e line 1" ... <c>perlsyn says that should throw a syntax error...
[karlgoethebier]: 1nickt: "Edge cases..." Yes, it seems so. Thanks Nick

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-11-18 19:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?