Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Asked to put a square peg in a round hole, I would:

by chacham (Prior)
on Aug 01, 2018 at 16:21 UTC ( [id://1219660]=poll: print w/replies, xml ) Need Help??

Vote on this poll

Enlarge the circle
[bar] 44/16%
Square the circle
[bar] 19/7%
Think about rounding the square
[bar] 26/10%
Redefine Pi
[bar] 16/6%
Tell them to hire consultants
[bar] 40/15%
Fold the square
[bar] 10/4%
Use a hammer
[bar] 72/27%
Try to create a squircle
[bar] 40/15%
267 total votes
  • Comment on Asked to put a square peg in a round hole, I would:
Replies are listed 'Best First'.
Re: Asked to put a square peg in a round hole, I would:
by perldigious (Priest) on Aug 01, 2018 at 16:52 UTC

    Well, as an engineer who has written my fair share of requirements documents used for legally binding contracts, I would say that your requirements are vague and ill defined. I mean, how big is the round hole compared to the square peg? What material is the hole in and what is the peg made of? What tooling is available for changing the size of either the hole or the peg and what are the cost projections for both non-refundable engineering and recurring manufacturing per unit? What constraints exist based on other project requirements? What regulatory certifications are necessary for product sale? Has legal reviewed this yet?

    Obviously we need to secure a modest amount of funding from the customer for initial feasibility and R&D studies before we can even begin to talk about defining and quoting such a complicated project... $50,000, USD, should be enough, we'll get back to you in a month. :-)

    Just another Perl hooker - My clients appreciate that I keep my code clean but my comments dirty.
      $50,000, USD, should be enough

      What about the Environmental Impact Study ?? .... better make it $150,000.

      Cheers,
      Rob
      Requirements for a programing project are seldom much better. We usually use the hammer and then wait for the customer to tell us what he really wanted.
      Bill

      I'd say it also depends on the relative speed at which the square peg is moving in relation to the round hole. If we are talking about opposing near earth orbits, neither the shape of the peg nor the shape of the hole will have any significant role in the ultimate end result. An impact at roughly 16 kilometers (10 miles) per second tends to reform the shape of the participating objects anyway. It also tends to turn parts of the objects to plasma and the rest to hypervelocity bullets, so there are downsides, too.

      But all in all, at these kinds of speeds, for a fraction of a nanosecond, the square peg and the round hole will be a perfect fit, no problem. It's only what happens next that will make you want to be not the engineer responsible for the experiment.

      "For me, programming in Perl is like my cooking. The result may not always taste nice, but it's quick, painless and it get's food on the table."
Re: Asked to put a square peg in a round hole, I would:
by QM (Parson) on Aug 02, 2018 at 10:07 UTC
    Asked to put a square peg in a round hole, I would.
    Oh! It was a question! I thought it was a statement.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of

Re: Asked to put a square peg in a round hole, I would:
by zentara (Archbishop) on Aug 02, 2018 at 13:06 UTC
Re: Asked to put a square peg in a round hole, I would:
by davies (Prior) on Aug 03, 2018 at 11:06 UTC

    Measure (a) the diameter of the circle and (b) the diagonal of the square. If a >= b, it will go in. It won't fill the hole, but that wasn't the problem.

    Regards,

    John Davies

      Measure (a) the diameter of the circle and (b) the diagonal of the square. If a >= b, it will go in

      Actually, the square peg will fit through the circular hole so long as the length of the square's side is less than the hole's diameter ... though you might need to shorten the length of the peg.

      Cheers,
      Rob

        If the length of the peg is equal to the length of the square's side then it is a cube. If the length of the peg is equal to or less than the length of the square's side but greater than about half the length of the square's side then it is a block. If the length of the peg is much less than the length of the square's side and the length of the square's side is greater than the diameter of a can or bottle of beer then it is a coaster.

Re: Asked to put a square peg in a round hole, I would:
by hippo (Bishop) on Aug 07, 2018 at 14:27 UTC
  • be unsurprised to find that this is the new USB standard.
Re: Asked to put a square peg in a round hole, I would:
by Anonymous Monk on Aug 02, 2018 at 08:00 UTC
    Note that if your distance function is Manhattan distance, a circle (i.e. set of all points in a plane that are at a given distance from a given point) is a square.
Re: Asked to put a square peg in a round hole, I would:
by zentara (Archbishop) on Aug 02, 2018 at 15:54 UTC
    Make a Square-Peg to Round-Hole adaptor, and sell them on Ebay. :-)

    I'm not really a human, but I play one on earth. ..... an animated JAPH
Re: Asked to put a square peg in a round hole, I would:
by Eily (Monsignor) on Aug 02, 2018 at 08:12 UTC

    Isn't perl the Swiss Army Hammer™ of perl programming, or something like that? :P

Re: Asked to put a square peg in a round hole, I would:
by anonymized user 468275 (Curate) on Aug 02, 2018 at 11:52 UTC
    Warning: this questionnaire was funded by your employer to test whether you have a can-do attitude ;)

    One world, one people

Re: Asked to put a square peg in a round hole, I would:
by herveus (Prior) on Aug 13, 2018 at 19:50 UTC
    Howdy!

    I frequently use square-ish pegs to be driven into round holes in my woodworking.

    yours,
    Michael
Re: Asked to put a square peg in a round hole, I would:
by davies (Prior) on Aug 09, 2018 at 18:01 UTC
Re: Asked to put a square peg in a round hole, I would:
by shmem (Chancellor) on Aug 02, 2018 at 09:57 UTC

    ...give the whole affair enough spin to make the peg fit, and leave with the words "keep on turning".

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
Re: Asked to put a square peg in a round hole, I would:
by talexb (Chancellor) on Aug 10, 2018 at 20:33 UTC

    Oh, very cool -- I plotted a squircle by hand when I was a high school student, not knowing that it actually had a name. Of course, I loved watching TV, so was drawn to that shape anyway.

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Re: Asked to put a square peg in a round hole, I would:
by eritain (Novice) on Aug 21, 2018 at 22:19 UTC
    There's a good reason for driving square pegs into round holes. The high pressure at the corners makes the peg really stay in place, similar to how square wire-wrapping posts really get a great connection to the wire. The Salt Lake Tabernacle has square pegs that have been sitting tight in their round holes for 150 years.
Re: Asked to put a square peg in a round hole, I would:
by stevieb (Canon) on Aug 02, 2018 at 20:46 UTC

    Have five forest fires outside your backdoor, two within 15km of your own home after being in the hospital for over a month, and let those fsckn pegs burn? Ashes should fit in the hole just dandy ;)

      Update: I was forced to evacuate my property due to extreme fire activity in NW British Columbia. Nothing like waiting for updates to see if one's property is still existing one day to the next from a hotel five hours away.

      In this case, I'd probably just burn the damned peg into ash, and pour it into the hole.

Re: Asked to put a square peg in a round hole, I would:
by wjw (Priest) on Aug 06, 2018 at 21:23 UTC

    Actually, I would try to dive into the world of quantum mechanics and see if perhaps the two could be made to fit one another if examined from one of the other eight dimensions... I mean, why not? :-)

    ...the majority is always wrong, and always the last to know about it...

    A solution is nothing more than a clearly stated problem...

Re: Asked to put a square peg in a round hole, I would:
by trippledubs (Deacon) on Aug 03, 2018 at 17:24 UTC
    Decry the lack of square holes and attempt revolution, conform, learn to live peacefully in a round peg square hole world
      That one made me laugh :)
Re: Asked to put a square peg in a round hole, I would:
by Anonymous Monk on Aug 10, 2018 at 18:45 UTC

    I would ask them to hire me as a consultant. Then after thoroughly researching the problem and citing reputable sources like this poll, I would recommend that they use a hammer

Re: Asked to put a square peg in a round hole, I would:
by ikegami (Patriarch) on Aug 02, 2018 at 20:19 UTC

    There's a board game that comes with a square round marker...

Re: Asked to put a square peg in a round hole, I would:
by fishy (Friar) on Aug 05, 2018 at 07:27 UTC
    my $peg = 4 + 4 + 4 + 4 ; my $hole = 2 * 3.14159 * 2.829; print "I'm in!\n" if $peg < $hole;
Re: Asked to put a square peg in a round hole, I would:
by BrowserUk (Patriarch) on Aug 14, 2018 at 10:11 UTC

    Challenge the requirements.

Re: Asked to put a square peg in a round hole, I would:
by Anonymous Monk on Aug 06, 2018 at 10:56 UTC
    Pluck it

View List Of Past Polls


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-16 16:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found