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

Messed up topics encoding a bit, now it should work - https://nvbn.github.io/hn-past-decade/?res=Q&kws=c%2B%2B


It can't help with autocomplete, but I guses it would be easy to create a rule for fixing incorrect ffmpeg calls.

Create an issue about that in https://github.com/nvbn/thefuck/issues


Rule for this behavior disabled by default, but you can enable it. Also you can disable confirmation or use `fuck -y` for more fun.


I feel like they missed an opportunity to use 'fuck yeah' as the automatic override.


    alias just=sudo
    just fuck -me -up


This is Art. Thank you for doing Art on HN.


I like how you named and styled the command after how many terminal users actually approach these situations.

1. Hurriedly type something to solve a pressing problem. It doesn't work but tells you enough the fix should be obvious to a machine.

2. Mutter or shout "Fuck!" in head depending on how obvious problem was, how often it repeats, or just how long it takes to redo it.

3. Perform the correct action.

Your model is like the Underwear Gnomes model for problem-solving applied to terminals. They always missing step 2. Except, on step 2, you just "fuck" to get profit... err, you get to finish at Step 2 with one word. Finish faster with this technique to move on to next job in workflow.


Of course, the drawback is that the machine doesn't really know what you intended without more context than a single command line. Often it can make a good guess, but not always and sometimes it'll guess wrong, perhaps disastrously so.


Well, it's guessing the intent of a user on command line and trying to fix their problem automatically. I don't expect perfection so much as it working well enough in common situations.


But it asks for confirmation and almost always suggests more than one option. Although it isn't smart enough to remember what you chose and suggest this variant in future.


Why not introduce some sort of AI to it and get it to understand more what one wants to do?


thefuck - https://github.com/nvbn/thefuck

I just use it every day and I guess a lot of people too.


Did your program show up on Hak5 2111? I saw 'fuck' in Darrens console and it made me go WTF. Now I know what that might of been :).


I guess it's about measurements through my videos, so:

1 - 5.1;

2 - ART;

3 - nexus 5;

4 - I'm measured time with `adb logcat`, it was more accurate than in article, but values are almost the same.


Not JavaScriptCore, just V8 inside a headless WebView.


It's because when we running some Clojure app, it loads a huge amount of classes and creates a tons of their instances. There's a good, but a bit outdated, article about that - http://martinsprogrammingblog.blogspot.de/2012/02/why-is-clo...

And compiled ClojureScript code is just a bunch of js.


Have you tried Go, Scala or Rust? All of those language are from their separate leagues, how can you compare swift with them?


In my experience, in the wide world of programming languages Rust and Swift are really not very far apart. Swift's designers even cited Rust as an influence.


> Swift's designers even cited Rust as an influence.

Specifically, http://nondot.org/sabre/

     > Of course, it also greatly benefited from the
     > experiences hard-won by many other languages in the
     > field, drawing ideas from Objective-C, Rust, Haskell,
     > Ruby, Python, C#, CLU, and far too many others to list.


...you can say they looked at <add your favourite language here> as an influence.


Thanks, added to readme.


I added info about how it works and what it can do in readme.

And yep, it can add sudo to your previous rm -rf /.


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

Search: