[DFW.pm] Homework for the list, and for Oct 08 meeting

Tommy Butler homebase at internetalias.net
Thu Sep 11 12:03:02 PDT 2014


I too want to both thank and congratulate Mr Dexter.  I'm so sorry I want there.   I worked from Tuesday morning at 7 am to Wednesday night at 6 pm.  Code binge.  For the jobs that really, really have to get done on time.  *sigh*

I fell asleep sitting up in my chair at about 6:03 pm right after getting things ready to go to Perl Mongers.   Have you ever woken up hours after having done that with the outlines of your keyboard mashed into your face, staring at the longest password in the universe typed into the login prompt? 

http://rosettacode.org/wiki/FizzBuzz

Is all about the modulus operator.  To do it another way might be creative but would almost certainly likely be less efficient.  The only thing I can think of that world be faster is the cheat method I saw, where you hard code into your program the known fizzes and buzzes, spitting them out at the corresponding integer positions in the 1 to 100 loop.

That aside, I'd say bonus points if you use the concatenation trick which gives your code an undetectably small speed of execution a boost at only 100 iterations.

My .02 (with all you paid for it)

--Tommy Butler

On Sep 11, 2014, John Fields <wigthft at gmail.com> wrote:
>Firstly,  I want to thank John Dexter for his Docker presentation,
>showing
>how to encapsulate a Mojolicious Web server and application for easy
>deployment. He got what all presenters get, a free dinner and that warm
>afterglow from making the world a better place (with more Perl in it). 
>:)
>
>I challenged the attendees last night to do the FizzBuzz program.  We
>even
>had one programmer in attendance that had been asked to do it on a job
>interview the previous day!  We were one day late for him, but
>hopefully
>not for you..
>
>Http://rosettecode.org/wiki/FizzBuzz
>
>Don't cheat.. Yourself.  Do it from scratch before looking at other's
>solutions.  We will pick 2 more, with increasing difficulty with one
>per
>week.  Also new member Andy Sohn will offer a short challenge and
>demonstrate answers live at the next Mongers.
>
>So send in your code, and be as creative as you can!  TIMTOWTDI is a
>strength after all.  :)
>
>Cheers,
>John and Tommy
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Dfw-pm mailing list
>Dfw-pm at pm.org
>http://mail.pm.org/mailman/listinfo/dfw-pm

-- Sent with K-@ Mail - the evolution of emailing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/dfw-pm/attachments/20140911/a3aa440d/attachment.html>


More information about the Dfw-pm mailing list