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

This is awesome! Is the code available as open source anywhere? I might be interested in making my own personal deployment because I think youtube is far too distracting


Oh! Yeah, I can totally do that tonight. I'll link it (I have to remove a key from the code... oooops. :))


Nice, reminds me of the equivalent OCaml implementation:

    let fizzbuzz n =
      match n mod 3, n mod 5 with
      | 0, 0 -> "fizzbuzz"
      | 0, _ -> "fizz"
      | _, 0 -> "buzz"
      | _ -> string_of_int n


Excellent post, Jared. Thanks for making it.

I figured I should share a project I made as well with ReasonReact. I'm a noob to React and frontend programming in general, but I was surprised by how easily it was to pick it up. I created a simple game of Snake over a weekend just to test it out. Great programming experience, great first impression.

edit: live demo: (warning: not mobile friendly) http://192.241.133.216/projects/websnake/index.html


For people who want to look at some Reason code, here are some more projects:

https://github.com/jsdf/reason-react-hacker-news (rather unimaginatively, a hacker news app)

https://github.com/jsdf/lisp.re (native, the start of a lisp in Reason)


It's because of words like anden and andEN. That second version is sing-songy because it has two stresses.


It's easy. The first bit:

    [person
tells you that you're getting a list of persons. That's the most important part. The rest is telling you how they're getting in that list.

It's almost like a select query in (pseudo) SQL.

    select person from people where person.isvalid = true
vs

    [person for person in people if person.isvalid]


And if I recall correctly, the 2 million figure was just an artificial limit that they hit due to the configuration settings during the test, since it just "seemed like a really big number" at the time. In theory, it could probably go even higher.


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

Search: