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

This is not a German word. Pseudo-German at best.

Put it into Google and you will see.


Yes, this page is the only match..

It doesn't even make sense to use strchr for determining the position of 'r', when the code checks that the position of '-' is at index 0.

Your solution is perfectly fine. Even if you don't have access to strchr for some reason, the original snippet is really convoluted.

You could just write (strlen(argv[1]) > 1 && argv[1][0] == '-' && argv[1][0] == 'r') if you really want to.


It could make some sense to use strchr, because in idiomatic UNIX tools, single character command line options can be clustered. But that also means that subsequent code should not be tested for a specific position.

And if you ever find yourself actually doing command line parsing, use getopt(). It handles all the corner cases reliably, and consistent with other tools.


Of course, `&&` in C is short-circuiting so it's safe without the `strlen()` too, as long as the argument is there i.e. not NULL.

Also, the use of a convoluted `if` to conditionally assign a literal boolean is a code smell (to me), I would drop the `if` and just use:

    in_reverse = argc > 0 && argv[1][0] == '-' && argv[1][1] == 'r';
if a more forward-thinking/strict check is not needed.

Your code actually has 2 bugs. The first I assume is just a typo and you meant to use [1][1] == ‘r’. The second one is that you would accept “-rblah” as well.

There are several ways to do that. The best method is to use a real computer.

Of course, the website operator can do something about this as well. On my website I redirect all traffic from mobile devices to the kids section of YouTube.


lol and the post is gone. I had to stop reading after this

> I have this rash on my body, but it's not itchy or painful, so I don't think it's an emergency?

If you cannot use punctuation correctly, of course you cannot diagnose yourself.


lol what? Nowhere in the blogpost he states that he is based in the netherlands.

And the UI runs on WebView.

It doesn't. There is a terminal frontend, a web rendering frontend, and a deprecated SDL frontend. The web frontend was explicitly developed to speed up development, writing implementations for graphics described in CL (the part being accelerated) that can be later served by another frontend should some technical need emerge. Anyone acting like this is Electron is either leaping to conclusions or being intentionally misleading.

Electron is not WebView my friend.

> wasn't the very concept of "libraries" created to not have to think about what exactly the code does?

Let's say you need a FFT implementation. You can write that from scratch, or you can use a library. In both cases you should use tests to verify that the code calculates the FFT correctly, and in the library case you should read the code to make sure that it works correctly and does not omit and edge cases (e.g.).


Nice troll. I like how it yielded 403 in the end.


Do you happen to know some good learning resources (books, etc.) for modern Java versions?

My last job used Java 8 exclusively and it was indeed a miserable experience, but I am contemplating using modern java for my next project.


This is unpublished still but is worth checking out: https://www.manning.com/books/data-oriented-programming-in-j...

Other than that, I think we’re all waiting for Josh Bloch to put out Effective Java 4th edition.

The main benefits of the post-8 world that I would look into learning are: pattern matching and destructuring, sealed (sum) types, records, and switch expressions.

In the library/framework space I think learning about quarkus, microprofile, and jakarta data would be valuable. It’s looking like that’s the future of Java on the server.

Less important things to learn about would probably be runtime changes like virtual threads, ZGC, or the AOT cache stuff coming out of project Leyden. Long term things to keep an eye on are value classes if we ever get them.


> /r/technology is sadly not available from that day

Of course it is: https://web.archive.org/web/20100505194005/https://reddit.co...

There is even an iPad ad. But no submissions about the iPad though.


I didn't mean "from that era". I meant literally "from that day". As in, the day the Apple iPad was announced https://www.apple.com/newsroom/2010/01/27Apple-Launches-iPad...

The announcement post had a bunch of unhinged comments about how it was a garbage product.

Ah ha, this was hard to find, but here's a post from that day: https://www.reddit.com/r/reddit.com/comments/auw6b/the_ipad_...

Haha, this is great. And you can tell that with 2400 points that was going to be at the tippy-top of things considering most days the top few posts have under 1k points back then on reddit.com https://web.archive.org/web/20100202213044/http://www.reddit...

I knew I remembered it right! The comments are artwork. Explaining how it would be so much better if it had a lid and a keyboard. Oh my sides. I looooooove it.


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

Search: