HNHacker News
TopNewBestAskShowJobs

inkel

49 karma · joined June 22, 2011

[ my public key: https://keybase.io/inkel; my proof: https://keybase.io/inkel/sigs/u-xVggkDB_Za1WflnYMWSZNOnSb_gHMhFUuMqabhG4Q ]
submissionscomments
inkel··on Grafana Mimir – Horizontally scalable long-term storage for Prometheus
You configure with Remote Write [1] to the Mimir instance. Then the Prometheus agents will send the metrics to Mimir.

1: https://prometheus.io/docs/prometheus/latest/configuration/c...

inkel··on The world's cities with the most bookstores and libraries per capita
I'm pretty sure we haven't lost that many libraries, and I have even seen new ones in recent years.
inkel··on Save for Later: Bookmarking Apps and the Wish Economy
Very interesting... as far as I've read. I've saved it for later reading in my Pocket account. I wonder what the author thinks of me.
inkel··on Træfik, a modern reverse-proxy
As long as its performance is not orders of magnitude slower than HAProxy/Nginx, I think it's great that is not your top priority :)
inkel··on Why Tech Startups Should Look at Go
Thank you for the explanation. I think it makes sense somehow, however, and high likely because I've never dealt with errors in that way, the _encounter error, crash, restart, continue_ workflow seems a bit awful to me :)

The Haskell solution seems really nice. I've only used Haskell for pet projects and it's one of my favorites languages (though I don't have any proficiency with it,) so thank you for teaching me something else about it.

inkel··on Why Tech Startups Should Look at Go
Ok, verbosity I agree. That doesn't have anything to do with being easy or not, I think. I might be wrong. Verbosity can be a pain. Even after reading Rob Pike's article on "Errors are values" [1], I agree with you that the solution is still verbose.

Those numbers you gave, even when you said they're estimates, still seems like made up numbers. I've never used Elixir, so if you could point me to an example so I can be more informed, I'll be grateful :) but also I've read some Go programs (not many, I'm not an expert) and it didn't seem to me that 70% of the code is dedicated to error handling.

Note that I'm not defending Go's position on error handling, I'm asking about error handling in general, what does people mean with "easy way to do it".

[1]: http://blog.golang.org/errors-are-values

inkel··on Why Tech Startups Should Look at Go
I've never really understood the "no easy way to handle errors" complaint. I'm not saying it is easy, nor that it isn't verbose (hell, it is super verbose!) but I'm seriously asking: what would be an easy way to handle errors? I'm not asking about how to do it in Go, just how to do it in any programming language.

To me errors are very special constructs, is not a typical return value, as for example a method returning true or false whether the arguments are valid or not, so I expect errors to be something similar (at least semantically) as exceptions in other languages, and in that case, that is, return values that should be deal with in a certain special manner, so I don't expect to deal with them in an "real easy way"™, but in a very conscious and deliberated way.

inkel··on Best commit and test scenario ever?
They deserved a better storytelling: https://github.com/inkel/ruster/blob/90f7da1c281bfc1a5fe01cc...
inkel··on Best commit and test scenario ever?
As the commit author here, I must confess that it was so painful to write that story that I had to stop coding and go out for a walk. I was devastated...
inkel··on Redis 2.8.0 stable is out
I use it as the only database in most of the projects I've work at my company, using Ohm [1] as our ORM. Usually we don't have use cases with ad hoc queries like `name LIKE '%Smith'`, so it serves our purposes very well. When we need something like that, we integrate with something like Elasticsearch.

[1] https://ohm.keyvalue.org/

inkel··on Twelve Go Best Practices
That won't work as it is with `w.Write`, as it returns two values, but yes, the idea is perfectly valid.
inkel··on DevDocs
Please add plain DOM documentation. I use jQuery, but I also use other libs or none at all, and having access to the DOM API would be wonderful.
inkel··on Zendesk was hacked
What was their reaction when you sent them this feedback? Assuming, of course, you did send them this feedback.
inkel··on A single line of Basic sends readers into a labyrinth
Amazing! I always forget about the `something while other_thing` syntax, thank you for reminding me of it :)
inkel··on A single line of Basic sends readers into a labyrinth
Why piping to ruby? You have the -e operator for that:

    ruby -e 'loop do print ["\u2571","\u2572"].sample ; sleep 0.001 end'
inkel··on Learn a Programming Language Faster by Copying Unix
I agree with you, having the ability to script everyday tasks is awesome, though however in the case of the ssh wrapper it might be a little overkill, given that you can achieve the same (and more) with a ssh_config file [1] [2]. I would particularly recommend the ControlMaster option.

[1] http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-... [2] http://linux.die.net/man/5/ssh_config

inkel··on Antirez: You Need to Think in Terms of Organizing Your Data for Fetching
Wait. If you use 200-300MB of DB storage, openredis costs $69 using it as a Heroku add-on and $45 if used independently.

$125 ($90) is the price of the large instance, which offers 1.7GB of storage.

That's quite a difference.

inkel··on Gallery of free HTML snippets for Twitter Bootstrap
That's a good point you make.
inkel··on Gallery of free HTML snippets for Twitter Bootstrap
I'm not bashing against Haml, all that I'm saying is that is not necessary. Lately Slim also has become quite popular, so that would involve also having the Slim version. And in the future it will be something different, but as long as HTML remains as the lingua franca of the web, then there's no really need.

I used Haml in the past, and I understand it's popular nowadays mostly because of Rails, but I hardly think it's widely-used. Just to name a few that use HTML or a template engine of their own: Blogspot, Tumblr and Wordpress, and these are much more widely-used than Haml.

inkel··on Gallery of free HTML snippets for Twitter Bootstrap
Why? You can always use html2haml.

The site is perfect as it is, there's no need to add a unnecessary and non-standard format.

inkel··on Make your website super fast with Asset Pipeline, Sprites & Cloudfront
I agree with you. I'm not doing Rails anymore, I'm working with Cuba + gs + dep + Ohm + mote, and I find it easier and less bloated than what Rails has become.

Rails 3.x, though with a couple of good ideas, it's not as easy as it used to be to start developing an app, less say deploying it. Too many helpers and technologies to learn, IMO completely unnecessary.

inkel··on New version of Emacs Nav is up
Guessing you're referring to Emacs and not Vim, I've been using textmate.el [1] and it is just great.

[1] http://ozmm.org/posts/textmate_minor_mode.html

inkel··on Cache Them If You Can
Dymanic pages properly programmed could and should send this headers. Also some frameworks and/or proxies manage this for you.
inkel··on Diveintohtml5 lives
Amen to that. Specially if all your content was open source.
inkel··on How not to handle open source feedback
MySQL people should see the following keynote: Being Your Best Asset and Not Your Worst Enemy - http://confreaks.net/videos/350-gogaruco2010-being-your-best...