HNHacker News
TopNewBestAskShowJobs

laylomo

24 karma · joined March 20, 2016

submissionscomments
laylomo··on Show HN: Tube – Minimalist YouTube
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
laylomo··on Overthinking Fizzbuzz with Monoids
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
laylomo··on A ReasonReact Tutorial
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

laylomo··on Which Language Uses the Most Sounds?
It's because of words like anden and andEN. That second version is sing-songy because it has two stresses.
laylomo··on Swift and the Legacy of Functional Programming
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]
laylomo··on 10M Concurrent Websockets
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.