Better HN
topnewbestaskshowjobs
Log inSign up

KeyboardFire

72 karma · joined Feb 2, 2015 (11y ago) · 36 submissions

http://keyboardfire.com/
Submissions

comment 7y ago · link · parent

It's funny that this is the first time I've seen a language explicitly condone "print debugging." It's one of those things that everyone says you're not supposed to do and then does anyway.

Does any other language have a similar feature?

comment 7y ago · link · parent

See also: https://codegolf.stackexchange.com/q/57257/3808

comment 7y ago · link · parent

That might just have been a failure with the GPS -- I've had the same issue before, but the car icon was offset a bit from the highway, so it looked like I was constantly driving on the grass next to it (that must have come as a surprise to the little imps inside my phone doing the navigating).

comment 7y ago · link · parent

While I agree that the criticism "you're just trying to look smart" is misguided, it's a bit ironic that his response had the implication that "if I know this thing and you don't then you should be embarrassed [because I'm smarter/better than you]."

(I think that was the source of much of the objection to the comment, and the post makes no attempt to apologize for it, even if it was unintended.)

comment 7y ago · link · parent

Lots more fizzbuzzes here, in both standard and weird languages: https://codegolf.stackexchange.com/q/58615/3808

(They're golfed, meaning bytecount is minimized.)

comment 8y ago · link · parent

The example they give isn't really convincing, to me. I can see the usecase for this kind of language, but for e.g. searching for a pattern on the shell that isn't just one of a few predefined special cases, it seems like it'd still be a lot easier to compose regexes on the fly.

7.

False sunrise(en.wikipedia.org ↗)

1 points · by KeyboardFire · 8y ago · discuss

8.

The Story of Spoffle(miztres.wordpress.com ↗)

2 points · by KeyboardFire · 8y ago · discuss

comment 8y ago · link · parent

One feature I really miss in a lot of chat clients (that this doesn't appear to have) is the ability to reply to specific messages, like in Stack Exchange chat or Telegram. It makes it a lot easier to follow several simultaneous conversations, or groups with many members.

10.

Rpn – arbitrary precision unit-aware command-line RPN calculator(github.com ↗)

1 points · by KeyboardFire · 8y ago · discuss

11.

Voting Machine Manual Instructed Election Officials to Use Weak Passwords(motherboard.vice.com ↗)

7 points · by KeyboardFire · 8y ago · discuss

comment 8y ago · link · parent

The idea that language limits or constrains the way people think (the stronger side of the Sapir-Whorf hypothesis) is now largely discredited by the majority of linguists.

13.

Mozilla recommends a privacy extension that tracks web history(howtogeek.com ↗)

2 points · by KeyboardFire · 8y ago · discuss

comment 8y ago · link · parent

This is really cool!

Crazy idea: what if the first letter of the domain name was used to determine the first letter of the Unicode name of the emoji to select? That way there'd be some kind of mnemonic instead of having it be purely random.

comment 8y ago · link · parent

It makes me a little uncomfortable that they're using curl|bash for something as simple as "put this 10-line script somewhere in your $PATH," especially when the script involves sudo (to move into /usr/local/bin). Sure, it's easy to inspect the script and see that it's not doing anything malicious, but it makes install processes like this, where it'd be incredibly easy to, seem normal.

comment 8y ago · link · parent

Personally, when I write shell commands, they tend to be write-only code, because the shell isn't really suitable for anything more complex. So it's easier to think in code than it is to add the extra step of translating to English if it's something nobody's gonna see again anyway.

comment 8y ago · link · parent

The `sort' example will break past one-digit numbers without the -n flag, and the example for `uniq' isn't even accurate without sorting first (not to mention the UUOC).

Setting aside the errors, the author recommends `xdotool' for finding screen coordinates for ffmpeg, but `slop -f %g' allows you to click and drag to select a rectangle and outputs a geometry string that can be given directly to ffmpeg, which is a lot faster.

18.

Primality testing formula: a single Python expression using only basic operators(codegolf.stackexchange.com ↗)

1 points · by KeyboardFire · 8y ago · discuss

19.

Show HN: Key signatures(keyboardfire.com ↗)

4 points · by KeyboardFire · 8y ago · discuss

comment 8y ago · link · parent

Hmm, why doesn't `fn() echo test; fn` work? It seems to work in zsh, but not bash.

comment 8y ago · link · parent

A similar tool, but even simpler: https://txt.fyi/

comment 8y ago · link · parent

Plain text is small, and the smallest limit appears to be on the order of 2MB, which is enough to fit several NaNoWriMo novels. (And that's if you're storing them uncompressed.)

(source: https://stackoverflow.com/q/2989284/1223693, https://www.html5rocks.com/en/tutorials/offline/quota-resear...)

23.

Linguist Michael Halliday has died(en.wikipedia.org ↗)

1 points · by KeyboardFire · 8y ago · discuss

comment 9y ago · link · parent

Wow... when this project began over a year ago, it seemed almost impossible. It's almost surreal to see the results finally all put together. (And it really goes to show how a few amazing and dedicated people working together can make incredible things.)

25.

Code Health: To Comment or Not to Comment?(testing.googleblog.com ↗)

4 points · by KeyboardFire · 9y ago · discuss

comment 9y ago · link · parent

It's not meant to be an editor. That sounds like unnecessary feature creep - the point is to run snippets of code in different languages through your web browser, not to be an IDE.

27.

Gif and image written into the DNA of bacteria(bbc.com ↗)

1 points · by KeyboardFire · 9y ago · discuss

28.

Internal Apple presentation on how to handle leaks gets leaked(theverge.com ↗)

2 points · by KeyboardFire · 9y ago · discuss

comment 9y ago · link · parent

The article seems hopelessly tautological. One of the arguments for Clojurescript is that it "is a functional programming language," with the reasoning that this makes functional programming easier. The author then goes on to answer - and I quote - "Why isn’t it popular?" with "Not popular enough." I am thoroughly enlightened.

comment 9y ago · link · parent

While not a natural language, aUI [1] is a conlang (constructed language) that sort of tries to emulate the idea described in the article. Each sound represents a very basic concept (they map to semantic primes [2]), and they're combined to form more complex ideas.

Unfortunately, this leads to nonsensical literal translations like "ONE-QUANTITY-ABOVE-LIFE-TOWARDS" for "banana," but it's still a neat/interesting concept.

[1] https://www.frathwiki.com/AUI

[2] https://en.wikipedia.org/wiki/Semantic_primes

12