Skip to content

Latest commit

 

History

History
119 lines (80 loc) · 3 KB

File metadata and controls

119 lines (80 loc) · 3 KB

What’s Clojure

./clojure.png

  • A dynamic JVM language
    • CLR too
    • JS as well
  • Lisp family
  • “Functional bias”
    • Most things are immutable
    • Mutable also well-supported

What’s the Problem We’re Solving?

  • Holding trainings / workshops

./battlestations.png

Actually: Assigning Participants to Groups

  • Interactive workshops are best at ~ 5 people
  • Train 50!
  • Evaluating with survey:
    • ~50 people * ~20 Questions ~= 1000 items
    • Multi-select questions! ⇒ ~1500 items

Short Problem Statement

  • [HAVE] Spreadsheet:
    • Questions
    • Participants
    • Answers
  • [FIND] Extract answers per question
    • Easily scorable format.
  • [FIND] Assign scores to participants
    • Given original spreadsheet…
    • …and prescored answers.

Let’s take a look at inputs / behaviour / outputs

./Imagination.png

A bit of syntax

ThingJavaClojure
“Call”bla(foo bar);(bla foo bar)
on Objmu.baz(gah);(.baz mu gah)
“Map”Map x = new HashMap();{a b c d}
x.put(a, b);
x.put(c, d);
“Set”Set y = new HashSet();#{e f}
y.add(e);
y.add(f);
“Vector”List z = new ArrayList();[g h]
z.add(g);
z.add(h);
“Lambda”(T1 one, T2 two) -> bla(one, two)#(bla %1 %2)

Let’s see how sausage is actually made

./knowing.jpg

To recap

./rich-hickey.jpg

  • Clojure is compact: Tool ~100 LOC
    • Painfully dense, at times
    • In fact, that was not the original program…

More

Some People

@planetclojurePosts things related to Clojure
@p_brc @cljviePeter Brachwitz: .at community
@bendlasHerwig Hochleitner: WebNF
@aphyr (NSFW!)Kyle Kingsbury: Riemann, Tesser, Jepsen
@cursiveclojureCursive Clojure IDE
@xaibehaMe!

This message brought to you by…

Bernd Haug <bernd.haug@xaidat.com>

Senior Dev @ Xaidat

./xaidat.png

@xaidat

http://www.xaidat.com/

Fork this

https://github.com/xaibeha/jugg-clojure.git