Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Determining if a rational number terminates

by pemungkah (Priest)
on Dec 03, 2012 at 01:34 UTC ( #1006773=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Determining if a rational number terminates
in thread Determining if a rational number terminates

+1 for ironic comment on comments.

As we all know, the uncommented part is the part that needs the comment here. (And if you say "the code is obvious and needs no comments", it's my sincere opinion you need to get out more.)


Comment on Re^3: Determining if a rational number terminates
Re^4: Determining if a rational number terminates
by tobyink (Abbot) on Dec 03, 2012 at 07:37 UTC

    Actually, if you fix up the whitespace and rename the functions:

    • _ => highest_common_factor
    • __ => canonical_fraction

    ... it's not too bad.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006773]
help
Chatterbox?
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 2014-10-25 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (148 votes), past polls