HNHacker News
TopNewBestAskShowJobs

reyan

65 karma · joined April 2, 2012

submissionscomments
reyan··on Don't use markdown for documentation (2018)
This is just too much. Nobody wants to have a linter for their code “documentation”! Oh we’re gonna have the linter in our CI pipeline too probably.
reyan··on Don't depend on JavaScript to render your page
Please don't use inline CSS in your page. In order to read the cached version [1] I had to manually remove the sidebar because it overlayed the main content with inline 'position: fixed'.

[1] http://webcache.googleusercontent.com/search?q=cache:9UMu5i7...

reyan··on ECMAScript 6
Run this in your browser's JavaScript console:

  socket.destroy()
reyan··on R: the good parts
How do you deal with interoperability? You Android clients use your Shiny frontend over HTTP? Have you used rserve?
reyan··on P values are not as reliable as many scientists assume
This is the correct xkcd for this analogy http://xkcd.com/882/, not #1132.
reyan··on CSS source map support, network performance analysis and more in Firefox DevTools
Great progress. I think it would be better if you replace those pie charts with bar plots. Better use of the space, much better for comparison.
reyan··on Toward Go 1.3
I think many of us want Go to be something it doesn't want to and will never be. There is potential for a fast, simple, statically typed language; borrowing good ideas from Lisp, ML and others (and NOT resulting in something like Scala).
reyan··on Don't Learn to Code, Learn to Program – But Come Back in 10 Years
Yes I have watched Bret Victor's talk. Narrow minded or not, Brooks's predictions held true for more than a decade after the time of writing. I'd like to read your counter-arguments.

I'd say architecture and advances in neuroscience are tangential here. I think the core of the problem is still somewhere else.

* sidenote: Lisp machines weren't at least completely _ignored_ by academia.

reyan··on Don't Learn to Code, Learn to Program – But Come Back in 10 Years
I think the author should read Fred Brooks's "No Silver Bullet". Many of his arguments are still valid after 28 years. "There is no single development, in either technology or in management technique, that by itself promises even one order-of-magnitude improvement in productivity, in reliability, in simplicity."
reyan··on Rap Genius Traffic Has Dropped By Over 80%
I don't argue the merits, but the BMW case is obviously different (BMW core business, dependency on Google results, etc.), hence the disproportionate reaction.
reyan··on Data looks better naked
This (rather old) paper is still worth reading: Cleveland, W. S. (1984), "Graphical Perception and Graphical Methods for Analyzing Scientific Data"

http://courses.ischool.berkeley.edu/i247/f05/readings/Clevel...

reyan··on Bill Gates funds creation of graphene condoms
Soot is the first known environmental carcinogen (https://en.wikipedia.org/wiki/Chimney_sweeps'_carcinoma).
reyan··on Ruby Tips Part 4
Another invaluable resource is 'Ruby Best Practices' by Gregory Brown. You can download the pdf for free (http://majesticseacreature.com/rbp-book/pdfs/rbp_1-0.pdf).
reyan··on A simple git branching model
You can easily squash those experimental commits and have "incremental, atomic" commits in history. What it gives you is the freedom with a clean slate after each commit. And no stashing doesn't work because the next experiment might depend on the last one. Not happy? Interactively rebase HEAD~n and get rid of all the experimental stuff. Changed your mind? Git reflog is your friend.
reyan··on A Course in Machine Learning
Isn't Murphy's book more up to date and comprehensive as a reference?

Edit: Andrew Ng's Coursera course is CS229A (http://cs229a.stanford.edu/), not really watered down.

reyan··on Learn X in Y minutes where X = Go
This is great. I suggest adding fallthrough statement in one of the switch cases.
reyan··on WebKit has implemented srcset
Original blog post: https://www.webkit.org/blog/2910/improved-support-for-high-r...

> Note that at the moment WebKit only supports the resolution modifiers (e.g. 1x, 2x, 3x).

The official [draft] specification: http://www.w3.org/html/wg/drafts/srcset/w3c-srcset/

The dimensions in the srcset attribute are the maximum (viewport) dimensions that an image is intended for. e.g.:

    <img src="pear-mobile.jpeg" srcset="pear-mobile.jpeg 720w, pear-tablet.jpeg 1280w, pear-desktop.jpeg 1x" alt="The pear is juicy.">
reyan··on House of Lords debates pardon for Alan Turing
It's interesting that you talk about others' logical fallacies, yet you started the thread with a fallacy (appeal to majority).
reyan··on Useful Unix commands for data science
A short and nice read is Unix for Poets by Kenneth Ward Church: http://www.stanford.edu/class/cs124/kwc-unix-for-poets.pdf
reyan··on YouCompleteMe - A code-completion engine for Vim
You don't really need to completely uninstall homebrewed python. Just `brew unlink python` and after installation `brew link python`.
reyan··on Please use git pull --rebase
Or use git-smart (https://github.com/geelen/git-smart). It adds three commands to git. One of them 'smart-pull' which "will detect the best way to grab the changes from the server and update your local branch, using a git rebase -p if there's no easier way. It'll also stash/pop local changes if need be."
reyan··on What Python developers need to know before migrating to Go
Did you use Python bindings for libsvm?
reyan··on Workflow in tmux
In iTerm2 I use command+f and expand the selection using tab/shift+tab.
reyan··on Our tiny jQuery/Bootstrap rich text editor is now open-source
Hotlinking raw.github.com assets has a rate limit. The demo is not working properly (apparently because of jquery.hotkeys.js).
reyan··on Zsh-lovers – tips, tricks and examples for the Z shell
More on zsh globbing http://openclassroom.stanford.edu/MainFolder/VideoPage.php?c...
reyan··on Learning JavaScript - my experience and advice
Another book which I really liked is JavaScript Patterns by Stoyan Stefanov.
reyan··on Learn how to test Rails using Test::Unit instead of Rspec
Even better with the new syntax:

    expect(article.slug).to match(/[^\w-]/)
reyan··on Learn how to test Rails using Test::Unit instead of Rspec
Not really. At least RSpec's creator doesn't think so (http://blog.davidchelimsky.net/2012/05/13/spec-smell-explici...).
reyan··on Evernote hacked
If Evernote is not using a key derivation function, I don't know what to say.
reyan··on Evernote hacked
The definition of a symmetric cipher requires the cipher text to be (practically) indistinguishable from random. Length is not particularly useful (multiple blocks, different block ciphers with equal block length).
Page 1 of 2Next →