HNHacker News
TopNewBestAskShowJobs

nahiluhmot

260 karma · joined March 25, 2013

Hacker in lil rhody.
submissionscomments
nahiluhmot··on Stop writing stateful HTML
I should have stopped reading when the author linked to dart.

Regarding SEO/performance for serving static HTML, many frontend frameworks provide a mechanism for rendering content on the server. For example, React.renderComponentToStaticMarkup (http://facebook.github.io/react/docs/top-level-api.html#reac...) can be used to render each static page on the server before sending it over the wire.

Also, I'm not sure how you reduce complexity by coupling view logic with backend datastore logic. In my experience it's far more maintainable to separate the backend and frontend, communicating between them via a REST API/web sockets. That way, everything is independently unit-testable and can be integration tested as well.

nahiluhmot··on CotEditor – Text Editor for OS X
Not sure why the site advertises "Just for OS X" as if it's a feature.
nahiluhmot··on 0h h1 – A little logic game
Same thing happened to me. Looks like it checks for one hard-coded answer when there could be many for a given puzzle. It should just check that your board satisfies the rules described in the tutorial instead.
nahiluhmot··on New York Police Officers to Begin Wearing Body Cameras in Pilot Program
> On the other hand, I've seen criminals interacting with cops in person. They do not have an easy job.

Wouldn't that be a positive for the police as well? If a suspect is belligerent, the presence of a camera would help to prove that.

nahiluhmot··on Google Music natively on Linux
Awesome! It would be great to see this on the AUR.
nahiluhmot··on [dead]
Instead of asking 276 people to donate $276 each, wouldn't it be easier (and likely more effective) to have a variably-priced kickstarter/indiegogo?
nahiluhmot··on In Praise of Haskell
It wasn't so much a bad example so much as it was a trivial one. Perhaps a more powerful one (that displays the advantages of lazy evaluation and higher-order functions) would be the function to generate an infinite list of Fibonacci numbers.

    fibs :: [Integer]
    fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
Even still, it's difficult to get the feel of actually using the language from one function taken from a freshman year CS class.
← PreviousPage 2 of 2