Saturday, July 12, 2014

1HaskellADay: Up, up, and away!

I've taken it upon myself to submit problems, then show the solutions, for @1HaskellADay. I started this work on July 1st, 2014. So the next set of entries serve to collect what I've done, both problems and solutions, and, if a particular day posed a particularly interesting problem, that I solved, or, that I didn't solve, I'll capture that here, too.


Now thanks to Go/Haskell by Example, we're returning to basics for our daily Haskell problems.

One-liners moved to haskell-one-liners tab.

July 2015

  • July 28th, 2015: Wait. WUT? It's today, already? How did that happen? Today's #haskell problem http://lpaste.net/2307182433419657216 is about structuring data well.
  • July 27th, 2015: We get all zweitletztes in today's #Haskell problem http://lpaste.net/3467966382467973120 So, did you use the word 'zweitletztes' in a sentence today? Did your friends all say, 'Ooh!'? http://lpaste.net/9086454874664599552
  • July 24th, 2015: Graphite! No: Graph it! for today's #haskell problem http://lpaste.net/3543526934652649472
  • July 23rd, 2015: Employee relationships http://lpaste.net/6361591630532706304 ... nah, it ain't like DAT! for today's #haskell problem Peeps be contracting corps they be working at both! 3 #1Liner later we have a solution http://lpaste.net/5632145019319091200
  • July 22nd, 2015: SHAPES! MORE SHAPES! ... IN SVG! for today's #haskell problem http://lpaste.net/4776707050010836992 ♫ Everything's coming up ellipses (in SVG) ... http://lpaste.net/309926248828633088 
  • July 21st, 2015: LET's talk about Methods, baybee! No. Okay, let's talk about SHAPES! NOW you're talkin'! http://lpaste.net/287420001722302464 … today's #haskell problem SHAPES! SHAPES! SHAPES-SHAPES-SHAPES! http://lpaste.net/6497686044492693504 (ooh! Look! A rectangle!) (although an ellipse is more impressive, but what can you do?) 
  • July 20th, 2015: Weekly #commute-share expenses. Does this look like today's #haskell problem? Hells, yeah! 
    When everything looks like a monoid ... http://lpaste.net/2994127577280413696
  • July 17th, 2015: Remember when texting you had to press 7 four times to get the letter 'S'? With today's #haskell exercise, you will! http://lpaste.net/105251841490550784 
    BREAKING: Most used word in text between teens is 'lol.' http://lpaste.net/4604658056066760704 ... :/ Hm. Okay. Why am I not surprised?
  • July 16th, 2015: Bob, Alice, Ann and Sean have one thing in common. Their type. Okay, another thing: lenses. Today's #haskell problem http://lpaste.net/8864895915798822912 A solution. Remember, the solution didn't choose the Lens Life, the Lens Life chose it http://lpaste.net/1412556263379697664 #thuglife for #lenses
  • July 15th, 2015: ACK! ACK! ACK! Who cares about primitive recursion when you can TOTES GO AWESOME! in today's #haskell problem http://lpaste.net/1080559337258090496 ACK! That's a lot of memory utilization for the dynamic approach! ACK! Good thing we have a static solution, too! http://lpaste.net/8903612632200642560
  • July 14th, 2015: For today's #haskell problem we actually write a clojure. I mean 'closure.' http://lpaste.net/3938883175375175680 And the solution ... there should be some function that takes a plain function and 'state-ifies' it (modify <.< ) http://lpaste.net/2651395586560884736
  • July 13th, 2015: ♫ "Summertime, and the variadic function is boring!" We'll change that – WITH MONOIDS! – in today's #haskell problem http://lpaste.net/8230300509106339840 ♫ I got that Summertime, Summertime sadness! (and the solution to today's #haskell problem: http://lpaste.net/3589269637730140160)
  • July 10th, 2015: Why are sole-sourced endpoints called 'web'-services? Today #haskell problem we REALLY take on making a _web_ service http://lpaste.net/374473349520162816
  • July 9th, 2015: In today's #haskell exercise we learn that aesthetics are relative http://lpaste.net/7263104093437034496 so 'it's all good!' #EverythingIsGood #SoNothingIs
  • July 8th, 2015: For today's #haskell problem, we are asked to write a web service, and make it Snappy! http://lpaste.net/8642459490819506176 Really? A web service? In Haskell? REALLY? http://lpaste.net/2749821827369926656 
  • July 7th, 2015: For today's #haskell problem we look at how we can transform JSON into ... MORE JSON! Why? BECAUSE WE CAN! http://lpaste.net/4037780681470771200 ♫ Let's talk about Maryland, baybee! http://lpaste.net/8906149300015202304
  • July 6th 2015: ♫ Day-by-day ♫ we do a #haskell problem. THIS day we'll do something JSON-y http://lpaste.net/399247231984599040 with webservices as a long-view this week. It's cool when the solution comes with dippin' dots! Geddit? 'Cool'? Dippin' dots?http://lpaste.net/803145685917499392
  • July 3rd, 2015: So, we look at the iTunes XML library for today's #haskell problem, http://lpaste.net/1641625286095142912 ... specifically: yours. #ick
  • July 2nd, 2015: Silly geese need linearization http://lpaste.net/3051751310949875712 ... AND today's #haskell problem! The solution today is found in a Pink Floyd song
    ... oh, and here, too: http://lpaste.net/4081680603060109312
  • July 1st, 2015: Today's #haskell problem we do not sort quarters for the laundry, no! We sort words by frequency! Because reasons. http://lpaste.net/2869005254278512640 O! The sordid details of sorting quarters as a solution to today's #haskell http://lpaste.net/4041657933132464128
Problems and solutions prior to July, 2014 posted on github at https://github.com/1HaskellADay/1HAD/

No comments: