146
Comments
  • 4
    Ironically it's written in Java xD
  • 24
    @Cyanite where do you see Java code in this picture?
  • 2
    @Krokoklemme
    In my defence it's past midnight, and that does look alot like Java. X.x
  • 18
    @Cyanite maybe because it's JavaScript :P

    And what I'm curious about now: why is the reverse function highlighted as a keyword
  • 0
    @Krokoklemme
    Haven't ever used JavaScript
  • 22
    Coffee secret word: parameters. Give me my coffee now
  • 6
  • 2
  • 6
    That's a useless piece of code, hope their coffee tastes better ...
  • 0
    Double quotes in JS must die :(
  • 0
    @Krokoklemme it is not highlighted like a keyword, keywords are here italized, reverse is not.
  • 1
    @QCat still doesn't make sense that it's highlighted
  • 1
    var answer = PARAMETERS;

    barista.request(yourDrink, answer);
    -------
    ^
    barista invalid request: wrong answer!

    That's right, I got a little bit excited.

    var answer = parameters;
  • 0
    @Krokoklemme It seems to be because it is a variable that contains a function, just as the method in the object is highlighted for the same reason... I don't know which "color scheme" he's using on his chalk editor, but it looks nice. :)
  • 0
    Its definitely because it's a function. I think the theme is Atom Dark :)
  • 1
    @Chefren it looks like the default color theme for JS in Sublime 2.0
  • 0
    But why parameters is the secret word?
  • 1
    @Desmond Well, what's the input he requires from your? It's a parameter.

    In this case it's inside a function request.

    So you tell him: "coffee black"

    In which case you pay for you coffee.

    If you tell him: "coffee black. Secret word: parameters", it's free.

    Exercise: be clever enough to use a functional loop (or recursion) as the parameter.
  • 3
    I feel ashamed it took me a minute to get to the solution.
  • 2
    I demand to know the location of this shop! They're gonna make a loss.
Add Comment