Hacker Newsnew | past | comments | ask | show | jobs | submit | rbonvall's commentslogin

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


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


Lies, Damned Lies, and Unreasonable Effectiveness: How Lies in Titles are Damn Near Unreasonably Effective


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


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


Python also pretty-prints out of the box:

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


> 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...


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


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.


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 :)


"There's two hard problems in computer science: we only have one joke and it's not funny" which I've seen credited to Phillip Scott Bowden

Which is a reference to the "two hard problems" jokes, the most used is "There are two hard problems in Computer Science: Cache invalidation, naming things, and off-by-one errors"

But there is also "Two hard problems in distributed systems: Exactly-once delivery, guaranteed order of messages, and exactly-once delivery".


> Which is a reference to the "two hard problems" jokes, the most used is "There are two hard problems in Computer Science: Cache invalidation, naming things, and off-by-one errors"

It's just as funny today as when I first heard it in 2002/2003... to which my professor at the time would add:

"But really, naming things is colouring. And cache invalidation is colouring. So really there's only one problem in computer science, colouring and counting... which doesn't sound so hard after all".


I need more of these ...



I made a UDP joke once.

You may get it.


I'm sorry, but this joke is out of order here!


Heh.

Are you sure you got it? ;)


I didn't see your comment before I posted mine, because I was reading the thread linearly, but anyway, I'll expand upon yours:

1: >Niklaus Wirth's quote

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

2: >the joke about there being 10 kinds of people.

those who understand binary and those who don't.


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.


If there are already software written to do the stuff and I'm just coordinating them (no other computation other than string manipulation) I'd take bash every day. I would only reach to python if I need to do stuff like manipulating complex data structures or something with heavy logic.


"you can do anything not matter how horrible you feel"

but yea, shell is foremost a composition language/environment


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: