Better HN
topnewbestaskshowjobs
Log inSign up

rbonvall

941 karma · joined Feb 14, 2009 (17y ago) · 314 submissions

Roberto Bonvallet — http://mez.cl/a
Submissions

comment 1w ago · link · parent

Was it this one?: https://xkcd.com/605/

comment 5mo ago · link · parent

Yes, that's the smoking gun!

comment 5mo ago · link · parent

Socks are not getting lost; they are getting compacted to keep the context window small.

comment 5mo ago · link · parent

(It's Barcelona)

comment 7mo ago · link · parent

In the soccer world, there is the International Federation of Football History and Statistics (IFFHS), that decides several rankings and awards that are regularly cited in traditional media. For example, if a player from my not-quite-football-powerhouse country makes the "best 100 goalkeepers" list or whatever, it'll be on the news.

Turns out the IFFHS was just one guy in Germany during the 80s that leveraged his contacts in news agencies to establish his brand as a reputable source.

comment 7mo ago · link · parent

Note that it's not a European thing. It's how most football leagues around the world work.

comment 7mo ago · link · parent

Of course. It's distributed.

comment 7mo ago · link · parent

Just like that place that's so crowded nobody goes there anymore.

comment 9mo ago · link · parent

That doesn't explain the "punctuating with multiple cryface emojis".

comment 10mo ago · link · parent

Lies, Damned lies, and Unreasonable Effectiveness For Fun and Profit

comment 1y ago · link · parent

Example of replacing grep+cut with a single awk invokation:

    $ echo token:abc:def | grep -E ^token | cut -d: -f2
    abc
    
    $ echo token:abc:def | awk -F: '/^token/ { print $2 }'
    abc
Conditions don't have to be regular expressions. For example:

    $ echo $CSV
    foo:24
    bar:15
    baz:49
    
    $ echo $CSV | awk -F: '$2 > 20 { print $1 }'
    foo
    baz

comment 1y ago · link · parent

I use dtrx, which also ensures that all files are extracted into a folder.

comment 1y ago · link · parent

Python also pretty-prints out of the box:

    $ echo '{ "hello": "world" }' | python3 -m json.tool
    {
        "hello": "world"
    }

comment 1y ago · link · parent

> I have always wondered what would happen if someone had to invent spreadsheets from scratch, today.

This is exactly what Joel Spolsky did:

> What was I talking about? Oh yeah… most people just used Excel to make lists. Suddenly we understood why Lotus Improv, which was this fancy futuristic spreadsheet that was going to make Excel obsolete, had failed completely: because it was great at calculations, but terrible at creating tables, and everyone was using Excel for tables, not calculations.

... so he went on and created Trello.

https://www.joelonsoftware.com/2012/01/06/how-trello-is-diff...

comment 1y ago · link · parent

Reminds me when Scala was translated to German some time ago, at about the same time of the year:

https://scala-lang.org/blog/2017/04/01/announcing-skala.html

comment 1y ago · link · parent

Since no other pedants have chimed in yet, I'm required to point out that 20 years is five olympiads, which is the timespan in between six Olympic games.

comment 2y ago · link · parent

Just like Niklaus Wirth's quote about how people used to call him, or the joke about there being 10 kinds of people.

Those are the ones that make me wish people knew just enough Computer Science to get them :)

comment 2y ago · link · parent

In my opinion, shell scripting is the right tool when you need to do a lot of calling programs, piping, and redirecting. Such programs end up being cumbersome in "proper" languages.

comment 2y ago · link · parent

The most important benefit is not that you CAN unwrap a value, but rather that you CANNOT NOT do it.

comment 2y ago · link · parent

Sbt is too complex and powerful for its own good. I had a love-hate relationship with it, and now I try to avoid it if I can.

I like scala-cli a lot. It's very promising, but I think it's too new to be proclaimed best-in-class yet. Time will tell, and I'm rooting for it.

comment 2y ago · link · parent

If I was you I wouldn't bother. The cool thing is not the game itself, it's the fact that we "old folks" just know what to do right away :) If you need to read instructions, probably you'll find the game dull anyway.

comment 2y ago · link · parent

This document was made by a specific globe manufacturer, so it probably isn't meant to be used to date arbitrary globes, but only theirs.

comment 2y ago · link · parent

Awk doesn't have a way to define function-local variables. All variables are global, except for function parameters.

This spacing convention is meant to clearly separate mandatory parameters and optional parameters that are sometimes only introduced to "declare" a local variable.

comment 2y ago · link · parent

Once I put the effort to understand code like this and it turned out it's straightforward once you learn the conventions:

https://news.ycombinator.com/item?id=19421524

comment 3y ago · link · parent

It's because the characters in the result can be one of 10 digits or one of 26 letters.

comment 3y ago · link · parent

Commenting on the internet is note-taking for jerks.

comment 3y ago · link · parent

I think that's precisely the problem with YAML. By being so unpredictable, it turns from "format I use without thinking much about" into "format that makes me spend a lot of time finding out what's wrong this time".

Maybe you and I haven't been bitten personally by YAML idiosincracies yet, but just learning about examples like the "Norway problem" and the "negative GPS coordinates bug"—and thinking how frustrating must have been to figure those out in the first place—makes me shudder.

comment 3y ago · link · parent

Side note: you can simplify the first line like this:

    DOMAINS=(login controlplane log derp{1..24}-all)

comment 3y ago · link · parent

People seem to do fine dealing with iterators—which are defined by their operations (hasNext, next) and are convenient because they have a dedicated syntax (foreach)—without the need for enlightenment from esoteric "iterator tutorials".

Monads are defined by their operations (flatMap/bind, unit) and have a dedicated syntax (do). I agree with you: just get used to flatmapping stuff and the concept will sink in.

comment 3y ago · link · parent

He doesn't. That's the point.
12345
11