Better HN
topnewbestaskshowjobs
Log inSign up

davenportw15

5 karma · joined Jan 29, 2015 (11y ago) · 5 submissions

Submissions

comment 11y ago · link · parent

Does 'each' serve as both forEach and map? It appears that way from the fib example.

comment 11y ago · link · parent

It's unfortunate that there is already an Elixir web framework [0] with the same name.

[0]: http://www.phoenixframework.org

comment 11y ago · link · parent

That's an opinion. I almost always prefer higher order functions.

comment 11y ago · link · parent

Thank you for reminding us to test our code both locally and in production. I always forget those pesky details.

comment 11y ago · link · parent

Wouldn't be cleaner to implement is_valid like this:

  int is_valid(char* password) {
    return strcmp(password, "poop") == 0;
  }