News for hackers. Stuff that matters.

laylomo

Re:Show HN: Tube – Minimalist YouTube on Friday April 13, 2018 @02:34PM (#16832698)
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
Re:Overthinking Fizzbuzz with Monoids on Wednesday September 13, 2017 @06:28PM (#15243332)
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
Re:A ReasonReact Tutorial on Thursday July 06, 2017 @12:54AM (#14708222)
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

Re:Which Language Uses the Most Sounds? on Saturday November 26, 2016 @05:36PM (#13046338)
It's because of words like anden and andEN. That second version is sing-songy because it has two stresses.
Re:Swift and the Legacy of Functional Programming on Tuesday November 22, 2016 @12:07AM (#13011767)
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]
Re:10M Concurrent Websockets on Saturday March 19, 2016 @10:08PM (#11321454)
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.