Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

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.


The Gantry Web Framework Book is now available.

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-11-28 00:57 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (735 votes), past polls