Hacker Newsnew | past | comments | ask | show | jobs | submit | modiho's commentslogin

You can have both, so that escape is triggered when you tap caps lock, and ctrl is triggered when you hold caps lock. I followed this article to set it up on my MacBook http://www.economyofeffort.com/2014/08/11/beyond-ctrl-remap-...



Dialyzer works fine for Elixir code since it operates on Erlang bytecode, which Elixir ultimately compiles to.

See also this related thread on the Elixir mailing list https://groups.google.com/forum/#!topic/elixir-lang-talk/ft6...


Q has some utility functions around wrapping node style callbacks that make the code a bit shorter and arguably more easy to understand.

    var Q = require('q');

    function getUserFriends(userName) {
      return Q.nfcall(db.users.findOne, {name:userName});
    }

    function foundOne(user) {
      return Q.nfcall(db.friends.find, {userId:user.id});
    }

    function foundFriends(friends) { ... }

    getUserFriends.then(foundOne).then(foundFriends);


That's much better, thanks for sharing


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: