addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramlinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Scala Talk: Programming with Type Classes

Lars Hupel, maintainer of the scalaz library, will tell us a bit about programming with type classes in Scala. This will be followed by a little practice session (bring your laptops) and the obligatory beer and pizza, sponsored by Clueda. Please RSVP

About the talk:
Typically, object-oriented and functional languages don't have a lot in common. Former usually implement polymorphism through class hierachies and inheritance. Haskell, being a prototypical functional language, offers polymorphism through another mechanism: type classes. This is available in Scala as well! With type classes it becomes surprisingly easy to abstract over completely different classes and methods. Perhaps subtyping and type classes can even work together well ...

Join or login to comment.

  • Lars H.

    Here's the link to the repository from the exercise:

    https://github.com/larsrh/matrix-exercise

    You can find "the"* solution in the "solution" branch. If you have already cloned the repository, do this:

    $ git pull
    $ git checkout solution

    and run the tests with "./sbt test" or "sbt.bat test".

    Thanks to Marius for submitting another test case. Additionally, I left some comments in the implementation.

    * Note that the test cases are in no way complete!. The implementation itself doesn't do any checks about the wellformedness of the input, which a real solution would have to do.

    PS: Thanks for your kind words. I hope you had as much fun as I did :)

    1 · April 23, 2013

  • Siegfried B.

    beautiful talk - interesting topic - five stars for Lars!

    1 · April 23, 2013

  • A former member
    A former member

    Thanks for the fine talk and the great exercise session, Lars.
    Really enjoyed it!

    Does anyone have any Feedback concerning the event or organziation?

    Looking forward to the next session!

    April 23, 2013

  • Andreas N.

    Great introduction. Looking forward to see Lars' serialization.

    April 22, 2013

  • Lars H.

    For the practice session, please make sure that your device has Java (version doesn't matter) and Scala (version[masked] or[masked]) installed. For Mac and Linux, you can probably use your package manager, and for Windows, please follow the instructions under http://www.scala-lang.org/downloads. See you this evening!

    1 · April 22, 2013

  • Markus J.

    Sorry guys, have to cancel. Would have loved to hear this talk. See you at the next meetup. Markus

    April 21, 2013

  • Lutz H.

    Looking forward to type classes. Nice topic :-)

    April 9, 2013

  • Markus J.

    Great topic. Looking forward to it.

    April 9, 2013

35 went

Our Sponsors

  • JetBrains

    JetBrains supplies meetup venue, food, drinks, and the best Scala IDE.

  • gutefrage.net

    gutefrage offers hosting meetups including venue, drinks and food

  • codecentric

    codecentric offers hosting meetups including venue, drinks and food.

  • 1&1 Internet

    1&1 offers hosting meetups including venue, drinks and food.

  • hybris GmbH

    hybris offers hosting meetups including venue, drinks and food.

  • mantro.net

    mantro.net offers hosting meetups including venue, drinks and food.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy